diff options
Diffstat (limited to 'net/802/p8023.c')
-rw-r--r-- | net/802/p8023.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/net/802/p8023.c b/net/802/p8023.c index 4b1f5e0bf..57bd6a74a 100644 --- a/net/802/p8023.c +++ b/net/802/p8023.c @@ -9,12 +9,8 @@ p8023_datalink_header(struct datalink_proto *dl, struct sk_buff *skb, unsigned char *dest_node) { struct device *dev = skb->dev; - unsigned long len = skb->len; - unsigned long hard_len = dev->hard_header_len; - - dev->hard_header(skb->data, dev, len - hard_len, - dest_node, NULL, len - hard_len, skb); - skb->h.raw = skb->data + hard_len; + + dev->hard_header(skb, dev, ETH_P_802_3, dest_node, NULL, skb->len); } struct datalink_proto * @@ -33,3 +29,9 @@ make_8023_client(void) return proto; } +void destroy_8023_client(struct datalink_proto *dl) +{ + if (dl) + kfree_s(dl,sizeof(struct datalink_proto)); +} + |