Skip to content

Commit

Permalink
6lowpan: ndisc: no overreact if no short address is available
Browse files Browse the repository at this point in the history
This patch removes handling to remove short address for a neigbour entry
if RS/RA/NS/NA doesn't contain a short address. If these messages
doesn't has any short address option, the existing short address from
ndisc cache will be used. The current behaviour will set that the
neigbour doesn't has a short address anymore.

Signed-off-by: Alexander Aring <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
Alexander Aring authored and holtmann committed Sep 19, 2016
1 parent abbcc34 commit 5ddedce
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/6lowpan/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ static void lowpan_ndisc_802154_update(struct neighbour *n, u32 flags,
ieee802154_be16_to_le16(&neigh->short_addr, lladdr_short);
if (!lowpan_802154_is_valid_src_short_addr(neigh->short_addr))
neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC);
} else {
neigh->short_addr = cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC);
}
write_unlock_bh(&n->lock);
}
Expand Down

0 comments on commit 5ddedce

Please sign in to comment.