]> err.no Git - linux-2.6/commitdiff
[DECNET]: Use htons() where appropriate.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 11 Dec 2007 18:51:49 +0000 (03:51 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:01 +0000 (14:58 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/af_decnet.c
net/decnet/dn_nsp_out.c
net/decnet/dn_route.c

index 57d5749518380c06cd9dc6863d649e8cfbc230fe..acd48ee522d6b4f77ef95462bc4b379179f46f36 100644 (file)
@@ -1904,7 +1904,7 @@ static inline struct sk_buff *dn_alloc_send_pskb(struct sock *sk,
        struct sk_buff *skb = sock_alloc_send_skb(sk, datalen,
                                                   noblock, errcode);
        if (skb) {
-               skb->protocol = __constant_htons(ETH_P_DNA_RT);
+               skb->protocol = htons(ETH_P_DNA_RT);
                skb->pkt_type = PACKET_OUTGOING;
        }
        return skb;
index 7404653880b061c9ea8cb35bd10d63bf0b5a677e..1964faf203e48a41d6a30d468db3b8b4503ee533 100644 (file)
@@ -124,7 +124,7 @@ struct sk_buff *dn_alloc_skb(struct sock *sk, int size, gfp_t pri)
        if ((skb = alloc_skb(size + hdr, pri)) == NULL)
                return NULL;
 
-       skb->protocol = __constant_htons(ETH_P_DNA_RT);
+       skb->protocol = htons(ETH_P_DNA_RT);
        skb->pkt_type = PACKET_OUTGOING;
 
        if (sk)
index b712d0b36526877b7886bceb991fb569be2d33fd..1ae5efcdbd5fb5bdb13bae1e61bd75d972ede7eb 100644 (file)
@@ -1551,7 +1551,7 @@ static int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, void
                        kfree_skb(skb);
                        return -ENODEV;
                }
-               skb->protocol = __constant_htons(ETH_P_DNA_RT);
+               skb->protocol = htons(ETH_P_DNA_RT);
                skb->dev = dev;
                cb->src = fl.fld_src;
                cb->dst = fl.fld_dst;