Lines Matching refs:hlen

700 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr,  in ip6_fraglist_init()  argument
709 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init()
717 iter->hlen = hlen; in ip6_fraglist_init()
721 __skb_pull(skb, hlen); in ip6_fraglist_init()
723 __skb_push(skb, hlen); in ip6_fraglist_init()
725 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init()
745 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local
751 __skb_push(frag, hlen); in ip6_fraglist_prepare()
753 memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); in ip6_fraglist_prepare()
754 iter->offset += skb->len - hlen - sizeof(struct frag_hdr); in ip6_fraglist_prepare()
766 void ip6_frag_init(struct sk_buff *skb, unsigned int hlen, unsigned int mtu, in ip6_frag_init() argument
774 state->hlen = hlen; in ip6_frag_init()
777 state->left = skb->len - hlen; /* Space per frame */ in ip6_frag_init()
778 state->ptr = hlen; /* Where to start from */ in ip6_frag_init()
804 frag = alloc_skb(len + state->hlen + sizeof(struct frag_hdr) + in ip6_frag_next()
815 skb_put(frag, len + state->hlen + sizeof(struct frag_hdr)); in ip6_frag_next()
817 fh = (struct frag_hdr *)(skb_network_header(frag) + state->hlen); in ip6_frag_next()
818 frag->transport_header = (frag->network_header + state->hlen + in ip6_frag_next()
831 skb_copy_from_linear_data(skb, skb_network_header(frag), state->hlen); in ip6_frag_next()
872 unsigned int mtu, hlen, nexthdr_offset; in ip6_fragment() local
881 hlen = err; in ip6_fragment()
909 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in ip6_fragment()
911 mtu -= hlen + sizeof(struct frag_hdr); in ip6_fragment()
927 if (first_len - hlen > mtu || in ip6_fragment()
928 ((first_len - hlen) & 7) || in ip6_fragment()
937 skb_headroom(frag) < (hlen + hroom + sizeof(struct frag_hdr))) in ip6_fragment()
952 err = ip6_fraglist_init(skb, hlen, prevhdr, nexthdr, frag_id, in ip6_fragment()
1009 ip6_frag_init(skb, hlen, mtu, rt->dst.dev->needed_tailroom, in ip6_fragment()