Merge branch 'master' of github.com:davem330/net
Conflicts: MAINTAINERS drivers/net/Kconfig drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c drivers/net/ethernet/broadcom/tg3.c drivers/net/wireless/iwlwifi/iwl-pci.c drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c drivers/net/wireless/rt2x00/rt2800usb.c drivers/net/wireless/wl12xx/main.c
This commit is contained in:
@@ -1465,7 +1465,12 @@ static int ppp_mp_explode(struct ppp *ppp, struct sk_buff *skb)
|
||||
continue;
|
||||
}
|
||||
|
||||
mtu = pch->chan->mtu - hdrlen;
|
||||
/*
|
||||
* hdrlen includes the 2-byte PPP protocol field, but the
|
||||
* MTU counts only the payload excluding the protocol field.
|
||||
* (RFC1661 Section 2)
|
||||
*/
|
||||
mtu = pch->chan->mtu - (hdrlen - 2);
|
||||
if (mtu < 4)
|
||||
mtu = 4;
|
||||
if (flen > mtu)
|
||||
|
Reference in New Issue
Block a user