X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=net%2F802%2Fpsnap.c;h=7cba1f426081b61f45886c28f53a2cea5b93f602;hb=9c70220b73908f64792422a2c39c593c4792f2c5;hp=270b9d2cae6589b983f9925ee728370aec74cec7;hpb=2e9abdd9bad485970b37cd53a82f92702054984c;p=linux-block.git diff --git a/net/802/psnap.c b/net/802/psnap.c index 270b9d2cae65..7cba1f426081 100644 --- a/net/802/psnap.c +++ b/net/802/psnap.c @@ -56,7 +56,7 @@ static int snap_rcv(struct sk_buff *skb, struct net_device *dev, }; rcu_read_lock(); - proto = find_snap_client(skb->h.raw); + proto = find_snap_client(skb_transport_header(skb)); if (proto) { /* Pass the frame on. */ skb->h.raw += 5; @@ -117,7 +117,7 @@ module_exit(snap_exit); */ struct datalink_proto *register_snap_client(unsigned char *desc, int (*rcvfunc)(struct sk_buff *, - struct net_device *, + struct net_device *, struct packet_type *, struct net_device *)) {