Lines Matching refs:frag_pkt
428 struct net_pkt *frag_pkt; in send_ipv4_fragment() local
433 frag_pkt = net_pkt_alloc_with_buffer(net_pkt_iface(pkt), fit_len + in send_ipv4_fragment()
436 if (!frag_pkt) { in send_ipv4_fragment()
440 net_pkt_cursor_init(frag_pkt); in send_ipv4_fragment()
442 net_pkt_cursor_backup(frag_pkt, &cur); in send_ipv4_fragment()
445 if (net_pkt_copy(frag_pkt, pkt, net_pkt_ip_hdr_len(pkt))) { in send_ipv4_fragment()
453 net_pkt_copy(frag_pkt, pkt, fit_len)) { in send_ipv4_fragment()
457 net_pkt_cursor_restore(frag_pkt, &cur); in send_ipv4_fragment()
460 net_pkt_set_ip_hdr_len(frag_pkt, net_pkt_ip_hdr_len(pkt)); in send_ipv4_fragment()
462 net_pkt_set_overwrite(frag_pkt, true); in send_ipv4_fragment()
463 net_pkt_cursor_init(frag_pkt); in send_ipv4_fragment()
469 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(frag_pkt, &ipv4_access); in send_ipv4_fragment()
485 ipv4_hdr->chksum = net_calc_chksum_ipv4(frag_pkt); in send_ipv4_fragment()
487 net_pkt_set_chksum_done(frag_pkt, true); in send_ipv4_fragment()
489 net_pkt_set_data(frag_pkt, &ipv4_access); in send_ipv4_fragment()
491 net_pkt_set_overwrite(frag_pkt, false); in send_ipv4_fragment()
492 net_pkt_cursor_restore(frag_pkt, &cur); in send_ipv4_fragment()
495 net_pkt_set_context(frag_pkt, net_pkt_context(pkt)); in send_ipv4_fragment()
499 ret = net_send_data(frag_pkt); in send_ipv4_fragment()
513 net_pkt_unref(frag_pkt); in send_ipv4_fragment()