From 395dc418d996d343cfaeb03be5b720c9e52d1d46 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 26 Apr 2016 18:10:52 +0200 Subject: swrap: Allow to open RAW sockets when loaded Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- src/socket_wrapper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index 6e65a7e..068cb08 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -2407,6 +2407,9 @@ static int swrap_socket(int family, int type, int protocol) #ifdef AF_NETLINK case AF_NETLINK: #endif /* AF_NETLINK */ +#ifdef AF_PACKET + case AF_PACKET: +#endif /* AF_PACKET */ case AF_UNIX: return libc_socket(family, type, protocol); default: -- cgit