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;