Skip to content

Commit

Permalink
IPv6-ND: Do not create a STALE entry upon receiving a NA from an unkn…
Browse files Browse the repository at this point in the history
…own Neighbor

Fixes Tahi 2.52 ... 2.59
  • Loading branch information
Daniele Lacamera committed Apr 3, 2015
1 parent 7fb08e0 commit 6be1db6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions modules/pico_ipv6_nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@ static struct pico_ipv6_neighbor *pico_nd_add(struct pico_ip6 *addr, struct pico
return n;
}

static struct pico_ipv6_neighbor *pico_nd_create_stale_entry(struct pico_ip6 *addr, struct pico_device *dev)
{
struct pico_ipv6_neighbor *n = pico_nd_add(addr, dev);
if (n)
n->state = PICO_ND_STATE_STALE;
return n;
}

static void pico_ipv6_nd_unreachable(struct pico_ip6 *a)
{
int i;
Expand Down Expand Up @@ -343,9 +335,6 @@ static int neigh_adv_process(struct pico_frame *f)

n = pico_nd_find_neighbor(&icmp6_hdr->msg.info.neigh_adv.target);
if (!n) {
n = pico_nd_create_stale_entry(&icmp6_hdr->msg.info.neigh_adv.target, f->dev);
if (n && (optres > 0))
pico_ipv6_neighbor_update(n, &opt);
return 0;
}
if (optres == 0) {
Expand Down

0 comments on commit 6be1db6

Please sign in to comment.