Lines Matching refs:hlen
674 int ip6_fraglist_init(struct sk_buff *skb, unsigned int hlen, u8 *prevhdr, in ip6_fraglist_init() argument
683 iter->tmp_hdr = kmemdup(skb_network_header(skb), hlen, GFP_ATOMIC); in ip6_fraglist_init()
691 iter->hlen = hlen; in ip6_fraglist_init()
695 __skb_pull(skb, hlen); in ip6_fraglist_init()
697 __skb_push(skb, hlen); in ip6_fraglist_init()
699 memcpy(skb_network_header(skb), iter->tmp_hdr, hlen); in ip6_fraglist_init()
719 unsigned int hlen = iter->hlen; in ip6_fraglist_prepare() local
725 __skb_push(frag, hlen); in ip6_fraglist_prepare()
727 memcpy(skb_network_header(frag), iter->tmp_hdr, hlen); in ip6_fraglist_prepare()
728 iter->offset += skb->len - hlen - sizeof(struct frag_hdr); in ip6_fraglist_prepare()
740 void ip6_frag_init(struct sk_buff *skb, unsigned int hlen, unsigned int mtu, in ip6_frag_init() argument
748 state->hlen = hlen; in ip6_frag_init()
751 state->left = skb->len - hlen; /* Space per frame */ in ip6_frag_init()
752 state->ptr = hlen; /* Where to start from */ in ip6_frag_init()
778 frag = alloc_skb(len + state->hlen + sizeof(struct frag_hdr) + in ip6_frag_next()
789 skb_put(frag, len + state->hlen + sizeof(struct frag_hdr)); in ip6_frag_next()
791 fh = (struct frag_hdr *)(skb_network_header(frag) + state->hlen); in ip6_frag_next()
792 frag->transport_header = (frag->network_header + state->hlen + in ip6_frag_next()
805 skb_copy_from_linear_data(skb, skb_network_header(frag), state->hlen); in ip6_frag_next()
845 unsigned int mtu, hlen, nexthdr_offset; in ip6_fragment() local
854 hlen = err; in ip6_fragment()
880 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in ip6_fragment()
882 mtu -= hlen + sizeof(struct frag_hdr); in ip6_fragment()
898 if (first_len - hlen > mtu || in ip6_fragment()
899 ((first_len - hlen) & 7) || in ip6_fragment()
908 skb_headroom(frag) < (hlen + hroom + sizeof(struct frag_hdr))) in ip6_fragment()
923 err = ip6_fraglist_init(skb, hlen, prevhdr, nexthdr, frag_id, in ip6_fragment()
980 ip6_frag_init(skb, hlen, mtu, rt->dst.dev->needed_tailroom, in ip6_fragment()