diff options
author | Andreas Schneider <asn@samba.org> | 2016-04-26 18:10:52 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2016-05-17 11:43:53 +0200 |
commit | 395dc418d996d343cfaeb03be5b720c9e52d1d46 (patch) | |
tree | 9fd81a8a63d1f4ac5c818d68767b8b551045b620 | |
parent | d731d16ac6b8f8c1edaf51794ed458cfe19c0040 (diff) | |
download | socket_wrapper-395dc418d996d343cfaeb03be5b720c9e52d1d46.tar.gz socket_wrapper-395dc418d996d343cfaeb03be5b720c9e52d1d46.tar.xz socket_wrapper-395dc418d996d343cfaeb03be5b720c9e52d1d46.zip |
swrap: Allow to open RAW sockets when loaded
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r-- | src/socket_wrapper.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: |