Home
last modified time | relevance | path

Searched refs:NET_IPV4H_LEN (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-3.6.0/tests/net/icmpv4/src/
Dmain.c185 ret = net_pkt_skip(pkt, NET_IPV4H_LEN); in verify_echo_reply()
202 NET_IPV4H_LEN - NET_ICMPH_LEN; in verify_echo_reply()
213 if (memcmp(buf, icmpv4_echo_req + NET_IPV4H_LEN + NET_ICMPH_LEN, in verify_echo_reply()
249 ret = net_pkt_skip(pkt, NET_IPV4H_LEN - 1U + opts_len); in verify_echo_reply_with_opts()
266 NET_IPV4H_LEN - NET_ICMPH_LEN - opts_len; in verify_echo_reply_with_opts()
278 NET_IPV4H_LEN + NET_ICMPH_LEN + opts_len, in verify_echo_reply_with_opts()
/Zephyr-Core-3.6.0/tests/net/ipv4_fragment/src/
Dmain.c290 pkt_recv_size += net_pkt_get_len(pkt) - NET_IPV4H_LEN; in sender_iface()
330 net_pkt_skip(recv_pkt, NET_IPV4H_LEN); in sender_iface()
335 net_pkt_skip(recv_pkt, NET_IPV4H_LEN); in sender_iface()
408 net_pkt_read(pkt, verify_buf, NET_IPV4H_LEN); in udp_data_received()
416 i = NET_IPV4H_LEN; in udp_data_received()
489 net_pkt_read(pkt, verify_buf, NET_IPV4H_LEN); in tcp_data_received()
509 i = NET_IPV4H_LEN; in tcp_data_received()
656 zassert_equal(lower_layer_total_size, (NET_IPV4H_LEN * 3) + packet_len, in ZTEST()
660 zassert_equal(pkt_recv_expected_size, (pkt_recv_size + NET_IPV4H_LEN), in ZTEST()
726 zassert_equal(lower_layer_total_size, (NET_IPV4H_LEN * 3) + packet_len, in ZTEST()
[all …]
/Zephyr-Core-3.6.0/include/zephyr/net/
Dnet_ip.h576 #define NET_IPV4H_LEN 20 /* Size of IPv4 header */ macro
578 #define NET_IPV4UDPH_LEN (NET_UDPH_LEN + NET_IPV4H_LEN) /* IPv4 + UDP */
579 #define NET_IPV4TCPH_LEN (NET_TCPH_LEN + NET_IPV4H_LEN) /* IPv4 + TCP */
580 #define NET_IPV4ICMPH_LEN (NET_IPV4H_LEN + NET_ICMPH_LEN) /* ICMPv4 + IPv4 */
/Zephyr-Core-3.6.0/tests/net/net_pkt/src/
Dmain.c212 zassert_true(pkt_is_of_size(pkt, NET_IPV4H_LEN), in ZTEST()
553 zassert_true(net_pkt_get_len(pkt) == NET_IPV4H_LEN, in ZTEST()
/Zephyr-Core-3.6.0/subsys/net/ip/
Dnet_pkt.c50 #define MAX_IP_PROTO_LEN NET_IPV4H_LEN
1011 hdr_len += NET_IPV4H_LEN;