[SK_BUFF]: Introduce skb_transport_header(skb)
[linux-block.git] / net / 802 / psnap.c
index 270b9d2cae6589b983f9925ee728370aec74cec7..7cba1f426081b61f45886c28f53a2cea5b93f602 100644 (file)
@@ -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 *))
 {