Home
last modified time | relevance | path

Searched refs:net_pkt_ip_hdr_len (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dipv4_fragment.c169 LOG_DBG("Removing %d bytes from start of pkt %p", net_pkt_ip_hdr_len(pkt), in reassemble_packet()
172 if (net_pkt_pull(pkt, net_pkt_ip_hdr_len(pkt))) { in reassemble_packet()
278 payload_len = net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt); in fragments_are_ready()
344 if (more && (net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt)) % 8) { in net_ipv4_handle_fragment_hdr()
434 net_pkt_ip_hdr_len(pkt), in send_ipv4_fragment()
445 if (net_pkt_copy(frag_pkt, pkt, net_pkt_ip_hdr_len(pkt))) { in send_ipv4_fragment()
452 if (net_pkt_skip(pkt, (frag_offset + net_pkt_ip_hdr_len(pkt))) || in send_ipv4_fragment()
460 net_pkt_set_ip_hdr_len(frag_pkt, net_pkt_ip_hdr_len(pkt)); in send_ipv4_fragment()
482 ipv4_hdr->len = htons((fit_len + net_pkt_ip_hdr_len(pkt))); in send_ipv4_fragment()
551 fit_len = (mtu - net_pkt_ip_hdr_len(pkt)) / 8; in net_ipv4_send_fragmented_pkt()
[all …]
Dudp.c51 length = net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt) - in net_udp_finalize()
80 if (net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + in net_udp_get_hdr()
109 if (net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + in net_udp_set_hdr()
164 net_pkt_ip_hdr_len(pkt) - in net_udp_input()
Dipv6_fragment.c618 net_pkt_copy(frag_pkt, pkt, net_pkt_ip_hdr_len(pkt) + in send_ipv6_fragment()
645 net_pkt_set_ip_hdr_len(frag_pkt, net_pkt_ip_hdr_len(pkt)); in send_ipv6_fragment()
717 (net_pkt_ip_hdr_len(pkt) + net_pkt_ipv6_ext_len(pkt)); in net_ipv6_send_fragmented_pkt()
726 net_pkt_ip_hdr_len(pkt) + net_pkt_ipv6_ext_len(pkt)); in net_ipv6_send_fragmented_pkt()
758 (net_pkt_ip_hdr_len(pkt) + net_pkt_ipv6_ext_len(pkt)); in net_ipv6_send_fragmented_pkt()
Dutils.c650 net_pkt_ip_hdr_len(pkt) - in net_calc_chksum()
657 net_pkt_ip_hdr_len(pkt) - in net_calc_chksum()
670 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) - len); in net_calc_chksum()
693 net_pkt_ip_hdr_len(pkt) + in net_calc_chksum_ipv4()
Dipv4.c123 ((net_pkt_ip_hdr_len(pkt) + in net_ipv4_finalize()
426 net_pkt_pull(pkt, net_pkt_ip_hdr_len(pkt) + in net_ipv4_input()
Dipv6_mld.c362 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + net_pkt_ipv6_ext_len(pkt) + in send_mld_report()
Digmp.c421 pkt->buffer->len - (net_pkt_ip_hdr_len(pkt) + net_pkt_ipv4_opts_len(pkt));
Dicmpv4.c439 net_pkt_ip_hdr_len(pkt) - in icmpv4_handle_echo_request()
Dipv6.c797 net_pkt_pull(pkt, net_pkt_ip_hdr_len(pkt) + in net_ipv6_input()
Dtcp.c152 size_t ip_len = net_pkt_ip_hdr_len(pkt) + net_pkt_ip_opts_len(pkt); in th_get()
328 int len = net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt) - in tcp_data_len()
1077 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + net_pkt_ip_opts_len(pkt) + in tcp_options_get()
4232 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + in tp_input()
4244 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + in tp_input()
Dnet_pkt.c2061 net_pkt_set_ip_hdr_len(clone_pkt, net_pkt_ip_hdr_len(pkt));
Dipv6_nbr.c1892 tllao_offset = net_pkt_ip_hdr_len(pkt) + in handle_na_input()
/Zephyr-latest/tests/net/checksum_offload/src/
Dmain.c141 net_pkt_ip_hdr_len(pkt) + in get_udp_chksum()
168 net_pkt_ip_hdr_len(pkt) + in get_icmp_chksum()
232 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + net_pkt_ip_opts_len(pkt)); in test_receiving()
279 net_pkt_ip_hdr_len(pkt) + in test_fragment()
923 size_t hdr_offset = net_pkt_ip_hdr_len(pkt) + in test_fragment_rx_udp()
1175 size_t hdr_offset = net_pkt_ip_hdr_len(pkt) + in icmp_handler()
/Zephyr-latest/tests/net/igmp/src/
Dmain.c130 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + in get_igmp_hdr()
145 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + net_pkt_ipv4_opts_len(pkt)); in get_igmp_group_record()
/Zephyr-latest/tests/net/ipv4_fragment/src/
Dmain.c638 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt)); in ZTEST()
707 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt)); in ZTEST()
851 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt)); in ZTEST()
/Zephyr-latest/tests/boards/espressif/wifi/src/
Dmain.c123 size_t hdr_offset = net_pkt_ip_hdr_len(pkt) + net_pkt_ip_opts_len(pkt) + in icmp_event()
/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c2016 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + net_pkt_ipv6_ext_len(pkt)); in ZTEST()
2176 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + net_pkt_ipv6_ext_len(pkt)); in ZTEST()
/Zephyr-latest/tests/net/mld/src/
Dmain.c136 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + in get_icmp_hdr()
/Zephyr-latest/tests/net/ipv6/src/
Dmain.c295 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + net_pkt_ipv6_ext_len(pkt)); in skip_headers()
312 if (net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + in get_icmp_hdr()
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c77 size_t payload_len = net_pkt_get_len(pkt) - net_pkt_ip_hdr_len(pkt) - in send_icmp_echo_reply()
/Zephyr-latest/include/zephyr/net/
Dnet_pkt.h519 static inline uint8_t net_pkt_ip_hdr_len(struct net_pkt *pkt) in net_pkt_ip_hdr_len() function
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4.c1935 net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt)); in net_dhcpv4_accept_unicast()
/Zephyr-latest/tests/net/tcp/src/
Dmain.c411 ret = net_pkt_skip(pkt, net_pkt_ip_hdr_len(pkt) + in read_tcp_header()