diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-16 01:17:00 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-16 01:17:00 -0500 |
| commit | afd5fdbf2ed86b96b23fda3b2c47096764811788 (patch) | |
| tree | e4797c669b3ee5531bfc862da64a180e706bfcfa | |
| parent | 1d546a5bf089a7d9c36aec8d8a6065a8a63e2c29 (diff) | |
ISDN/PPP: Remove bogus header handling
I cannot see now reason why ISDN PPP devices should have a fake
::header routine which reserves a couple of bytes just to reclaim them
later during hard_start_xmit(), and since it works just as well without
it...
| -rw-r--r-- | drivers/isdn/i4l/isdn_ppp.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/isdn/i4l/isdn_ppp.c b/drivers/isdn/i4l/isdn_ppp.c index 2eadf32b1ab7..64caebad6055 100644 --- a/drivers/isdn/i4l/isdn_ppp.c +++ b/drivers/isdn/i4l/isdn_ppp.c @@ -1159,11 +1159,6 @@ isdn_ppp_start_xmit(struct sk_buff *skb, struct net_device *ndev) * after this line .. requeueing in the device queue is no longer allowed!!! */ - /* Pull off the fake header we stuck on earlier to keep - * the fragmentation code happy. - */ - skb_pull(skb,IPPP_MAX_HEADER); - if (ipt->debug & 0x4) printk(KERN_DEBUG "xmit skb, len %d\n", (int) skb->len); if (ipts->debug & 0x40) @@ -2144,16 +2139,6 @@ isdn_ppp_close(isdn_net_local *lp) ippp_ccp_free(lp->ccp); } -static int -isdn_ppp_header(struct sk_buff *skb, struct net_device *dev, - unsigned short type, void *daddr, void *saddr, - unsigned plen) -{ - skb_push(skb, IPPP_MAX_HEADER); - - return IPPP_MAX_HEADER; -} - static void isdn_ppp_disconnected(isdn_net_dev *idev) { @@ -2163,7 +2148,6 @@ isdn_ppp_disconnected(isdn_net_dev *idev) struct isdn_netif_ops isdn_ppp_ops = { .hard_start_xmit = isdn_ppp_start_xmit, - .hard_header = isdn_ppp_header, .do_ioctl = isdn_ppp_dev_ioctl, .flags = IFF_NOARP | IFF_POINTOPOINT, .type = ARPHRD_PPP, |
