tcp: tcp_syn_flood_action read port from socket
authorPetar Penkov <ppenkov@google.com>
Mon, 29 Jul 2019 16:59:13 +0000 (09:59 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 31 Jul 2019 04:03:05 +0000 (21:03 -0700)
commit965112785e4bd4355262c6c5a32ea8f349adb401
treedf17b7f0df9c98123af21d76e54917d31a6ba4d8
parentd3406913561c322323ec2898cc58f55e79786be7
tcp: tcp_syn_flood_action read port from socket

This allows us to call this function before an SKB has been
allocated.

Signed-off-by: Petar Penkov <ppenkov@google.com>
Reviewed-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/ipv4/tcp_input.c