netfilter: ipset: make ip_set_get_ip*_port to use skb_network_offset
authorAlexander Drozdov <al.drozdov@gmail.com>
Sat, 2 May 2015 17:28:01 +0000 (19:28 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 May 2015 11:25:45 +0000 (13:25 +0200)
commit3e4e8d126c2934803006aa8437cc444f0dc9f438
tree75e1823ebc108c97799b1cb70744a9e9fb100dbf
parent22496f098bb80480c13636c6b66b316685eeea04
netfilter: ipset: make ip_set_get_ip*_port to use skb_network_offset

All the ipset functions respect skb->network_header value,
except for ip_set_get_ip4_port() & ip_set_get_ip6_port(). The
functions should use skb_network_offset() to get the transport
header offset.

Signed-off-by: Alexander Drozdov <al.drozdov@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_getport.c