]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
netfilter: conntrack: Only need first 4 bytes to get l4proto ports
authorGao Feng <fgao@ikuai8.com>
Sat, 23 Jul 2016 11:21:47 +0000 (19:21 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Aug 2016 22:41:08 +0000 (00:41 +0200)
commite5e693ab49a95e1994979972eea224eefa81eba9
treecf3ea62e374b6fcbeba3aa4cc089b61b3f57718d
parentf08aff444ae0004c9ae6df3241fc313a5024d375
netfilter: conntrack: Only need first 4 bytes to get l4proto ports

We only need first 4 bytes instead of 8 bytes to get the ports of
tcp/udp/dccp/sctp/udplite in their pkt_to_tuple function.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_dccp.c
net/netfilter/nf_conntrack_proto_sctp.c
net/netfilter/nf_conntrack_proto_tcp.c
net/netfilter/nf_conntrack_proto_udp.c
net/netfilter/nf_conntrack_proto_udplite.c