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:
b93b7ee
)
[NET] ATM: Use htons() where appropriate.
author
YOSHIFUJI Hideaki
<
[email protected]
>
Mon, 26 Mar 2007 03:12:32 +0000
(20:12 -0700)
committer
David S. Miller
<
[email protected]
>
Thu, 26 Apr 2007 05:23:53 +0000
(22:23 -0700)
Signed-off-by: YOSHIFUJI Hideaki <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/atm/br2684.c
patch
|
blob
|
history
diff --git
a/net/atm/br2684.c
b/net/atm/br2684.c
index ec4ebd3299e34acc154527ae3f4588964586a3ee..c444f5eda22d3c7fdaf8d36e7ea5532b8b08b8df 100644
(file)
--- 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?