Commit 0cf604b1 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by David S. Miller

[SNAP] make SNAP work again

Stupid me, this is really needed, IPX as it supports several datalink_protos
and needs pt->type to find the right interface. Appletalk doesn't care, so
it worked without this. And these are the only snap users in the kernel.
parent c84af579
......@@ -56,12 +56,15 @@ static int snap_rcv(struct sk_buff *skb, struct net_device *dev,
{
int rc = 1;
struct datalink_proto *proto = find_snap_client(skb->h.raw);
static struct packet_type snap_packet_type = {
.type = __constant_htons(ETH_P_SNAP),
};
if (proto) {
/* Pass the frame on. */
skb->h.raw += 5;
skb_pull(skb, 5);
rc = proto->rcvfunc(skb, dev, pt);
rc = proto->rcvfunc(skb, dev, &snap_packet_type);
} else {
skb->sk = NULL;
kfree_skb(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment