af_unix: Add OOB support
authorRao Shoaib <rao.shoaib@oracle.com>
Sun, 1 Aug 2021 07:57:07 +0000 (00:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Aug 2021 08:55:52 +0000 (09:55 +0100)
commit314001f0bf927015e459c9d387d62a231fe93af3
tree3f5a7d31a347e495833cffdbd638852111bbb78c
parent7e89350c901923c48370ae7b922223c6c5a2b7fd
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>
include/net/af_unix.h
net/unix/Kconfig
net/unix/af_unix.c
tools/testing/selftests/Makefile
tools/testing/selftests/net/af_unix/Makefile [new file with mode: 0644]
tools/testing/selftests/net/af_unix/test_unix_oob.c [new file with mode: 0644]