Re: [PATCH 1/1] netfilter: Only need first 4 bytes to get l4proto ports

2016-08-12 Thread Pablo Neira Ayuso
On Sat, Jul 23, 2016 at 07:21:47PM +0800, f...@ikuai8.com wrote: > From: Gao Feng > > 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. Applied, thanks. -- To unsubscribe from this list: send the line

[PATCH 1/1] netfilter: Only need first 4 bytes to get l4proto ports

2016-07-23 Thread fgao
From: Gao Feng 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 --- v3: Keep consistent for tcp/udp/dccp/sctp/udplite to get 4 bytes instead of 8 bytes v2: