X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fplip.c;h=937b6198c2294f4804fa6757b4fcf69b9f58aeb3;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=4b8256c64ce31bb027e4cbc2e7420b816752cbd8;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/net/plip.c b/drivers/net/plip.c index 4b8256c64..937b6198c 100644 --- a/drivers/net/plip.c +++ b/drivers/net/plip.c @@ -547,7 +547,7 @@ static unsigned short plip_type_trans(struct sk_buff *skb, struct net_device *de skb->mac.raw=skb->data; skb_pull(skb,dev->hard_header_len); - eth= skb->mac.ethernet; + eth = eth_hdr(skb); if(*eth->h_dest&1) { @@ -1217,7 +1217,10 @@ static int plip_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { struct net_local *nl = netdev_priv(dev); - struct plipconf *pc = (struct plipconf *) &rq->ifr_data; + struct plipconf *pc = (struct plipconf *) &rq->ifr_ifru; + + if (cmd != SIOCDEVPLIP) + return -EOPNOTSUPP; switch(pc->pcmd) { case PLIP_GET_TIMEOUT: