summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-05-05 07:32:44 (GMT)
committerThomas Haller <thaller@redhat.com>2017-05-12 09:49:54 (GMT)
commit286a86c75eb860df1ee58f369e47e396aa228d2f (patch)
tree7ac94efa64e5c303dc2b3938e2a66ae6b6db9ff5 /lib
parent70556f55ce2982ca8de7cfaa433a8a81f101b141 (diff)
downloadlibnl-286a86c75eb860df1ee58f369e47e396aa228d2f.zip
libnl-286a86c75eb860df1ee58f369e47e396aa228d2f.tar.gz
libnl-286a86c75eb860df1ee58f369e47e396aa228d2f.tar.bz2
addr: add AF_VSOCK to translation table
Add AF_VSOCK to the address family translation table. https://github.com/thom311/libnl/pull/142 Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/addr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/addr.c b/lib/addr.c
index 8cf64c2..fe4b2de 100644
--- a/lib/addr.c
+++ b/lib/addr.c
@@ -1075,6 +1075,9 @@ static const struct trans_tbl afs[] = {
#ifdef AF_NFC
__ADD(AF_NFC,nfc),
#endif
+#ifdef AF_VSOCK
+ __ADD(AF_VSOCK,vsock),
+#endif
};
char *nl_af2str(int family, char *buf, size_t size)