rfc1051.c (5628d98fc5e99e29f2a480d4a7b1faba94a0d422) rfc1051.c (d8101e7bec352b7b6a154ec2e428d01bddb7e5b4)
1/*
2 * Linux ARCnet driver - RFC1051 ("simple" standard) packet encapsulation
3 *
4 * Written 1994-1999 by Avery Pennarun.
5 * Derived from skeleton.c by Donald Becker.
6 *
7 * Special thanks to Contemporary Controls, Inc. (www.ccontrols.com)
8 * for sponsoring the further development of this driver.

--- 119 unchanged lines hidden (view full) ---

128 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length);
129
130 if (length >= MinTU)
131 ofs = 512 - length;
132 else
133 ofs = 256 - length;
134
135 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
1/*
2 * Linux ARCnet driver - RFC1051 ("simple" standard) packet encapsulation
3 *
4 * Written 1994-1999 by Avery Pennarun.
5 * Derived from skeleton.c by Donald Becker.
6 *
7 * Special thanks to Contemporary Controls, Inc. (www.ccontrols.com)
8 * for sponsoring the further development of this driver.

--- 119 unchanged lines hidden (view full) ---

128 arc_printk(D_DURING, dev, "it's a raw packet (length=%d)\n", length);
129
130 if (length >= MinTU)
131 ofs = 512 - length;
132 else
133 ofs = 256 - length;
134
135 skb = alloc_skb(length + ARC_HDR_SIZE, GFP_ATOMIC);
136 if (skb == NULL) {
136 if (!skb) {
137 dev->stats.rx_dropped++;
138 return;
139 }
140 skb_put(skb, length + ARC_HDR_SIZE);
141 skb->dev = dev;
142
143 pkt = (struct archdr *)skb->data;
144

--- 96 unchanged lines hidden ---
137 dev->stats.rx_dropped++;
138 return;
139 }
140 skb_put(skb, length + ARC_HDR_SIZE);
141 skb->dev = dev;
142
143 pkt = (struct archdr *)skb->data;
144

--- 96 unchanged lines hidden ---