From: YOSHIFUJI Hideaki Date: Mon, 26 Mar 2007 03:12:32 +0000 (-0700) Subject: [NET] ATM: Use htons() where appropriate. X-Git-Tag: v2.6.22-rc1~1128^2~392 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=acde4855bb8f5fba8bb065d35ff6ac8a94b3dfa8;p=linux-2.6-omap-h63xx.git [NET] ATM: Use htons() where appropriate. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/atm/br2684.c b/net/atm/br2684.c index ec4ebd3299e..c444f5eda22 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?