Logo Search packages:      
Sourcecode: libnl version File versions  Download package

int rtnl_neigh_set_dst ( struct rtnl_neigh *  neigh,
struct nl_addr *  addr 
)

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.

Returns:
0 on success or a negative error code.

Definition at line 971 of file neigh.c.

{
      return __assign_addr(neigh, &neigh->n_dst, addr,
                       NEIGH_ATTR_DST, 0);
}


Generated by  Doxygen 1.6.0   Back to index