git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
[safe/jmp/linux-2.6]
/
net
/
ipv4
/
netfilter
/
nf_nat_rule.c
diff --git
a/net/ipv4/netfilter/nf_nat_rule.c
b/net/ipv4/netfilter/nf_nat_rule.c
index
147a437
..
2a28339
100644
(file)
--- a/
net/ipv4/netfilter/nf_nat_rule.c
+++ b/
net/ipv4/netfilter/nf_nat_rule.c
@@
-191,7
+191,7
@@
static unsigned int ipt_dnat_target(struct sk_buff **pskb,
if (hooknum == NF_IP_LOCAL_OUT &&
mr->range[0].flags & IP_NAT_RANGE_MAP_IPS)
- warn_if_extra_mangle(
(*pskb)->nh.iph
->daddr,
+ warn_if_extra_mangle(
ip_hdr(*pskb)
->daddr,
mr->range[0].min_ip);
return nf_nat_setup_info(ct, &mr->range[0], hooknum);