Commit 91239976 authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN: Cisco HDLC update

Only handle reverse ARP special, leave the rest to the
network layer.

(by Bjoern A. Zeeb)
parent 0500df7b
...@@ -1746,10 +1746,6 @@ isdn_net_ciscohdlck_receive(isdn_net_local *lp, struct sk_buff *skb) ...@@ -1746,10 +1746,6 @@ isdn_net_ciscohdlck_receive(isdn_net_local *lp, struct sk_buff *skb)
} }
switch (type) { switch (type) {
case CISCO_TYPE_INET:
skb->protocol = htons(ETH_P_IP);
netif_rx(skb);
break;
case CISCO_TYPE_SLARP: case CISCO_TYPE_SLARP:
isdn_net_ciscohdlck_slarp_in(lp, skb); isdn_net_ciscohdlck_slarp_in(lp, skb);
goto out_free; goto out_free;
...@@ -1759,11 +1755,11 @@ isdn_net_ciscohdlck_receive(isdn_net_local *lp, struct sk_buff *skb) ...@@ -1759,11 +1755,11 @@ isdn_net_ciscohdlck_receive(isdn_net_local *lp, struct sk_buff *skb)
"\"no cdp enable\" on cisco.\n", lp->name); "\"no cdp enable\" on cisco.\n", lp->name);
goto out_free; goto out_free;
default: default:
printk(KERN_WARNING "%s: Unknown Cisco type 0x%04x\n", /* no special cisco protocol */
lp->name, type); skb->protocol = htons(type);
goto out_free; netif_rx(skb);
return;
} }
return;
out_free: out_free:
kfree_skb(skb); kfree_skb(skb);
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#define CISCO_ADDR_BROADCAST 0x8f #define CISCO_ADDR_BROADCAST 0x8f
#define CISCO_CTRL 0x00 #define CISCO_CTRL 0x00
#define CISCO_TYPE_CDP 0x2000 #define CISCO_TYPE_CDP 0x2000
#define CISCO_TYPE_INET 0x0800
#define CISCO_TYPE_SLARP 0x8035 #define CISCO_TYPE_SLARP 0x8035
#define CISCO_SLARP_REQUEST 0 #define CISCO_SLARP_REQUEST 0
#define CISCO_SLARP_REPLY 1 #define CISCO_SLARP_REPLY 1
......
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