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
/
ip_nat_helper_h323.c
diff --git
a/net/ipv4/netfilter/ip_nat_helper_h323.c
b/net/ipv4/netfilter/ip_nat_helper_h323.c
index
8b1e338
..
0d9444f
100644
(file)
--- a/
net/ipv4/netfilter/ip_nat_helper_h323.c
+++ b/
net/ipv4/netfilter/ip_nat_helper_h323.c
@@
-46,7
+46,7
@@
static int set_addr(struct sk_buff **pskb,
buf.port = htons(port);
addroff += dataoff;
- if (
(*pskb)->nh.iph
->protocol == IPPROTO_TCP) {
+ if (
ip_hdr(*pskb)
->protocol == IPPROTO_TCP) {
if (!ip_nat_mangle_tcp_packet(pskb, ct, ctinfo,
addroff, sizeof(buf),
(char *) &buf, sizeof(buf))) {