summaryrefslogtreecommitdiff
path: root/include/net/af_unix.h
diff options
context:
space:
mode:
authorRao Shoaib <rao.shoaib@oracle.com>2021-08-01 00:57:07 -0700
committerDavid S. Miller <davem@davemloft.net>2021-08-04 09:55:52 +0100
commit314001f0bf927015e459c9d387d62a231fe93af3 (patch)
tree3f5a7d31a347e495833cffdbd638852111bbb78c /include/net/af_unix.h
parent7e89350c901923c48370ae7b922223c6c5a2b7fd (diff)
downloadlwn-314001f0bf927015e459c9d387d62a231fe93af3.tar.gz
lwn-314001f0bf927015e459c9d387d62a231fe93af3.zip
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>
Diffstat (limited to 'include/net/af_unix.h')
-rw-r--r--include/net/af_unix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index 435a2c3d5a6f..4757d7f53f13 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -70,6 +70,9 @@ struct unix_sock {
struct socket_wq peer_wq;
wait_queue_entry_t peer_wake;
struct scm_stat scm_stat;
+#if IS_ENABLED(CONFIG_AF_UNIX_OOB)
+ struct sk_buff *oob_skb;
+#endif
};
static inline struct unix_sock *unix_sk(const struct sock *sk)