Home
last modified time | relevance | path

Searched refs:net_ipv4_hdr (Results 1 – 25 of 38) sorted by relevance

12

/Zephyr-latest/tests/net/ipv4_fragment/src/
Dmain.c207 const struct net_ipv4_hdr *hdr = NET_IPV4_HDR(pkt); in check_ipv4_fragment_header()
209 zassert_equal(hdr->vhl, orig_hdr[offsetof(struct net_ipv4_hdr, vhl)], in check_ipv4_fragment_header()
211 zassert_equal(hdr->tos, orig_hdr[offsetof(struct net_ipv4_hdr, tos)], in check_ipv4_fragment_header()
213 zassert_equal(hdr->ttl, orig_hdr[offsetof(struct net_ipv4_hdr, ttl)], in check_ipv4_fragment_header()
215 zassert_equal(hdr->proto, orig_hdr[offsetof(struct net_ipv4_hdr, proto)], in check_ipv4_fragment_header()
218 zassert_mem_equal(hdr->src, &orig_hdr[offsetof(struct net_ipv4_hdr, src)], in check_ipv4_fragment_header()
220 zassert_mem_equal(hdr->dst, &orig_hdr[offsetof(struct net_ipv4_hdr, dst)], in check_ipv4_fragment_header()
361 const struct net_ipv4_hdr *hdr = NET_IPV4_HDR(pkt); in udp_data_received()
381 zassert_equal(hdr->vhl, ipv4_udp[offsetof(struct net_ipv4_hdr, vhl)], in udp_data_received()
383 zassert_equal(hdr->tos, ipv4_udp[offsetof(struct net_ipv4_hdr, tos)], in udp_data_received()
[all …]
/Zephyr-latest/subsys/net/ip/
Dipv4.c43 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_create_full()
44 struct net_ipv4_hdr *ipv4_hdr; in net_ipv4_create_full()
46 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in net_ipv4_create_full()
84 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in net_ipv4_create_full()
110 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_finalize()
111 struct net_ipv4_hdr *ipv4_hdr; in net_ipv4_finalize()
115 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in net_ipv4_finalize()
166 if (net_pkt_skip(pkt, sizeof(struct net_ipv4_hdr))) { in net_ipv4_parse_hdr_options()
243 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_input()
249 struct net_ipv4_hdr *hdr; in net_ipv4_input()
[all …]
Dipv4_fragment.c142 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in reassemble_packet()
143 struct net_ipv4_hdr *ipv4_hdr; in reassemble_packet()
164 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in reassemble_packet()
194 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in reassemble_packet()
321 enum net_verdict net_ipv4_handle_fragment_hdr(struct net_pkt *pkt, struct net_ipv4_hdr *hdr) in net_ipv4_handle_fragment_hdr()
466 NET_PKT_DATA_ACCESS_DEFINE(ipv4_access, struct net_ipv4_hdr); in send_ipv4_fragment()
467 struct net_ipv4_hdr *ipv4_hdr; in send_ipv4_fragment()
469 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(frag_pkt, &ipv4_access); in send_ipv4_fragment()
525 struct net_ipv4_hdr *frag_hdr; in net_ipv4_send_fragmented_pkt()
527 NET_PKT_DATA_ACCESS_DEFINE(frag_access, struct net_ipv4_hdr); in net_ipv4_send_fragmented_pkt()
[all …]
Dicmpv4.c422 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmpv4_handle_echo_request()
515 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_icmpv4_send_error()
517 struct net_ipv4_hdr *ip_hdr; in net_icmpv4_send_error()
523 ip_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(orig, &ipv4_access); in net_icmpv4_send_error()
554 copy_len = sizeof(struct net_ipv4_hdr) + in net_icmpv4_send_error()
557 copy_len = sizeof(struct net_ipv4_hdr) + in net_icmpv4_send_error()
607 struct net_ipv4_hdr *ip_hdr) in net_icmpv4_input()
673 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmpv4_handle_dst_unreach()
697 if (length < (sizeof(struct net_ipv4_hdr) + in icmpv4_handle_dst_unreach()
701 length, sizeof(struct net_ipv4_hdr) + in icmpv4_handle_dst_unreach()
Dicmpv4.h53 struct net_ipv4_hdr *ip_hdr);
Dtp_priv.h34 #define ip_get(_x) ((struct net_ipv4_hdr *) net_pkt_ip_data((_x)))
Dipv4.h386 enum net_verdict net_ipv4_handle_fragment_hdr(struct net_pkt *pkt, struct net_ipv4_hdr *hdr);
389 struct net_ipv4_hdr *hdr) in net_ipv4_handle_fragment_hdr()
Dnet_private.h68 struct net_ipv4_hdr *ipv4_hdr,
309 struct net_ipv4_hdr *ip_hdr);
/Zephyr-latest/subsys/net/l2/virtual/ipip/
Dipip.c123 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in ipv4_get_tos()
124 struct net_ipv4_hdr *ipv4_hdr; in ipv4_get_tos()
126 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in ipv4_get_tos()
198 sizeof(struct net_ipv4_hdr), in interface_send()
238 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in interface_send()
381 NET_PKT_DATA_ACCESS_DEFINE(access, struct net_ipv4_hdr); in interface_recv()
382 struct net_ipv4_hdr *hdr; in interface_recv()
388 hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &access); in interface_recv()
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c74 struct net_ipv4_hdr *ipv4_hdr) in send_icmp_echo_reply()
101 NET_PKT_DATA_ACCESS_DEFINE(ipv4_access, struct net_ipv4_hdr); in server_send()
102 struct net_ipv4_hdr *ipv4_hdr; in server_send()
104 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in server_send()
487 NET_PKT_DATA_ACCESS_DEFINE(ipv4_access, struct net_ipv4_hdr); in verify_offer()
492 struct net_ipv4_hdr *ipv4_hdr; in verify_offer()
497 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in verify_offer()
661 NET_PKT_DATA_ACCESS_DEFINE(ipv4_access, struct net_ipv4_hdr); in verify_ack()
666 struct net_ipv4_hdr *ipv4_hdr; in verify_ack()
671 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in verify_ack()
/Zephyr-latest/tests/net/icmp/src/
Dmain.c179 struct net_ipv4_hdr **hdr_ipv4, in get_ipv4_reply()
182 struct net_ipv4_hdr *ipv4_hdr = NULL; in get_ipv4_reply()
194 reply = net_pkt_alloc_with_buffer(iface, sizeof(struct net_ipv4_hdr) + in get_ipv4_reply()
246 struct net_ipv4_hdr **hdr_ipv4, in get_ipv4_reply()
334 struct net_ipv4_hdr *ipv4_hdr; in offload_ping_handler()
435 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmp_handler()
/Zephyr-latest/include/zephyr/net/
Dicmp.h109 struct net_ipv4_hdr *ipv4;
/Zephyr-latest/tests/net/arp/src/
Dmain.c335 struct net_ipv4_hdr *ipv4; in ZTEST()
364 pkt = net_pkt_alloc_with_buffer(iface, sizeof(struct net_ipv4_hdr) + in ZTEST()
371 ipv4 = (struct net_ipv4_hdr *)net_buf_add(pkt->buffer, in ZTEST()
372 sizeof(struct net_ipv4_hdr)); in ZTEST()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dtunnel.c124 mtu = NET_ETH_MTU - sizeof(struct net_ipv4_hdr); in init_tunnel()
/Zephyr-latest/tests/boards/espressif/ethernet/src/
Dmain.c61 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmp_event()
/Zephyr-latest/subsys/net/lib/capture/
Dcapture.c330 mtu = orig_mtu - sizeof(struct net_ipv4_hdr) - in net_capture_setup()
623 len = sizeof(struct net_ipv4_hdr); in capture_send()
686 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in capture_send()
/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c88 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in print_info()
/Zephyr-latest/tests/net/checksum_offload/src/
Dmain.c218 struct net_ipv4_hdr); in test_receiving()
219 struct net_ipv4_hdr *ipv4_hdr; in test_receiving()
222 ipv4_hdr = (struct net_ipv4_hdr *) in test_receiving()
956 struct net_ipv4_hdr *ipv4 = NET_IPV4_HDR(pkt); in recv_cb_offload_disabled()
982 struct net_ipv4_hdr *ipv4 = NET_IPV4_HDR(pkt); in recv_cb_offload_enabled()
/Zephyr-latest/tests/net/virtual/src/
Dmain.c830 header_len = sizeof(struct net_ipv4_hdr); in ZTEST()
973 inner_len += sizeof(struct net_ipv4_hdr); in test_virtual_recv_data_from_tunnel()
982 sizeof(struct net_ipv4_hdr), 0); in test_virtual_recv_data_from_tunnel()
1002 sizeof(struct net_ipv4_hdr), in test_virtual_recv_data_from_tunnel()
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_pkt.rst318 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr);
319 struct net_ipv4_hdr *ipv4_hdr;
321 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access);
323 It would be the same for struct net_ipv4_hdr. For a UDP header it
/Zephyr-latest/tests/boards/espressif/wifi/src/
Dmain.c122 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmp_event()
/Zephyr-latest/tests/net/icmpv4/src/
Dmain.c244 opts_len = vhl - sizeof(struct net_ipv4_hdr); in verify_echo_reply_with_opts()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_ecm.c233 ip_len = ntohs(((struct net_ipv4_hdr *)ip_data)->len); in ecm_eth_size()
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c541 NET_PKT_DATA_ACCESS_DEFINE(ip_access, struct net_ipv4_hdr); in ZTEST()
542 struct net_ipv4_hdr *ip_hdr; in ZTEST()
544 ip_hdr = (struct net_ipv4_hdr *) in ZTEST()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_inet.c713 struct net_ipv4_hdr); in sock_get_pkt_src_addr()
715 struct net_ipv4_hdr *ipv4_hdr; in sock_get_pkt_src_addr()
722 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data( in sock_get_pkt_src_addr()
980 struct net_ipv4_hdr); in add_pktinfo()
982 struct net_ipv4_hdr *ipv4_hdr; in add_pktinfo()
984 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data( in add_pktinfo()

12