Set destination address of a neighbour
- neigh neighbour to change
- addr new destination address
Assigns the new destination address to the specified neighbour handle. The address is validated against the address family if set already via rtnl_neigh_set_family()
. The assignment fails if the address families mismatch. In case the address family has not been specified yet, the address family of this new address is elected to be the requirement.
- 0 on success or a negative error code.
Definition at line 971 of file neigh.c.
return __assign_addr(neigh, &neigh->n_dst, addr,