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>
This commit is contained in:
committed by
David S. Miller
parent
7e89350c90
commit
314001f0bf
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user