projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b5582
)
[NETFILTER]: SNMP NAT: fix byteorder confusion
author
Patrick McHardy
<
[email protected]
>
Tue, 25 Jul 2006 05:53:35 +0000
(22:53 -0700)
committer
David S. Miller
<
[email protected]
>
Tue, 25 Jul 2006 05:53:35 +0000
(22:53 -0700)
Signed-off-by: Patrick McHardy <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/netfilter/ip_nat_snmp_basic.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/ip_nat_snmp_basic.c
b/net/ipv4/netfilter/ip_nat_snmp_basic.c
index 0b1b416759ccc948a54c9e78aabcda86b68fe89d..18b7fbdccb6126684f67478fa6a7ba1580445b23 100644
(file)
--- a/
net/ipv4/netfilter/ip_nat_snmp_basic.c
+++ b/
net/ipv4/netfilter/ip_nat_snmp_basic.c
@@
-1255,9
+1255,9
@@
static int help(struct sk_buff **pskb,
struct udphdr *udph = (struct udphdr *)((u_int32_t *)iph + iph->ihl);
/* SNMP replies and originating SNMP traps get mangled */
- if (udph->source ==
ntoh
s(SNMP_PORT) && dir != IP_CT_DIR_REPLY)
+ if (udph->source ==
hton
s(SNMP_PORT) && dir != IP_CT_DIR_REPLY)
return NF_ACCEPT;
- if (udph->dest ==
ntoh
s(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL)
+ if (udph->dest ==
hton
s(SNMP_TRAP_PORT) && dir != IP_CT_DIR_ORIGINAL)
return NF_ACCEPT;
/* No NAT? */