diff options
| author | Cong Wang <[email protected]> | 2021-07-04 19:02:45 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-07-16 01:17:50 +0000 |
| commit | 83301b5367a98c17ec0d76c7bc0ccdc3c7e7ad6d (patch) | |
| tree | 41df0f676467ff7bf58da5bef2384923144ceed7 /net/unix/unix_bpf.c | |
| parent | af_unix: Implement ->read_sock() for sockmap (diff) | |
| download | kernel-83301b5367a98c17ec0d76c7bc0ccdc3c7e7ad6d.tar.gz kernel-83301b5367a98c17ec0d76c7bc0ccdc3c7e7ad6d.zip | |
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
