Lines Matching refs:frag_pkt
600 struct net_pkt *frag_pkt; in send_ipv6_fragment() local
602 frag_pkt = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), fit_len + in send_ipv6_fragment()
606 if (!frag_pkt) { in send_ipv6_fragment()
615 if (net_pkt_copy(frag_pkt, pkt, next_hdr_off) || in send_ipv6_fragment()
616 net_pkt_write_u8(frag_pkt, NET_IPV6_NEXTHDR_FRAG) || in send_ipv6_fragment()
618 net_pkt_copy(frag_pkt, pkt, net_pkt_ip_hdr_len(pkt) + in send_ipv6_fragment()
628 frag_hdr = (struct net_ipv6_frag_hdr *)net_pkt_get_data(frag_pkt, in send_ipv6_fragment()
639 net_pkt_set_chksum_done(frag_pkt, true); in send_ipv6_fragment()
641 if (net_pkt_set_data(frag_pkt, &frag_access)) { in send_ipv6_fragment()
645 net_pkt_set_ip_hdr_len(frag_pkt, net_pkt_ip_hdr_len(pkt)); in send_ipv6_fragment()
646 net_pkt_set_ipv6_ext_len(frag_pkt, in send_ipv6_fragment()
654 net_pkt_copy(frag_pkt, pkt, fit_len)) { in send_ipv6_fragment()
658 net_pkt_cursor_init(frag_pkt); in send_ipv6_fragment()
660 if (net_ipv6_finalize(frag_pkt, frag_pkt_next_hdr) < 0) { in send_ipv6_fragment()
665 net_pkt_set_context(frag_pkt, net_pkt_context(pkt)); in send_ipv6_fragment()
669 ret = net_send_data(frag_pkt); in send_ipv6_fragment()
683 net_pkt_unref(frag_pkt); in send_ipv6_fragment()