IPAddressFamily_type
if (IPAddressFamily_type(af) == IPAddressChoice_addressesOrRanges)
if (IPAddressFamily_type(af) == IPAddressChoice_inherit)
switch (IPAddressFamily_type(af)) {