Loading net/802/fddi.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -100,7 +100,7 @@ static int fddi_rebuild_header(struct sk_buff *skb) struct fddihdr *fddi = (struct fddihdr *)skb->data; struct fddihdr *fddi = (struct fddihdr *)skb->data; #ifdef CONFIG_INET #ifdef CONFIG_INET if (fddi->hdr.llc_snap.ethertype == __constant_htons(ETH_P_IP)) if (fddi->hdr.llc_snap.ethertype == htons(ETH_P_IP)) /* Try to get ARP to resolve the header and fill destination address */ /* Try to get ARP to resolve the header and fill destination address */ return arp_find(fddi->daddr, skb); return arp_find(fddi->daddr, skb); else else Loading Loading @@ -135,7 +135,7 @@ __be16 fddi_type_trans(struct sk_buff *skb, struct net_device *dev) if(fddi->hdr.llc_8022_1.dsap==0xe0) if(fddi->hdr.llc_8022_1.dsap==0xe0) { { skb_pull(skb, FDDI_K_8022_HLEN-3); skb_pull(skb, FDDI_K_8022_HLEN-3); type = __constant_htons(ETH_P_802_2); type = htons(ETH_P_802_2); } } else else { { Loading net/802/hippi.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -60,7 +60,7 @@ static int hippi_header(struct sk_buff *skb, struct net_device *dev, * Due to the stupidity of the little endian byte-order we * Due to the stupidity of the little endian byte-order we * have to set the fp field this way. * have to set the fp field this way. */ */ hip->fp.fixed = __constant_htonl(0x04800018); hip->fp.fixed = htonl(0x04800018); hip->fp.d2_size = htonl(len + 8); hip->fp.d2_size = htonl(len + 8); hip->le.fc = 0; hip->le.fc = 0; hip->le.double_wide = 0; /* only HIPPI 800 for the time being */ hip->le.double_wide = 0; /* only HIPPI 800 for the time being */ Loading Loading @@ -104,7 +104,7 @@ static int hippi_rebuild_header(struct sk_buff *skb) * Only IP is currently supported * Only IP is currently supported */ */ if(hip->snap.ethertype != __constant_htons(ETH_P_IP)) if(hip->snap.ethertype != htons(ETH_P_IP)) { { printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype)); printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype)); return 0; return 0; Loading Loading
net/802/fddi.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -100,7 +100,7 @@ static int fddi_rebuild_header(struct sk_buff *skb) struct fddihdr *fddi = (struct fddihdr *)skb->data; struct fddihdr *fddi = (struct fddihdr *)skb->data; #ifdef CONFIG_INET #ifdef CONFIG_INET if (fddi->hdr.llc_snap.ethertype == __constant_htons(ETH_P_IP)) if (fddi->hdr.llc_snap.ethertype == htons(ETH_P_IP)) /* Try to get ARP to resolve the header and fill destination address */ /* Try to get ARP to resolve the header and fill destination address */ return arp_find(fddi->daddr, skb); return arp_find(fddi->daddr, skb); else else Loading Loading @@ -135,7 +135,7 @@ __be16 fddi_type_trans(struct sk_buff *skb, struct net_device *dev) if(fddi->hdr.llc_8022_1.dsap==0xe0) if(fddi->hdr.llc_8022_1.dsap==0xe0) { { skb_pull(skb, FDDI_K_8022_HLEN-3); skb_pull(skb, FDDI_K_8022_HLEN-3); type = __constant_htons(ETH_P_802_2); type = htons(ETH_P_802_2); } } else else { { Loading
net/802/hippi.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -60,7 +60,7 @@ static int hippi_header(struct sk_buff *skb, struct net_device *dev, * Due to the stupidity of the little endian byte-order we * Due to the stupidity of the little endian byte-order we * have to set the fp field this way. * have to set the fp field this way. */ */ hip->fp.fixed = __constant_htonl(0x04800018); hip->fp.fixed = htonl(0x04800018); hip->fp.d2_size = htonl(len + 8); hip->fp.d2_size = htonl(len + 8); hip->le.fc = 0; hip->le.fc = 0; hip->le.double_wide = 0; /* only HIPPI 800 for the time being */ hip->le.double_wide = 0; /* only HIPPI 800 for the time being */ Loading Loading @@ -104,7 +104,7 @@ static int hippi_rebuild_header(struct sk_buff *skb) * Only IP is currently supported * Only IP is currently supported */ */ if(hip->snap.ethertype != __constant_htons(ETH_P_IP)) if(hip->snap.ethertype != htons(ETH_P_IP)) { { printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype)); printk(KERN_DEBUG "%s: unable to resolve type %X addresses.\n",skb->dev->name,ntohs(hip->snap.ethertype)); return 0; return 0; Loading