summaryrefslogtreecommitdiff
path: root/net/atm
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-03-25 20:12:32 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:23:53 -0700
commitacde4855bb8f5fba8bb065d35ff6ac8a94b3dfa8 (patch)
tree752be41a4b56e8a4c13759215d5a7c049c80a539 /net/atm
parentb93b7eebd328d5c1d171896fb823267539d4a0f6 (diff)
downloadkernel-common-acde4855bb8f5fba8bb065d35ff6ac8a94b3dfa8.tar.gz
kernel-common-acde4855bb8f5fba8bb065d35ff6ac8a94b3dfa8.tar.bz2
kernel-common-acde4855bb8f5fba8bb065d35ff6ac8a94b3dfa8.zip
[NET] ATM: Use htons() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
-rw-r--r--net/atm/br2684.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c
index ec4ebd3299e3..c444f5eda22d 100644
--- a/net/atm/br2684.c
+++ b/net/atm/br2684.c
@@ -375,11 +375,11 @@ packet_fails_filter(__be16 type, struct br2684_vcc *brvcc, struct sk_buff *skb)
{
if (brvcc->filter.netmask == 0)
return 0; /* no filter in place */
- if (type == __constant_htons(ETH_P_IP) &&
+ if (type == htons(ETH_P_IP) &&
(((struct iphdr *) (skb->data))->daddr & brvcc->filter.
netmask) == brvcc->filter.prefix)
return 0;
- if (type == __constant_htons(ETH_P_ARP))
+ if (type == htons(ETH_P_ARP))
return 0;
/* TODO: we should probably filter ARPs too.. don't want to have
* them returning values that don't make sense, or is that ok?