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

int rtnl_addr_set_multicast ( struct rtnl_addr *  addr,
struct nl_addr *  multicast 

Set multicast address of address object.

  • addr Address object to be modified.
  • multicast New multicast address.
Assigns the new multicast 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 1101 of file addr.c.

      return __assign_addr(addr, &addr->a_multicast, multicast,

Generated by  Doxygen 1.6.0   Back to index