/Zephyr-latest/subsys/net/ip/ |
D | ipv6.h | 143 static inline bool net_ipv6_is_nexthdr_upper_layer(uint8_t nexthdr) in net_ipv6_is_nexthdr_upper_layer() argument 145 return (nexthdr == IPPROTO_ICMPV6 || nexthdr == IPPROTO_UDP || in net_ipv6_is_nexthdr_upper_layer() 146 nexthdr == IPPROTO_TCP || in net_ipv6_is_nexthdr_upper_layer() 148 ((nexthdr == IPPROTO_IPV6) || (nexthdr == IPPROTO_IPIP)))); in net_ipv6_is_nexthdr_upper_layer() 493 uint8_t nexthdr); 498 uint8_t nexthdr) in net_ipv6_handle_fragment_hdr() argument 502 ARG_UNUSED(nexthdr); in net_ipv6_handle_fragment_hdr()
|
D | ipv6_fragment.c | 55 uint8_t nexthdr; in net_ipv6_find_last_ext_hdr() local 70 nexthdr = hdr->nexthdr; in net_ipv6_find_last_ext_hdr() 73 *next_hdr_off = offsetof(struct net_ipv6_hdr, nexthdr); in net_ipv6_find_last_ext_hdr() 76 while (!net_ipv6_is_nexthdr_upper_layer(nexthdr)) { in net_ipv6_find_last_ext_hdr() 81 switch (nexthdr) { in net_ipv6_find_last_ext_hdr() 115 nexthdr = next_nexthdr; in net_ipv6_find_last_ext_hdr() 308 next_hdr = ipv6.frag_hdr->nexthdr; in reassemble_packet() 462 uint8_t nexthdr) in net_ipv6_handle_fragment_hdr() argument 634 frag_hdr->nexthdr = next_hdr; in send_ipv6_fragment()
|
D | ipv6.c | 81 ipv6_hdr->nexthdr = 0U; in net_ipv6_create() 133 ipv6_hdr->nexthdr = net_pkt_ipv6_next_hdr(pkt); in net_ipv6_finalize() 135 ipv6_hdr->nexthdr = next_header_proto; in net_ipv6_finalize() 484 uint8_t current_hdr, nexthdr, prev_hdr_offset; in net_ipv6_input() local 575 net_pkt_set_ipv6_next_hdr(pkt, hdr->nexthdr); in net_ipv6_input() 661 current_hdr = hdr->nexthdr; in net_ipv6_input() 664 prev_hdr_offset = (uint8_t *)&hdr->nexthdr - (uint8_t *)hdr; in net_ipv6_input() 686 if (net_pkt_read_u8(pkt, &nexthdr)) { in net_ipv6_input() 692 ext_bit = extension_to_bitmap(nexthdr, ext_bitmap); in net_ipv6_input() 702 switch (nexthdr) { in net_ipv6_input() [all …]
|
D | icmpv6.c | 208 if (ip_hdr->nexthdr == IPPROTO_ICMPV6) { in net_icmpv6_send_error() 226 if (ip_hdr->nexthdr == IPPROTO_UDP) { in net_icmpv6_send_error() 229 } else if (ip_hdr->nexthdr == IPPROTO_TCP) { in net_icmpv6_send_error()
|
D | 6lo.c | 354 if (ipv6->nexthdr == IPPROTO_UDP) { in compress_nh() 357 inline_ptr -= sizeof(ipv6->nexthdr); in compress_nh() 358 *inline_ptr = ipv6->nexthdr; in compress_nh() 746 if (ipv6->nexthdr == IPPROTO_UDP && in compress_IPHC_header() 755 if (ipv6->nexthdr == IPPROTO_UDP) { in compress_IPHC_header() 1434 ipv6->nexthdr = *cursor; in uncompress_IPHC_header() 1496 ipv6->nexthdr = IPPROTO_UDP; in uncompress_IPHC_header() 1512 if (ipv6->nexthdr == IPPROTO_UDP && udp) { in uncompress_IPHC_header()
|
/Zephyr-latest/tests/net/6lo/src/ |
D | main.c | 557 .ipv6.nexthdr = IPPROTO_UDP, 579 .ipv6.nexthdr = IPPROTO_UDP, 601 .ipv6.nexthdr = IPPROTO_UDP, 623 .ipv6.nexthdr = IPPROTO_UDP, 645 .ipv6.nexthdr = IPPROTO_UDP, 667 .ipv6.nexthdr = IPPROTO_UDP, 689 .ipv6.nexthdr = 0, 706 .ipv6.nexthdr = IPPROTO_ICMPV6, 726 .ipv6.nexthdr = IPPROTO_UDP, 746 .ipv6.nexthdr = IPPROTO_UDP, [all …]
|
/Zephyr-latest/tests/net/ieee802154/6lo_fragment/src/ |
D | main.c | 310 .ipv6.nexthdr = IPPROTO_UDP, 327 .ipv6.nexthdr = IPPROTO_UDP, 344 .ipv6.nexthdr = IPPROTO_UDP, 361 .ipv6.nexthdr = IPPROTO_UDP, 378 .ipv6.nexthdr = IPPROTO_UDP, 395 .ipv6.nexthdr = IPPROTO_UDP, 412 .ipv6.nexthdr = IPPROTO_UDP, 429 .ipv6.nexthdr = IPPROTO_UDP, 447 .ipv6.nexthdr = IPPROTO_UDP,
|
/Zephyr-latest/subsys/net/l2/virtual/ipip/ |
D | ipip.c | 138 uint8_t nexthdr; in interface_send() local 147 nexthdr = IPPROTO_IPIP; in interface_send() 150 nexthdr = IPPROTO_IPV6; in interface_send() 189 ret = net_ipv6_finalize(pkt, nexthdr); in interface_send() 242 ret = net_ipv4_finalize(pkt, nexthdr); in interface_send()
|
/Zephyr-latest/tests/net/ipv6_fragment/src/ |
D | main.c | 1511 zassert_equal(hdr->nexthdr, ipv6_udp[offsetof(struct net_ipv6_hdr, nexthdr)], in udp_data_received() 1716 zassert_equal(NET_IPV6_HDR(pkt)->nexthdr, 0x11, "Invalid next header"); in ZTEST() 1751 zassert_equal(NET_IPV6_HDR(pkt)->nexthdr, 0, "Invalid next header"); in ZTEST() 1915 zassert_equal(NET_IPV6_HDR(pkt)->nexthdr, 0, "Invalid next header"); in ZTEST() 2250 zassert_equal(hdr->nexthdr, IPPROTO_ICMPV6, "IPv6 header nexthdr mismatch"); in handle_ipv6_echo_reply() 2339 net_pkt_set_ipv6_hdr_prev(pkt1, offsetof(struct net_ipv6_hdr, nexthdr)); in ZTEST() 2379 net_pkt_set_ipv6_hdr_prev(pkt2, offsetof(struct net_ipv6_hdr, nexthdr)); in ZTEST()
|
/Zephyr-latest/samples/net/promiscuous_mode/src/ |
D | main.c | 79 next_hdr = NET_IPV6_HDR(pkt)->nexthdr; in print_info()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_ip.h | 554 uint8_t nexthdr; member 561 uint8_t nexthdr; member
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_6lo_fragment.c | 245 if (ipv6->nexthdr == IPPROTO_UDP) { in update_protocol_header_lengths()
|
/Zephyr-latest/subsys/net/l2/openthread/ |
D | openthread.c | 365 return hdr->nexthdr == NET_IPV6_NEXTHDR_FRAG ? true : false; in is_ipv6_frag()
|
/Zephyr-latest/tests/lib/net_buf/buf/src/ |
D | main.c | 52 uint8_t nexthdr; member
|
/Zephyr-latest/tests/net/tcp/src/ |
D | main.c | 400 return NET_IPV6_HDR(pkt)->nexthdr == IPPROTO_ICMPV6; in is_icmp_pkt()
|