aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-03-07 14:21:20 +0900
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:24:00 -0700
commitb6d9bcb0697e60d5424e2f395fe950f0e22f4418 (patch)
tree1b918fe0a8507214cd6e0eecfb07d956d7e34c49
parent[NET] NETFILTER: Use htonl() where appropriate. (diff)
downloadlinux-dev-b6d9bcb0697e60d5424e2f395fe950f0e22f4418.tar.xz
linux-dev-b6d9bcb0697e60d5424e2f395fe950f0e22f4418.zip
[NET] SCHED: Use htons() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/cls_rsvp.h2
-rw-r--r--net/sched/sch_api.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h
index 7853621a04cc..b6ac0e287872 100644
--- a/net/sched/cls_rsvp.h
+++ b/net/sched/cls_rsvp.h
@@ -160,7 +160,7 @@ restart:
dst = &nhptr->daddr;
protocol = nhptr->protocol;
xprt = ((u8*)nhptr) + (nhptr->ihl<<2);
- if (nhptr->frag_off&__constant_htons(IP_MF|IP_OFFSET))
+ if (nhptr->frag_off & htons(IP_MF|IP_OFFSET))
return -1;
#endif
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index ecc988af4a9a..4a927a5e1fa6 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -1146,7 +1146,7 @@ reclassify:
for ( ; tp; tp = tp->next) {
if ((tp->protocol == protocol ||
- tp->protocol == __constant_htons(ETH_P_ALL)) &&
+ tp->protocol == htons(ETH_P_ALL)) &&
(err = tp->classify(skb, tp, res)) >= 0) {
#ifdef CONFIG_NET_CLS_ACT
if ( TC_ACT_RECLASSIFY == err) {