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

int rtnl_addr_set_anycast ( struct rtnl_addr *  addr,
struct nl_addr *  anycast 

Set anycast address of address object.

  • addr Address object to be modified.
  • anycast New anycast address.
Assigns the new anycast address to the specified address object. The address is validated against the address family if set already via either rtnl_addr_set_family() or by setting one of the other addresses. 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 1068 of file addr.c.

      return __assign_addr(addr, &addr->a_anycast, anycast,

Generated by  Doxygen 1.6.0   Back to index