struct af_name { const char* name; int id; };
%null-strings
%%
AF_LLC, AF_LLC
AF_APPLETALK, AF_APPLETALK
AF_ROSE, AF_ROSE
AF_NETROM, AF_NETROM
AF_FILE, AF_FILE
AF_TIPC, AF_TIPC
AF_ATMPVC, AF_ATMPVC
AF_PHONET, AF_PHONET
AF_INET6, AF_INET6
AF_WANPIPE, AF_WANPIPE
AF_BRIDGE, AF_BRIDGE
AF_CAN, AF_CAN
AF_BLUETOOTH, AF_BLUETOOTH
AF_NFC, AF_NFC
AF_ROUTE, AF_ROUTE
AF_SECURITY, AF_SECURITY
AF_NETLINK, AF_NETLINK
AF_AX25, AF_AX25
AF_RDS, AF_RDS
AF_PPPOX, AF_PPPOX
AF_KEY, AF_KEY
AF_IUCV, AF_IUCV
AF_ECONET, AF_ECONET
AF_INET, AF_INET
AF_ATMSVC, AF_ATMSVC
AF_PACKET, AF_PACKET
AF_IEEE802154, AF_IEEE802154
AF_IRDA, AF_IRDA
AF_RXRPC, AF_RXRPC
AF_NETBEUI, AF_NETBEUI
AF_SNA, AF_SNA
AF_VSOCK, AF_VSOCK
AF_LOCAL, AF_LOCAL
AF_ALG, AF_ALG
AF_ASH, AF_ASH
AF_UNIX, AF_UNIX
AF_DECnet, AF_DECnet
AF_CAIF, AF_CAIF
AF_ISDN, AF_ISDN
AF_X25, AF_X25
AF_IPX, AF_IPX
