commit | 435bf0d3f99a164df7e8c30428cef266b91d1d3b | [log] [tgz] |
---|---|---|
author | John Fastabend <john.fastabend@gmail.com> | Wed Oct 18 07:10:15 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Oct 20 13:01:29 2017 +0100 |
tree | a03f823017e2f876a308a8a8a782a14d580b3a82 | |
parent | 1cc276cec9ec574d41cf47dfc0f51406b6f26ab4 [diff] |
bpf: enforce TCP only support for sockmap Only TCP sockets have been tested and at the moment the state change callback only handles TCP sockets. This adds a check to ensure that sockets actually being added are TCP sockets. For net-next we can consider UDP support. Signed-off-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>