Home
last modified time | relevance | path

Searched refs:frag_pkt (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dipv4_fragment.c428 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()
[all …]
Dipv6_fragment.c600 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()
[all …]