Home
last modified time | relevance | path

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

12

/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c1041 total_len -= sizeof(struct net_ipv6_hdr); in verify_fragment()
1093 total_len -= sizeof(struct net_ipv6_hdr); in verify_fragment()
1488 const struct net_ipv6_hdr *hdr = NET_IPV6_HDR(pkt); in udp_data_received()
1503 zassert_equal(hdr->vtc, ipv6_udp[offsetof(struct net_ipv6_hdr, vtc)], in udp_data_received()
1505 zassert_equal(hdr->tcflow, ipv6_udp[offsetof(struct net_ipv6_hdr, tcflow)], in udp_data_received()
1507 zassert_mem_equal(&hdr->flow, &ipv6_udp[offsetof(struct net_ipv6_hdr, flow)], in udp_data_received()
1510 zassert_equal(hdr->nexthdr, ipv6_udp[offsetof(struct net_ipv6_hdr, nexthdr)], in udp_data_received()
1512 zassert_equal(hdr->hop_limit, ipv6_udp[offsetof(struct net_ipv6_hdr, hop_limit)], in udp_data_received()
1514 zassert_mem_equal(hdr->src, &ipv6_udp[offsetof(struct net_ipv6_hdr, dst)], in udp_data_received()
1516 zassert_mem_equal(hdr->dst, &ipv6_udp[offsetof(struct net_ipv6_hdr, src)], in udp_data_received()
[all …]
/Zephyr-latest/subsys/net/ip/
Dipv6.c64 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv6_access, struct net_ipv6_hdr); in net_ipv6_create()
65 struct net_ipv6_hdr *ipv6_hdr; in net_ipv6_create()
68 ipv6_hdr = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &ipv6_access); in net_ipv6_create()
112 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv6_hdr)); in net_ipv6_create()
120 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv6_access, struct net_ipv6_hdr); in net_ipv6_finalize()
121 struct net_ipv6_hdr *ipv6_hdr; in net_ipv6_finalize()
125 ipv6_hdr = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &ipv6_access); in net_ipv6_finalize()
131 sizeof(struct net_ipv6_hdr)); in net_ipv6_finalize()
162 struct net_ipv6_hdr *hdr, in ipv6_drop_on_unknown_option()
205 struct net_ipv6_hdr *hdr, in ipv6_handle_ext_hdr_options()
[all …]
Dicmpv6.c106 struct net_ipv6_hdr *ip_hdr = hdr->ipv6; in icmpv6_handle_echo_request()
193 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv6_access, struct net_ipv6_hdr); in net_icmpv6_send_error()
195 struct net_ipv6_hdr *ip_hdr; in net_icmpv6_send_error()
203 ip_hdr = (struct net_ipv6_hdr *)net_pkt_get_data(orig, &ipv6_access); in net_icmpv6_send_error()
227 copy_len = sizeof(struct net_ipv6_hdr) + in net_icmpv6_send_error()
230 copy_len = sizeof(struct net_ipv6_hdr) + in net_icmpv6_send_error()
339 struct net_ipv6_hdr *ip_hdr) in net_icmpv6_input()
D6lo.c268 static uint8_t *compress_tfl(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_tfl()
323 static uint8_t *compress_hoplimit(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_hoplimit()
350 static uint8_t *compress_nh(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_nh()
365 static uint8_t *compress_sa(struct net_ipv6_hdr *ipv6, struct net_pkt *pkt, in compress_sa()
398 static uint8_t *set_sa_inline(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in set_sa_inline()
408 static uint8_t *compress_sa_ctx(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_sa_ctx()
448 static uint8_t *compress_da_mcast(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_da_mcast()
506 static uint8_t *compress_da(struct net_ipv6_hdr *ipv6, struct net_pkt *pkt, in compress_da()
540 static uint8_t *set_da_inline(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in set_da_inline()
550 static uint8_t *compress_da_ctx(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_da_ctx()
[all …]
Dipv6_fragment.c52 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv6_access, struct net_ipv6_hdr); in net_ipv6_find_last_ext_hdr()
53 struct net_ipv6_hdr *hdr; in net_ipv6_find_last_ext_hdr()
63 hdr = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &ipv6_access); in net_ipv6_find_last_ext_hdr()
73 *next_hdr_off = offsetof(struct net_ipv6_hdr, nexthdr); in net_ipv6_find_last_ext_hdr()
74 *last_hdr_off = sizeof(struct net_ipv6_hdr); in net_ipv6_find_last_ext_hdr()
232 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv6_access, struct net_ipv6_hdr); in reassemble_packet()
235 struct net_ipv6_hdr *hdr; in reassemble_packet()
323 ipv6.hdr = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &ipv6_access); in reassemble_packet()
336 len = net_pkt_get_len(pkt) - sizeof(struct net_ipv6_hdr); in reassemble_packet()
461 struct net_ipv6_hdr *hdr, in net_ipv6_handle_fragment_hdr()
Droute.h227 struct net_ipv6_hdr *hdr);
Dipv6.h492 struct net_ipv6_hdr *hdr,
497 struct net_ipv6_hdr *hdr, in net_ipv6_handle_fragment_hdr()
Dipv6_nbr.c781 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv6_access, struct net_ipv6_hdr); in net_ipv6_prepare_for_send()
784 struct net_ipv6_hdr *ip_hdr; in net_ipv6_prepare_for_send()
790 ip_hdr = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &ipv6_access); in net_ipv6_prepare_for_send()
1205 struct net_ipv6_hdr *ip_hdr = hdr->ipv6; in handle_ns_input()
1234 if (((length < (sizeof(struct net_ipv6_hdr) + in handle_ns_input()
1246 length -= (sizeof(struct net_ipv6_hdr) + sizeof(struct net_icmp_hdr)); in handle_ns_input()
1827 struct net_ipv6_hdr *ip_hdr = hdr->ipv6; in handle_na_input()
1849 if (((length < (sizeof(struct net_ipv6_hdr) + in handle_na_input()
1864 length -= (sizeof(struct net_ipv6_hdr) + sizeof(struct net_icmp_hdr)); in handle_na_input()
2526 struct net_ipv6_hdr *ip_hdr = hdr->ipv6; in handle_ra_input()
[all …]
Dicmpv6.h191 struct net_ipv6_hdr *ip_hdr);
Dipv6_mld.c407 struct net_ipv6_hdr *ip_hdr = hdr->ipv6; in handle_mld_query()
434 pkt_len = sizeof(struct net_ipv6_hdr) + net_pkt_ipv6_ext_len(pkt) + in handle_mld_query()
Dnet_private.h72 struct net_ipv6_hdr *ipv6_hdr,
/Zephyr-latest/tests/net/icmpv6/src/
Dmain.c153 struct net_ipv6_hdr **hdr) in create_pkt()
163 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv6_hdr)); in create_pkt()
170 net_pkt_skip(pkt, sizeof(struct net_ipv6_hdr)); in create_pkt()
181 struct net_ipv6_hdr *hdr; in ZTEST()
/Zephyr-latest/tests/net/icmp/src/
Dmain.c258 struct net_ipv6_hdr **hdr_ipv6, in get_ipv6_reply()
261 struct net_ipv6_hdr *ipv6_hdr = NULL; in get_ipv6_reply()
268 reply = net_pkt_alloc_with_buffer(iface, sizeof(struct net_ipv6_hdr) + in get_ipv6_reply()
317 struct net_ipv6_hdr **hdr_ipv6, in get_ipv6_reply()
335 struct net_ipv6_hdr *ipv6_hdr; in offload_ping_handler()
442 struct net_ipv6_hdr *ip_hdr = hdr->ipv6; in icmp_handler()
/Zephyr-latest/subsys/net/l2/virtual/ipip/
Dipip.c158 sizeof(struct net_ipv6_hdr), in interface_send()
185 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv6_hdr)); in interface_send()
341 NET_PKT_DATA_ACCESS_DEFINE(access, struct net_ipv6_hdr); in interface_recv()
342 struct net_ipv6_hdr *hdr; in interface_recv()
347 hdr = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &access); in interface_recv()
/Zephyr-latest/include/zephyr/net/
Dicmp.h112 struct net_ipv6_hdr *ipv6;
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_6lo_fragment.c231 NET_PKT_DATA_ACCESS_DEFINE(ipv6_access, struct net_ipv6_hdr); in update_protocol_header_lengths()
232 struct net_ipv6_hdr *ipv6; in update_protocol_header_lengths()
234 ipv6 = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &ipv6_access); in update_protocol_header_lengths()
/Zephyr-latest/subsys/net/l2/openthread/
Dopenthread.c358 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv6_access, struct net_ipv6_hdr); in is_ipv6_frag()
359 struct net_ipv6_hdr *hdr; in is_ipv6_frag()
361 hdr = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &ipv6_access); in is_ipv6_frag()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dtunnel.c113 mtu = NET_ETH_MTU - sizeof(struct net_ipv6_hdr); in init_tunnel()
/Zephyr-latest/subsys/net/lib/capture/
Dcapture.c321 mtu = orig_mtu - sizeof(struct net_ipv6_hdr) - in net_capture_setup()
625 len = sizeof(struct net_ipv6_hdr); in capture_send()
691 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv6_hdr)); in capture_send()
/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c80 net_pkt_set_ip_hdr_len(pkt, sizeof(struct net_ipv6_hdr)); in print_info()
/Zephyr-latest/tests/net/virtual/src/
Dmain.c837 header_len = sizeof(struct net_ipv6_hdr); in ZTEST()
975 inner_len += sizeof(struct net_ipv6_hdr); in test_virtual_recv_data_from_tunnel()
989 sizeof(struct net_ipv6_hdr), 0); in test_virtual_recv_data_from_tunnel()
1013 sizeof(struct net_ipv6_hdr), in test_virtual_recv_data_from_tunnel()
/Zephyr-latest/tests/net/6lo/src/
Dmain.c238 struct net_ipv6_hdr ipv6;
285 NET_PKT_DATA_ACCESS_CONTIGUOUS_DEFINE(ipv6_access, struct net_ipv6_hdr); in compare_ipv6_hdr()
286 struct net_ipv6_hdr *ipv6_hdr = net_pkt_get_data(pkt, &ipv6_access); in compare_ipv6_hdr()
297 sizeof(struct net_ipv6_hdr)); in compare_ipv6_hdr()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_ecm.c236 ip_len = ntohs(((struct net_ipv6_hdr *)ip_data)->len); in ecm_eth_size()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_inet.c741 struct net_ipv6_hdr); in sock_get_pkt_src_addr()
743 struct net_ipv6_hdr *ipv6_hdr; in sock_get_pkt_src_addr()
750 ipv6_hdr = (struct net_ipv6_hdr *)net_pkt_get_data( in sock_get_pkt_src_addr()
1011 struct net_ipv6_hdr); in add_pktinfo()
1013 struct net_ipv6_hdr *ipv6_hdr; in add_pktinfo()
1015 ipv6_hdr = (struct net_ipv6_hdr *)net_pkt_get_data( in add_pktinfo()
/Zephyr-latest/samples/net/virtual/src/
Dmain.c277 params.mtu = NET_ETH_MTU - sizeof(struct net_ipv6_hdr); in setup_iface()

12