提交 b6d9bcb0 编写于 作者: Y YOSHIFUJI Hideaki 提交者: David S. Miller

[NET] SCHED: Use htons() where appropriate.

Signed-off-by: NYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8f05ce91
......@@ -160,7 +160,7 @@ static int rsvp_classify(struct sk_buff *skb, struct tcf_proto *tp,
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
......
......@@ -1146,7 +1146,7 @@ int tc_classify(struct sk_buff *skb, struct tcf_proto *tp,
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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册