summaryrefslogtreecommitdiff
path: root/net/ipv4/netfilter/ip_nat_proto_gre.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-09-20 19:08:03 (GMT)
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 22:20:08 (GMT)
commit955b944293dd4c931ec866ebe19a6b2463b8f9a0 (patch)
tree2b3053116a8585810977383c3d28c60c0f7d0fb5 /net/ipv4/netfilter/ip_nat_proto_gre.c
parentedd5a329cf69c112882e03c8ab55e985062a5d2a (diff)
downloadlinux-955b944293dd4c931ec866ebe19a6b2463b8f9a0.tar.xz
[NETFILTER]: PPTP conntrack: get rid of unnecessary byte order conversions
The conntrack structure contains the call ID in host byte order for no reason, get rid of back and forth conversions. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/netfilter/ip_nat_proto_gre.c')
-rw-r--r--net/ipv4/netfilter/ip_nat_proto_gre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_nat_proto_gre.c b/net/ipv4/netfilter/ip_nat_proto_gre.c
index a522669..bf91f93 100644
--- a/net/ipv4/netfilter/ip_nat_proto_gre.c
+++ b/net/ipv4/netfilter/ip_nat_proto_gre.c
@@ -67,7 +67,7 @@ gre_unique_tuple(struct ip_conntrack_tuple *tuple,
const struct ip_conntrack *conntrack)
{
static u_int16_t key;
- u_int16_t *keyptr;
+ __be16 *keyptr;
unsigned int min, i, range_size;
if (maniptype == IP_NAT_MANIP_SRC)