/Zephyr-latest/tests/net/ipv4_fragment/src/ |
D | main.c | 207 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/ |
D | ipv4.c | 43 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 …]
|
D | ipv4_fragment.c | 142 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 …]
|
D | icmpv4.c | 422 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()
|
D | icmpv4.h | 53 struct net_ipv4_hdr *ip_hdr);
|
D | tp_priv.h | 34 #define ip_get(_x) ((struct net_ipv4_hdr *) net_pkt_ip_data((_x)))
|
D | ipv4.h | 386 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()
|
D | net_private.h | 68 struct net_ipv4_hdr *ipv4_hdr, 309 struct net_ipv4_hdr *ip_hdr);
|
/Zephyr-latest/subsys/net/l2/virtual/ipip/ |
D | ipip.c | 123 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/ |
D | main.c | 74 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/ |
D | main.c | 179 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/ |
D | icmp.h | 109 struct net_ipv4_hdr *ipv4;
|
/Zephyr-latest/tests/net/arp/src/ |
D | main.c | 335 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/ |
D | tunnel.c | 124 mtu = NET_ETH_MTU - sizeof(struct net_ipv4_hdr); in init_tunnel()
|
/Zephyr-latest/tests/boards/espressif/ethernet/src/ |
D | main.c | 61 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmp_event()
|
/Zephyr-latest/subsys/net/lib/capture/ |
D | capture.c | 330 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/ |
D | main.c | 88 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in print_info()
|
/Zephyr-latest/tests/net/checksum_offload/src/ |
D | main.c | 218 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/ |
D | main.c | 830 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/ |
D | net_pkt.rst | 318 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/ |
D | main.c | 122 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmp_event()
|
/Zephyr-latest/tests/net/icmpv4/src/ |
D | main.c | 244 opts_len = vhl - sizeof(struct net_ipv4_hdr); in verify_echo_reply_with_opts()
|
/Zephyr-latest/subsys/usb/device/class/netusb/ |
D | function_ecm.c | 233 ip_len = ntohs(((struct net_ipv4_hdr *)ip_data)->len); in ecm_eth_size()
|
/Zephyr-latest/tests/net/net_pkt/src/ |
D | main.c | 541 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/ |
D | sockets_inet.c | 713 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()
|