af_unix: Add OOB support
This patch adds OOB support for AF_UNIX sockets. The semantics is same as TCP. The last byte of a message with the OOB flag is treated as the OOB byte. The byte is separated into a skb and a pointer to the skb is stored in unix_sock. The pointer is used to enforce OOB semantics. Signed-off-by:Rao Shoaib <rao.shoaib@oracle.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/af_unix.h 3 additions, 0 deletionsinclude/net/af_unix.h
- net/unix/Kconfig 5 additions, 0 deletionsnet/unix/Kconfig
- net/unix/af_unix.c 151 additions, 2 deletionsnet/unix/af_unix.c
- tools/testing/selftests/Makefile 1 addition, 0 deletionstools/testing/selftests/Makefile
- tools/testing/selftests/net/af_unix/Makefile 5 additions, 0 deletionstools/testing/selftests/net/af_unix/Makefile
- tools/testing/selftests/net/af_unix/test_unix_oob.c 437 additions, 0 deletionstools/testing/selftests/net/af_unix/test_unix_oob.c
Loading
Please register or sign in to comment