Lines Matching refs:hlen

590 		      unsigned int hlen, struct ip_fraglist_iter *iter)  in ip_fraglist_init()  argument
599 iter->hlen = hlen; in ip_fraglist_init()
611 unsigned int hlen = iter->hlen; in ip_fraglist_prepare() local
618 __skb_push(frag, hlen); in ip_fraglist_prepare()
620 memcpy(skb_network_header(frag), iph, hlen); in ip_fraglist_prepare()
625 iter->offset += skb->len - hlen; in ip_fraglist_prepare()
634 void ip_frag_init(struct sk_buff *skb, unsigned int hlen, in ip_frag_init() argument
641 state->hlen = hlen; in ip_frag_init()
645 state->left = skb->len - hlen; /* Space per frame */ in ip_frag_init()
646 state->ptr = hlen; /* Where to start from */ in ip_frag_init()
686 skb2 = alloc_skb(len + state->hlen + state->ll_rs, GFP_ATOMIC); in ip_frag_next()
696 skb_put(skb2, len + state->hlen); in ip_frag_next()
698 skb2->transport_header = skb2->network_header + state->hlen; in ip_frag_next()
712 skb_copy_from_linear_data(skb, skb_network_header(skb2), state->hlen); in ip_frag_next()
738 iph->tot_len = htons(len + state->hlen); in ip_frag_next()
759 unsigned int mtu, hlen, ll_rs; in ip_do_fragment() local
784 hlen = iph->ihl * 4; in ip_do_fragment()
785 mtu = mtu - hlen; /* Size of data space */ in ip_do_fragment()
800 if (first_len - hlen > mtu || in ip_do_fragment()
801 ((first_len - hlen) & 7) || in ip_do_fragment()
811 skb_headroom(frag) < hlen + ll_rs) in ip_do_fragment()
827 ip_fraglist_init(skb, iph, hlen, &iter); in ip_do_fragment()
876 ip_frag_init(skb, hlen, ll_rs, mtu, IPCB(skb)->flags & IPSKB_FRAG_PMTU, in ip_do_fragment()