Skip to content

Commit

Permalink
addr: Update to latest address familiy definition for translation
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graf <tgraf@suug.ch>
  • Loading branch information
tgraf committed Mar 14, 2013
1 parent 8852753 commit 780a042
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/addr.c
Expand Up @@ -1005,7 +1005,6 @@ char *nl_addr2str(struct nl_addr *addr, char *buf, size_t size)
static const struct trans_tbl afs[] = {
__ADD(AF_UNSPEC,unspec)
__ADD(AF_UNIX,unix)
__ADD(AF_LOCAL,local)
__ADD(AF_INET,inet)
__ADD(AF_AX25,ax25)
__ADD(AF_IPX,ipx)
Expand All @@ -1021,17 +1020,27 @@ static const struct trans_tbl afs[] = {
__ADD(AF_SECURITY,security)
__ADD(AF_KEY,key)
__ADD(AF_NETLINK,netlink)
__ADD(AF_ROUTE,route)
__ADD(AF_PACKET,packet)
__ADD(AF_ASH,ash)
__ADD(AF_ECONET,econet)
__ADD(AF_ATMSVC,atmsvc)
__ADD(AF_RDS,rds)
__ADD(AF_SNA,sna)
__ADD(AF_IRDA,irda)
__ADD(AF_PPPOX,pppox)
__ADD(AF_WANPIPE,wanpipe)
__ADD(AF_LLC,llc)
__ADD(AF_CAN,can)
__ADD(AF_TIPC,tipc)
__ADD(AF_BLUETOOTH,bluetooth)
__ADD(AF_IUCV,iucv)
__ADD(AF_RXRPC,rxrpc)
__ADD(AF_ISDN,isdn)
__ADD(AF_PHONET,phonet)
__ADD(AF_IEEE802154,ieee802154)
__ADD(AF_CAIF,caif)
__ADD(AF_ALG,alg)
__ADD(AF_NFC,nfc)
};

char *nl_af2str(int family, char *buf, size_t size)
Expand Down

0 comments on commit 780a042

Please sign in to comment.