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

void rtnl_addr_set_family ( struct rtnl_addr *  addr,
int  family 

Set address family of address object.

  • addr Address object to be modified.
  • family New address family
The address family is set automatically if one of the addresses is set and the family hasn't been specified yet. Setting it manually can be used to enforce family validation while setting addresses.

Definition at line 816 of file addr.c.

      addr->a_family = family;
      addr->a_mask |= ADDR_ATTR_FAMILY;

Generated by  Doxygen 1.6.0   Back to index