diff options
Diffstat (limited to 'drivers/isdn/i4l/isdn_net.c')
-rw-r--r-- | drivers/isdn/i4l/isdn_net.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/isdn/i4l/isdn_net.c b/drivers/isdn/i4l/isdn_net.c index ad17a47ecc06..4da81c132589 100644 --- a/drivers/isdn/i4l/isdn_net.c +++ b/drivers/isdn/i4l/isdn_net.c | |||
@@ -865,8 +865,8 @@ isdn_net_hangup(struct net_device *d) | |||
865 | } | 865 | } |
866 | 866 | ||
867 | typedef struct { | 867 | typedef struct { |
868 | unsigned short source; | 868 | __be16 source; |
869 | unsigned short dest; | 869 | __be16 dest; |
870 | } ip_ports; | 870 | } ip_ports; |
871 | 871 | ||
872 | static void | 872 | static void |
@@ -1355,7 +1355,7 @@ isdn_net_get_stats(struct net_device *dev) | |||
1355 | * This is normal practice and works for any 'now in use' protocol. | 1355 | * This is normal practice and works for any 'now in use' protocol. |
1356 | */ | 1356 | */ |
1357 | 1357 | ||
1358 | static unsigned short | 1358 | static __be16 |
1359 | isdn_net_type_trans(struct sk_buff *skb, struct net_device *dev) | 1359 | isdn_net_type_trans(struct sk_buff *skb, struct net_device *dev) |
1360 | { | 1360 | { |
1361 | struct ethhdr *eth; | 1361 | struct ethhdr *eth; |
@@ -1817,7 +1817,7 @@ isdn_net_receive(struct net_device *ndev, struct sk_buff *skb) | |||
1817 | /* IP with type field */ | 1817 | /* IP with type field */ |
1818 | olp->huptimer = 0; | 1818 | olp->huptimer = 0; |
1819 | lp->huptimer = 0; | 1819 | lp->huptimer = 0; |
1820 | skb->protocol = *(unsigned short *) &(skb->data[0]); | 1820 | skb->protocol = *(__be16 *)&(skb->data[0]); |
1821 | skb_pull(skb, 2); | 1821 | skb_pull(skb, 2); |
1822 | if (*(unsigned short *) skb->data == 0xFFFF) | 1822 | if (*(unsigned short *) skb->data == 0xFFFF) |
1823 | skb->protocol = htons(ETH_P_802_3); | 1823 | skb->protocol = htons(ETH_P_802_3); |
@@ -1899,12 +1899,12 @@ static int isdn_net_header(struct sk_buff *skb, struct net_device *dev, | |||
1899 | break; | 1899 | break; |
1900 | case ISDN_NET_ENCAP_IPTYP: | 1900 | case ISDN_NET_ENCAP_IPTYP: |
1901 | /* ethernet type field */ | 1901 | /* ethernet type field */ |
1902 | *((ushort *) skb_push(skb, 2)) = htons(type); | 1902 | *((__be16 *)skb_push(skb, 2)) = htons(type); |
1903 | len = 2; | 1903 | len = 2; |
1904 | break; | 1904 | break; |
1905 | case ISDN_NET_ENCAP_UIHDLC: | 1905 | case ISDN_NET_ENCAP_UIHDLC: |
1906 | /* HDLC with UI-Frames (for ispa with -h1 option) */ | 1906 | /* HDLC with UI-Frames (for ispa with -h1 option) */ |
1907 | *((ushort *) skb_push(skb, 2)) = htons(0x0103); | 1907 | *((__be16 *)skb_push(skb, 2)) = htons(0x0103); |
1908 | len = 2; | 1908 | len = 2; |
1909 | break; | 1909 | break; |
1910 | case ISDN_NET_ENCAP_CISCOHDLC: | 1910 | case ISDN_NET_ENCAP_CISCOHDLC: |
@@ -1978,7 +1978,7 @@ static void isdn_header_cache_update(struct hh_cache *hh, | |||
1978 | { | 1978 | { |
1979 | isdn_net_local *lp = dev->priv; | 1979 | isdn_net_local *lp = dev->priv; |
1980 | if (lp->p_encap == ISDN_NET_ENCAP_ETHER) | 1980 | if (lp->p_encap == ISDN_NET_ENCAP_ETHER) |
1981 | return eth_header_cache_update(hh, dev, haddr); | 1981 | eth_header_cache_update(hh, dev, haddr); |
1982 | } | 1982 | } |
1983 | 1983 | ||
1984 | static const struct header_ops isdn_header_ops = { | 1984 | static const struct header_ops isdn_header_ops = { |