diff options
Diffstat (limited to 'arch/um/drivers')
-rw-r--r-- | arch/um/drivers/daemon_kern.c | 2 | ||||
-rw-r--r-- | arch/um/drivers/mcast_kern.c | 2 | ||||
-rw-r--r-- | arch/um/drivers/net_kern.c | 2 | ||||
-rw-r--r-- | arch/um/drivers/pcap_kern.c | 2 | ||||
-rw-r--r-- | arch/um/drivers/slip_kern.c | 2 | ||||
-rw-r--r-- | arch/um/drivers/slirp_kern.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/arch/um/drivers/daemon_kern.c b/arch/um/drivers/daemon_kern.c index 9c2e7a758f21..adeece11e596 100644 --- a/arch/um/drivers/daemon_kern.c +++ b/arch/um/drivers/daemon_kern.c | |||
@@ -46,7 +46,7 @@ static int daemon_read(int fd, struct sk_buff **skb, | |||
46 | { | 46 | { |
47 | *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER); | 47 | *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER); |
48 | if(*skb == NULL) return(-ENOMEM); | 48 | if(*skb == NULL) return(-ENOMEM); |
49 | return(net_recvfrom(fd, (*skb)->mac.raw, | 49 | return(net_recvfrom(fd, skb_mac_header(*skb), |
50 | (*skb)->dev->mtu + ETH_HEADER_OTHER)); | 50 | (*skb)->dev->mtu + ETH_HEADER_OTHER)); |
51 | } | 51 | } |
52 | 52 | ||
diff --git a/arch/um/drivers/mcast_kern.c b/arch/um/drivers/mcast_kern.c index 52ccb7b53cd2..e6b8e0dd72a8 100644 --- a/arch/um/drivers/mcast_kern.c +++ b/arch/um/drivers/mcast_kern.c | |||
@@ -50,7 +50,7 @@ static int mcast_read(int fd, struct sk_buff **skb, struct uml_net_private *lp) | |||
50 | { | 50 | { |
51 | *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER); | 51 | *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER); |
52 | if(*skb == NULL) return(-ENOMEM); | 52 | if(*skb == NULL) return(-ENOMEM); |
53 | return(net_recvfrom(fd, (*skb)->mac.raw, | 53 | return(net_recvfrom(fd, skb_mac_header(*skb), |
54 | (*skb)->dev->mtu + ETH_HEADER_OTHER)); | 54 | (*skb)->dev->mtu + ETH_HEADER_OTHER)); |
55 | } | 55 | } |
56 | 56 | ||
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index 04e31f86c10a..859303730b2f 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c | |||
@@ -55,7 +55,7 @@ static int uml_net_rx(struct net_device *dev) | |||
55 | 55 | ||
56 | skb->dev = dev; | 56 | skb->dev = dev; |
57 | skb_put(skb, dev->mtu); | 57 | skb_put(skb, dev->mtu); |
58 | skb->mac.raw = skb->data; | 58 | skb_reset_mac_header(skb); |
59 | pkt_len = (*lp->read)(lp->fd, &skb, lp); | 59 | pkt_len = (*lp->read)(lp->fd, &skb, lp); |
60 | 60 | ||
61 | if (pkt_len > 0) { | 61 | if (pkt_len > 0) { |
diff --git a/arch/um/drivers/pcap_kern.c b/arch/um/drivers/pcap_kern.c index e67362acf0e7..948849343ca4 100644 --- a/arch/um/drivers/pcap_kern.c +++ b/arch/um/drivers/pcap_kern.c | |||
@@ -36,7 +36,7 @@ static int pcap_read(int fd, struct sk_buff **skb, | |||
36 | { | 36 | { |
37 | *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER); | 37 | *skb = ether_adjust_skb(*skb, ETH_HEADER_OTHER); |
38 | if(*skb == NULL) return(-ENOMEM); | 38 | if(*skb == NULL) return(-ENOMEM); |
39 | return(pcap_user_read(fd, (*skb)->mac.raw, | 39 | return(pcap_user_read(fd, skb_mac_header(*skb), |
40 | (*skb)->dev->mtu + ETH_HEADER_OTHER, | 40 | (*skb)->dev->mtu + ETH_HEADER_OTHER, |
41 | (struct pcap_data *) &lp->user)); | 41 | (struct pcap_data *) &lp->user)); |
42 | } | 42 | } |
diff --git a/arch/um/drivers/slip_kern.c b/arch/um/drivers/slip_kern.c index 25634bd1f585..125c44f77638 100644 --- a/arch/um/drivers/slip_kern.c +++ b/arch/um/drivers/slip_kern.c | |||
@@ -49,7 +49,7 @@ static unsigned short slip_protocol(struct sk_buff *skbuff) | |||
49 | static int slip_read(int fd, struct sk_buff **skb, | 49 | static int slip_read(int fd, struct sk_buff **skb, |
50 | struct uml_net_private *lp) | 50 | struct uml_net_private *lp) |
51 | { | 51 | { |
52 | return(slip_user_read(fd, (*skb)->mac.raw, (*skb)->dev->mtu, | 52 | return(slip_user_read(fd, skb_mac_header(*skb), (*skb)->dev->mtu, |
53 | (struct slip_data *) &lp->user)); | 53 | (struct slip_data *) &lp->user)); |
54 | } | 54 | } |
55 | 55 | ||
diff --git a/arch/um/drivers/slirp_kern.c b/arch/um/drivers/slirp_kern.c index b3ed8fb874ab..0a0324a6d290 100644 --- a/arch/um/drivers/slirp_kern.c +++ b/arch/um/drivers/slirp_kern.c | |||
@@ -53,7 +53,7 @@ static unsigned short slirp_protocol(struct sk_buff *skbuff) | |||
53 | static int slirp_read(int fd, struct sk_buff **skb, | 53 | static int slirp_read(int fd, struct sk_buff **skb, |
54 | struct uml_net_private *lp) | 54 | struct uml_net_private *lp) |
55 | { | 55 | { |
56 | return(slirp_user_read(fd, (*skb)->mac.raw, (*skb)->dev->mtu, | 56 | return(slirp_user_read(fd, skb_mac_header(*skb), (*skb)->dev->mtu, |
57 | (struct slirp_data *) &lp->user)); | 57 | (struct slirp_data *) &lp->user)); |
58 | } | 58 | } |
59 | 59 | ||