Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/subsys/net/ip/
Dipv4.c40 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_create_full()
41 struct net_ipv4_hdr *ipv4_hdr; in net_ipv4_create_full()
43 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in net_ipv4_create_full()
67 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in net_ipv4_create_full()
82 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_finalize()
83 struct net_ipv4_hdr *ipv4_hdr; in net_ipv4_finalize()
87 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in net_ipv4_finalize()
138 if (net_pkt_skip(pkt, sizeof(struct net_ipv4_hdr))) { in net_ipv4_parse_hdr_options()
215 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_ipv4_input()
221 struct net_ipv4_hdr *hdr; in net_ipv4_input()
[all …]
Dicmpv4.h37 struct net_ipv4_hdr *ip_hdr,
103 struct net_ipv4_hdr *ip_hdr);
Dicmpv4.c411 struct net_ipv4_hdr *ip_hdr, in icmpv4_handle_echo_request()
575 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in net_icmpv4_send_error()
577 struct net_ipv4_hdr *ip_hdr; in net_icmpv4_send_error()
583 ip_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(orig, &ipv4_access); in net_icmpv4_send_error()
613 copy_len = sizeof(struct net_ipv4_hdr) + in net_icmpv4_send_error()
616 copy_len = sizeof(struct net_ipv4_hdr) + in net_icmpv4_send_error()
675 struct net_ipv4_hdr *ip_hdr) in net_icmpv4_input()
Dtp_priv.h34 #define ip_get(_x) ((struct net_ipv4_hdr *) net_pkt_ip_data((_x)))
Dnet_private.h175 struct net_ipv4_hdr *ip_hdr);
Digmp.c183 struct net_ipv4_hdr *ip_hdr) in net_ipv4_igmp_input()
Dnet_shell.c3984 struct net_ipv4_hdr *ip_hdr,
3999 struct net_ipv4_hdr *ip_hdr, in handle_ipv4_echo_reply()
Dtcp2.c152 struct net_ipv4_hdr *ip = NET_IPV4_HDR(pkt); in tcp_endpoint_set()
/Zephyr-Core-2.7.6/subsys/net/l2/virtual/ipip/
Dipip.c116 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv4_access, struct net_ipv4_hdr); in ipv4_get_tos()
117 struct net_ipv4_hdr *ipv4_hdr; in ipv4_get_tos()
119 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &ipv4_access); in ipv4_get_tos()
191 sizeof(struct net_ipv4_hdr), in interface_send()
231 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in interface_send()
363 NET_PKT_DATA_ACCESS_DEFINE(access, struct net_ipv4_hdr); in interface_input()
364 struct net_ipv4_hdr *hdr; in interface_input()
366 hdr = (struct net_ipv4_hdr *)net_pkt_get_data(pkt, &access); in interface_input()
/Zephyr-Core-2.7.6/tests/net/arp/src/
Dmain.c335 struct net_ipv4_hdr *ipv4; in test_arp()
363 pkt = net_pkt_alloc_with_buffer(iface, sizeof(struct net_ipv4_hdr) + in test_arp()
370 ipv4 = (struct net_ipv4_hdr *)net_buf_add(pkt->buffer, in test_arp()
371 sizeof(struct net_ipv4_hdr)); in test_arp()
/Zephyr-Core-2.7.6/tests/net/icmpv4/src/
Dmain.c118 struct net_ipv4_hdr *ip_hdr, in handle_reply_msg()
242 opts_len = vhl - sizeof(struct net_ipv4_hdr); in verify_echo_reply_with_opts()
/Zephyr-Core-2.7.6/samples/net/sockets/echo_server/src/
Dtunnel.c118 mtu = NET_ETH_MTU - sizeof(struct net_ipv4_hdr); in init_tunnel()
/Zephyr-Core-2.7.6/subsys/net/lib/capture/
Dcapture.c332 mtu = orig_mtu - sizeof(struct net_ipv4_hdr) - in net_capture_setup()
597 len = sizeof(struct net_ipv4_hdr); in capture_send()
658 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in capture_send()
/Zephyr-Core-2.7.6/tests/net/virtual/src/
Dmain.c739 header_len = sizeof(struct net_ipv4_hdr); in test_virtual_send_data_to_tunnel()
885 inner_len += sizeof(struct net_ipv4_hdr); in test_virtual_recv_data_from_tunnel()
894 sizeof(struct net_ipv4_hdr), 0); in test_virtual_recv_data_from_tunnel()
914 sizeof(struct net_ipv4_hdr), in test_virtual_recv_data_from_tunnel()
/Zephyr-Core-2.7.6/samples/net/promiscuous_mode/src/
Dmain.c88 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv4_hdr)); in print_info()
/Zephyr-Core-2.7.6/tests/net/net_pkt/src/
Dmain.c511 NET_PKT_DATA_ACCESS_DEFINE(ip_access, struct net_ipv4_hdr); in test_net_pkt_easier_rw_usage()
512 struct net_ipv4_hdr *ip_hdr; in test_net_pkt_easier_rw_usage()
514 ip_hdr = (struct net_ipv4_hdr *) in test_net_pkt_easier_rw_usage()
/Zephyr-Core-2.7.6/doc/reference/networking/
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_acess);
323 It would be the same for struct net_ipv4_hdr. For a UDP header it
/Zephyr-Core-2.7.6/subsys/usb/class/netusb/
Dfunction_ecm.c238 ip_len = ntohs(((struct net_ipv4_hdr *)ip_data)->len); in ecm_eth_size()
/Zephyr-Core-2.7.6/include/net/
Dnet_ip.h472 struct net_ipv4_hdr { struct
542 struct net_ipv4_hdr *ipv4;
Dnet_pkt.h1196 #define NET_IPV4_HDR(pkt) ((struct net_ipv4_hdr *)net_pkt_ip_data(pkt))
/Zephyr-Core-2.7.6/samples/net/virtual/src/
Dmain.c347 params.mtu = NET_ETH_MTU - sizeof(struct net_ipv4_hdr); in setup_iface()
/Zephyr-Core-2.7.6/tests/net/checksum_offload/src/
Dmain.c679 struct net_ipv4_hdr *ipv4 = NET_IPV4_HDR(pkt); in recv_cb_offload_disabled()
701 struct net_ipv4_hdr *ipv4 = NET_IPV4_HDR(pkt); in recv_cb_offload_enabled()
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/
Dsockets.c882 struct net_ipv4_hdr); in sock_get_pkt_src_addr()
884 struct net_ipv4_hdr *ipv4_hdr; in sock_get_pkt_src_addr()
891 ipv4_hdr = (struct net_ipv4_hdr *)net_pkt_get_data( in sock_get_pkt_src_addr()
/Zephyr-Core-2.7.6/drivers/modem/
Dwncm14a2a.c501 hdr_len = sizeof(struct net_ipv4_hdr); in pkt_setup_ip_data()
Dhl7800.c1450 hdr_len = sizeof(struct net_ipv4_hdr); in pkt_setup_ip_data()