|
@@ -61,7 +61,7 @@ tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport,
|
|
|
* addresses, this happens if the redirect already happened
|
|
|
* and the current packet belongs to an already established
|
|
|
* connection */
|
|
|
- sk = nf_tproxy_get_sock_v4(net, skb, hp, iph->protocol,
|
|
|
+ sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
|
|
|
iph->saddr, iph->daddr,
|
|
|
hp->source, hp->dest,
|
|
|
skb->dev, NF_TPROXY_LOOKUP_ESTABLISHED);
|
|
@@ -77,7 +77,7 @@ tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport,
|
|
|
else if (!sk)
|
|
|
/* no, there's no established connection, check if
|
|
|
* there's a listener on the redirected addr/port */
|
|
|
- sk = nf_tproxy_get_sock_v4(net, skb, hp, iph->protocol,
|
|
|
+ sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol,
|
|
|
iph->saddr, laddr,
|
|
|
hp->source, lport,
|
|
|
skb->dev, NF_TPROXY_LOOKUP_LISTENER);
|
|
@@ -150,7 +150,7 @@ tproxy_tg6_v1(struct sk_buff *skb, const struct xt_action_param *par)
|
|
|
* addresses, this happens if the redirect already happened
|
|
|
* and the current packet belongs to an already established
|
|
|
* connection */
|
|
|
- sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff, hp, tproto,
|
|
|
+ sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff, tproto,
|
|
|
&iph->saddr, &iph->daddr,
|
|
|
hp->source, hp->dest,
|
|
|
xt_in(par), NF_TPROXY_LOOKUP_ESTABLISHED);
|
|
@@ -171,7 +171,7 @@ tproxy_tg6_v1(struct sk_buff *skb, const struct xt_action_param *par)
|
|
|
else if (!sk)
|
|
|
/* no there's no established connection, check if
|
|
|
* there's a listener on the redirected addr/port */
|
|
|
- sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff, hp,
|
|
|
+ sk = nf_tproxy_get_sock_v6(xt_net(par), skb, thoff,
|
|
|
tproto, &iph->saddr, laddr,
|
|
|
hp->source, lport,
|
|
|
xt_in(par), NF_TPROXY_LOOKUP_LISTENER);
|