Lines Matching refs:lladdr
86 const struct net_linkaddr *lladdr) in net_nbr_link() argument
100 !memcmp(lladdr->addr, in net_nbr_link()
101 net_neighbor_lladdr[i].lladdr.addr, in net_nbr_link()
102 lladdr->len)) { in net_nbr_link()
125 net_linkaddr_set(&net_neighbor_lladdr[avail].lladdr, lladdr->addr, in net_nbr_link()
126 lladdr->len); in net_nbr_link()
127 net_neighbor_lladdr[avail].lladdr.len = lladdr->len; in net_nbr_link()
128 net_neighbor_lladdr[avail].lladdr.type = lladdr->type; in net_nbr_link()
135 int net_nbr_unlink(struct net_nbr *nbr, struct net_linkaddr *lladdr) in net_nbr_unlink() argument
137 ARG_UNUSED(lladdr); in net_nbr_unlink()
149 (void)memset(net_neighbor_lladdr[nbr->idx].lladdr.addr, 0, in net_nbr_unlink()
150 sizeof(net_neighbor_lladdr[nbr->idx].lladdr.addr)); in net_nbr_unlink()
161 struct net_linkaddr *lladdr) in net_nbr_lookup() argument
170 !memcmp(net_neighbor_lladdr[nbr->idx].lladdr.addr, in net_nbr_lookup()
171 lladdr->addr, lladdr->len)) { in net_nbr_lookup()
185 return &net_neighbor_lladdr[idx].lladdr; in net_nbr_get_lladdr()
194 struct net_linkaddr lladdr = { in net_nbr_clear_table() local
195 .addr = net_neighbor_lladdr[i].lladdr.addr, in net_nbr_clear_table()
196 .len = net_neighbor_lladdr[i].lladdr.len in net_nbr_clear_table()
199 net_nbr_unlink(nbr, &lladdr); in net_nbr_clear_table()
226 net_neighbor_lladdr[nbr->idx].lladdr.addr, in net_nbr_print()
227 net_neighbor_lladdr[nbr->idx].lladdr.len)); in net_nbr_print()