[PATCH nf-next 0/2] netfilter: set transport header properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using skb_reset_transport_header() after skb_put() does not make sense
because we do not touch skb->data pointer. Therefore transport header
still points to network header.

Update skb->transport_header manually to difference between skb_put()
returned pointer (old tail) and skb->head.

Thanks,
Serhey

Serhey Popovych (2):
  netfilter: SYNPROXY: set transport header properly
  netfilter: nf_reject: set transport header properly

 net/ipv4/netfilter/ipt_SYNPROXY.c   | 8 ++++----
 net/ipv4/netfilter/nf_reject_ipv4.c | 2 +-
 net/ipv6/netfilter/ip6t_SYNPROXY.c  | 8 ++++----
 net/ipv6/netfilter/nf_reject_ipv6.c | 2 +-
 4 files changed, 10 insertions(+), 10 deletions(-)

-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux