Home
last modified time | relevance | path

Searched refs:NET_IPV6_HDR (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dnet_core.c137 uint8_t vtc_vhl = NET_IPV6_HDR(pkt)->vtc & 0xf0; in process_data()
145 NET_DBG("Unknown IP family packet (0x%x)", NET_IPV6_HDR(pkt)->vtc & 0xf0); in process_data()
220 if (NET_IPV6_HDR(pkt)->hop_limit == 0) { in check_ip()
238 if (net_ipv6_addr_cmp((struct in6_addr *)NET_IPV6_HDR(pkt)->dst, in check_ip()
249 (struct in6_addr *)NET_IPV6_HDR(pkt)->dst) || in check_ip()
251 (struct in6_addr *)NET_IPV6_HDR(pkt)->dst)) && in check_ip()
258 net_ipv6_addr_copy_raw((uint8_t *)&addr, NET_IPV6_HDR(pkt)->src); in check_ip()
259 net_ipv6_addr_copy_raw(NET_IPV6_HDR(pkt)->src, in check_ip()
260 NET_IPV6_HDR(pkt)->dst); in check_ip()
261 net_ipv6_addr_copy_raw(NET_IPV6_HDR(pkt)->dst, (uint8_t *)&addr); in check_ip()
[all …]
Dipv6_nbr.c405 net_sprint_ipv6_addr(&NET_IPV6_HDR(data->pending)->dst)); in ipv6_ns_reply_timeout()
2188 (struct in6_addr *)NET_IPV6_HDR(pkt)->src, in handle_ra_neighbor()
2470 (struct in6_addr *)NET_IPV6_HDR(pkt)->src, in handle_ra_route_info()
2618 nbr = net_ipv6_nbr_add(net_pkt_iface(pkt), (struct in6_addr *)NET_IPV6_HDR(pkt)->src, NULL, in handle_ra_input()
2747 net_sprint_ipv6_addr(&NET_IPV6_HDR(net_ipv6_nbr_data(nbr)->pending)->dst)); in handle_ra_input()
Dipv6.c578 net_pkt_set_ipv6_hop_limit(pkt, NET_IPV6_HDR(pkt)->hop_limit); in net_ipv6_input()
Dtcp.c213 struct net_ipv6_hdr *ip = NET_IPV6_HDR(pkt); in tcp_endpoint_set()
1452 (struct in6_addr *)NET_IPV6_HDR(pkt)->dst) || in is_destination_local()
1454 (struct in6_addr *)NET_IPV6_HDR(pkt)->dst)) { in is_destination_local()
1488 (struct in6_addr *)NET_IPV6_HDR(pkt)->dst, in net_tcp_reply_rst()
1489 (struct in6_addr *)NET_IPV6_HDR(pkt)->src); in net_tcp_reply_rst()
D6lo.c736 struct net_ipv6_hdr *ipv6 = NET_IPV6_HDR(pkt); in compress_IPHC_header()
Dnet_context.c2568 char type = (NET_IPV6_HDR(pkt)->vtc & 0xf0); in context_sendto()
/Zephyr-latest/drivers/net/
Dloopback.c142 net_ipv6_addr_copy_raw(NET_IPV6_HDR(cloned)->src, in loopback_send()
143 NET_IPV6_HDR(pkt)->dst); in loopback_send()
144 net_ipv6_addr_copy_raw(NET_IPV6_HDR(cloned)->dst, in loopback_send()
145 NET_IPV6_HDR(pkt)->src); in loopback_send()
/Zephyr-latest/samples/net/promiscuous_mode/src/
Dmain.c73 switch (NET_IPV6_HDR(pkt)->vtc & 0xf0) { in print_info()
77 dst = &NET_IPV6_HDR(pkt)->dst; in print_info()
78 src = &NET_IPV6_HDR(pkt)->src; in print_info()
79 next_hdr = NET_IPV6_HDR(pkt)->nexthdr; in print_info()
/Zephyr-latest/tests/net/npf/src/
Dmain.c449 memcpy((struct in6_addr *)NET_IPV6_HDR(pkt_v6)->src, in ZTEST()
455 memcpy((struct in6_addr *)NET_IPV6_HDR(pkt_v6)->src, in ZTEST()
471 memcpy((struct in6_addr *)NET_IPV6_HDR(pkt_v6)->src, in ZTEST()
/Zephyr-latest/tests/net/ipv6_fragment/src/
Dmain.c1489 const struct net_ipv6_hdr *hdr = NET_IPV6_HDR(pkt); 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()
2012 NET_IPV6_HDR(pkt)->len = htons(total_len); in ZTEST()
2172 NET_IPV6_HDR(pkt)->len = htons(total_len); in ZTEST()
2226 const struct net_ipv6_hdr *hdr = NET_IPV6_HDR(pkt); in handle_ipv6_echo_reply()
/Zephyr-latest/tests/net/traffic_class/src/
Dmain.c179 net_ipv6_addr_copy_raw((uint8_t *)&addr, NET_IPV6_HDR(pkt)->src); in eth_tx()
180 net_ipv6_addr_copy_raw(NET_IPV6_HDR(pkt)->src, in eth_tx()
181 NET_IPV6_HDR(pkt)->dst); in eth_tx()
182 net_ipv6_addr_copy_raw(NET_IPV6_HDR(pkt)->dst, (uint8_t *)&addr); in eth_tx()
/Zephyr-latest/tests/net/context/src/
Dmain.c1027 net_ipv6_addr_copy_raw((uint8_t *)&addr, NET_IPV6_HDR(pkt)->src); in tester_send()
1028 net_ipv6_addr_copy_raw(NET_IPV6_HDR(pkt)->src, in tester_send()
1029 NET_IPV6_HDR(pkt)->dst); in tester_send()
1030 net_ipv6_addr_copy_raw(NET_IPV6_HDR(pkt)->dst, (uint8_t *)&addr); in tester_send()
/Zephyr-latest/subsys/net/pkt_filter/
Dbase.c286 struct in6_addr *addr = (struct in6_addr *)NET_IPV6_HDR(pkt)->src; in npf_ip_src_addr_match()
/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet.c135 len = ntohs(NET_IPV6_HDR(pkt)->len) + NET_IPV6H_LEN; in ethernet_update_length()
505 net_ipv6_is_addr_mcast((struct in6_addr *)NET_IPV6_HDR(pkt)->dst)) { in ethernet_fill_in_dst_on_ipv6_mcast()
509 NET_IPV6_HDR(pkt)->dst + 12, in ethernet_fill_in_dst_on_ipv6_mcast()
/Zephyr-latest/tests/net/lib/mdns_responder/src/
Dmain.c150 hdr = NET_IPV6_HDR(pkt); in sender_iface()
/Zephyr-latest/subsys/net/l2/openthread/
Dopenthread.c46 #define PKT_IS_IPv4(_p) ((NET_IPV6_HDR(_p)->vtc & 0xf0) == 0x40)
/Zephyr-latest/tests/net/route_mcast/src/
Dmain.c211 struct net_ipv6_hdr *ipv6_hdr = NET_IPV6_HDR(pkt); in check_packet_addresses()
/Zephyr-latest/include/zephyr/net/
Dnet_pkt.h1407 #define NET_IPV6_HDR(pkt) ((struct net_ipv6_hdr *)net_pkt_ip_data(pkt)) macro
1414 (struct in6_addr *)NET_IPV6_HDR(pkt)->src); in net_pkt_set_src_ipv6_addr()
/Zephyr-latest/modules/openthread/platform/
Dradio.c46 #define PKT_IS_IPv6(_p) ((NET_IPV6_HDR(_p)->vtc & 0xf0) == 0x60)
/Zephyr-latest/tests/net/tcp/src/
Dmain.c400 return NET_IPV6_HDR(pkt)->nexthdr == IPPROTO_ICMPV6; in is_icmp_pkt()