Lines Matching refs:hdrlen
79 int hdrlen; /* space to leave for headers */ member
433 skb = alloc_skb(count + pf->hdrlen, GFP_KERNEL); in ppp_write()
436 skb_reserve(skb, pf->hdrlen); in ppp_write()
1139 int i, bits, hdrlen, mtu; in ppp_mp_explode() local
1148 hdrlen = (ppp->flags & SC_MP_XSHORTSEQ)? MPHDRLEN_SSN: MPHDRLEN; in ppp_mp_explode()
1212 if (pch->chan == 0 || (mtu = pch->chan->mtu) < hdrlen) { in ppp_mp_explode()
1229 if (fnb > mtu + 2 - hdrlen) in ppp_mp_explode()
1230 fnb = mtu + 2 - hdrlen; in ppp_mp_explode()
1233 frag = alloc_skb(fnb + hdrlen, GFP_ATOMIC); in ppp_mp_explode()
1236 q = skb_put(frag, fnb + hdrlen); in ppp_mp_explode()
1251 memcpy(q + hdrlen, p, fnb); in ppp_mp_explode()
1836 pch->file.hdrlen = chan->hdrlen; in ppp_register_channel()
2257 ppp->file.hdrlen = PPP_HDRLEN - 2; /* don't count proto bytes */ in ppp_create_interface()
2433 int hdrlen; in ppp_connect_channel() local
2446 if (pch->file.hdrlen > ppp->file.hdrlen) in ppp_connect_channel()
2447 ppp->file.hdrlen = pch->file.hdrlen; in ppp_connect_channel()
2448 hdrlen = pch->file.hdrlen + 2; /* for protocol bytes */ in ppp_connect_channel()
2449 if (ppp->dev && hdrlen > ppp->dev->hard_header_len) in ppp_connect_channel()
2450 ppp->dev->hard_header_len = hdrlen; in ppp_connect_channel()