You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[HIPPI/FDDI]: Make {hippi,fddi}_type_trans set skb->dev
Now all the _type_trans routines are consistent in this regard. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
c8fb7948dc
commit
0a4f23fbbf
@@ -130,6 +130,7 @@ __be16 fddi_type_trans(struct sk_buff *skb, struct net_device *dev)
|
||||
* to start of packet data. Assume 802.2 SNAP frames for now.
|
||||
*/
|
||||
|
||||
skb->dev = dev;
|
||||
skb->mac.raw = skb->data; /* point to frame control (FC) */
|
||||
|
||||
if(fddi->hdr.llc_8022_1.dsap==0xe0)
|
||||
|
||||
+4
-4
@@ -126,14 +126,14 @@ __be16 hippi_type_trans(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
struct hippi_hdr *hip;
|
||||
|
||||
hip = (struct hippi_hdr *) skb->data;
|
||||
|
||||
/*
|
||||
* This is actually wrong ... question is if we really should
|
||||
* set the raw address here.
|
||||
*/
|
||||
skb->mac.raw = skb->data;
|
||||
skb_pull(skb, HIPPI_HLEN);
|
||||
skb->dev = dev;
|
||||
skb->mac.raw = skb->data;
|
||||
hip = (struct hippi_hdr *)skb->mac.raw;
|
||||
skb_pull(skb, HIPPI_HLEN);
|
||||
|
||||
/*
|
||||
* No fancy promisc stuff here now.
|
||||
|
||||
Reference in New Issue
Block a user