diff options
author | Cong Wang <[email protected]> | 2021-07-04 12:02:45 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-07-15 18:17:50 -0700 |
commit | 83301b5367a98c17ec0d76c7bc0ccdc3c7e7ad6d (patch) | |
tree | 41df0f676467ff7bf58da5bef2384923144ceed7 /net/unix/unix_bpf.c | |
parent | 29df44fa52b70c330d8f2a3871e028a3522b8494 (diff) |
af_unix: Set TCP_ESTABLISHED for datagram sockets too
Currently only unix stream socket sets TCP_ESTABLISHED,
datagram socket can set this too when they connect to its
peer socket. At least __ip4_datagram_connect() does the same.
This will be used to determine whether an AF_UNIX datagram
socket can be redirected to in sockmap.
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions