patch-2.2.18 linux/drivers/net/hdlc.c
Next file: linux/drivers/net/ibmtr.c
Previous file: linux/drivers/net/hamradio/scc.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Thu Nov 9 13:33:17 2000
- Orig file:
v2.2.17/drivers/net/hdlc.c
- Orig date:
Sat Sep 9 18:42:38 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/net/hdlc.c linux/drivers/net/hdlc.c
@@ -50,6 +50,7 @@
#define CISCO_ADDR_REQ 0 /* Cisco address request */
#define CISCO_ADDR_REPLY 1 /* Cisco address reply */
#define CISCO_KEEPALIVE_REQ 2 /* Cisco keepalive request */
+#define CISCO_SYS_INFO 0x2000 /* Cisco interface/system info */
static int hdlc_ioctl(struct device *dev, struct ifreq *ifr, int cmd);
@@ -141,6 +142,11 @@
return;
#endif
+ case CISCO_SYS_INFO:
+ /* Packet is not needed, drop it. */
+ dev_kfree_skb(skb);
+ return;
+
case CISCO_KEEPALIVE:
if (skb->len != CISCO_PACKET_LEN &&
skb->len != CISCO_BIG_PACKET_LEN) {
@@ -206,7 +212,7 @@
} /* switch(keepalive type) */
} /* switch(protocol) */
- printk(KERN_INFO "%s: Unusupported protocol %x\n", hdlc->name,
+ printk(KERN_INFO "%s: Unsupported protocol %x\n", hdlc->name,
data->protocol);
hdlc->stats.rx_bytes+=skb->len;
hdlc->stats.rx_packets++;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)