diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-03-25 23:12:32 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:23:53 -0400 |
commit | acde4855bb8f5fba8bb065d35ff6ac8a94b3dfa8 (patch) | |
tree | 752be41a4b56e8a4c13759215d5a7c049c80a539 /net | |
parent | b93b7eebd328d5c1d171896fb823267539d4a0f6 (diff) |
[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')
-rw-r--r-- | net/atm/br2684.c | 4 |
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) | |||
375 | { | 375 | { |
376 | if (brvcc->filter.netmask == 0) | 376 | if (brvcc->filter.netmask == 0) |
377 | return 0; /* no filter in place */ | 377 | return 0; /* no filter in place */ |
378 | if (type == __constant_htons(ETH_P_IP) && | 378 | if (type == htons(ETH_P_IP) && |
379 | (((struct iphdr *) (skb->data))->daddr & brvcc->filter. | 379 | (((struct iphdr *) (skb->data))->daddr & brvcc->filter. |
380 | netmask) == brvcc->filter.prefix) | 380 | netmask) == brvcc->filter.prefix) |
381 | return 0; | 381 | return 0; |
382 | if (type == __constant_htons(ETH_P_ARP)) | 382 | if (type == htons(ETH_P_ARP)) |
383 | return 0; | 383 | return 0; |
384 | /* TODO: we should probably filter ARPs too.. don't want to have | 384 | /* TODO: we should probably filter ARPs too.. don't want to have |
385 | * them returning values that don't make sense, or is that ok? | 385 | * them returning values that don't make sense, or is that ok? |