Home
last modified time | relevance | path

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

12345

/Zephyr-Core-3.7.0/subsys/net/ip/
Dipv6.h91 struct in6_addr addr;
132 const struct in6_addr *src, const struct in6_addr *dst,
133 const struct in6_addr *tgt, bool is_my_address);
138 int net_ipv6_send_na(struct net_if *iface, const struct in6_addr *src,
139 const struct in6_addr *dst, const struct in6_addr *tgt,
162 const struct in6_addr *src,
163 const struct in6_addr *dst);
166 const struct in6_addr *src, in net_ipv6_create()
167 const struct in6_addr *dst) in net_ipv6_create()
210 int net_ipv6_mld_join(struct net_if *iface, const struct in6_addr *addr);
[all …]
Droute.h62 struct in6_addr addr;
90 struct in6_addr *dst);
93 struct in6_addr *dst) in net_route_lookup()
115 struct in6_addr *addr,
117 struct in6_addr *nexthop,
139 struct in6_addr *nexthop);
161 struct in6_addr *net_route_get_nexthop(struct net_route_entry *entry);
198 struct in6_addr group;
240 struct in6_addr *skip,
253 struct in6_addr *group,
[all …]
Dipv6.c38 BUILD_ASSERT(sizeof(struct in6_addr) == NET_IPV6_ADDR_SIZE);
54 const struct in6_addr *src, in net_ipv6_create()
55 const struct in6_addr *dst) in net_ipv6_create()
180 if (net_ipv6_is_addr_mcast((struct in6_addr *)hdr->dst)) { in ipv6_drop_on_unknown_option()
279 struct in6_addr *addr, in add_route()
301 struct in6_addr *src, in ipv6_no_route_info()
302 struct in6_addr *dst) in ipv6_no_route_info()
314 struct in6_addr *nexthop; in ipv6_route_packet()
319 found = net_route_get_info(NULL, (struct in6_addr *)hdr->dst, in ipv6_route_packet()
323 (struct in6_addr *)hdr->dst, in ipv6_route_packet()
[all …]
Dipv6_pe.c31 static const struct in6_addr reserved_anycast_subnet = { { {
83 static struct in6_addr ipv6_pe_filter[CONFIG_NET_IPV6_PE_FILTER_PREFIX_COUNT];
91 static bool ipv6_pe_use_this_prefix(const struct in6_addr *prefix) in ipv6_pe_use_this_prefix()
137 const struct in6_addr *prefix) in ipv6_pe_prefix_already_exists()
148 (uint8_t *)&ipv6->unicast[i].address.in6_addr, in ipv6_pe_prefix_already_exists()
159 const struct in6_addr *prefix) in ipv6_pe_prefix_remove()
168 (uint8_t *)&ipv6->unicast[i].address.in6_addr, in ipv6_pe_prefix_remove()
171 &ipv6->unicast[i].address.in6_addr); in ipv6_pe_prefix_remove()
180 const struct in6_addr *prefix, in ipv6_pe_prefix_update_lifetimes()
191 (uint8_t *)&ipv6->unicast[i].address.in6_addr, in ipv6_pe_prefix_update_lifetimes()
[all …]
Dipv6_nbr.c270 const struct in6_addr *addr) in nbr_lookup()
316 bool net_ipv6_nbr_rm(struct net_if *iface, struct in6_addr *addr) in net_ipv6_nbr_rm()
421 const struct in6_addr *addr, bool is_router, in nbr_init()
440 const struct in6_addr *addr, bool is_router, in nbr_new()
460 const struct in6_addr *addr) in dbg_update_neighbor_lladdr()
475 struct in6_addr *addr) in dbg_update_neighbor_lladdr_raw()
565 const struct in6_addr *addr, in add_nbr()
595 const struct in6_addr *addr, in net_ipv6_nbr_add()
679 struct in6_addr *net_ipv6_nbr_lookup_by_index(struct net_if *iface, in net_ipv6_nbr_lookup_by_index()
721 &ifaddr->address.in6_addr, true); in net_ipv6_start_dad()
[all …]
Dipv6_mld.c39 #define MLDv2_LEN (MLDv2_MCAST_RECORD_LEN + sizeof(struct in6_addr))
50 const struct in6_addr *addr, in mld_create()
78 struct in6_addr dst; in mld_create_packet()
167 if (net_ipv6_addr_cmp(&entry->group, &mcasts[i].address.in6_addr)) { in append_mcast_routes()
178 int net_ipv6_mld_send_single(struct net_if *iface, const struct in6_addr *addr, uint8_t mode) in net_ipv6_mld_send_single()
186 sizeof(struct in6_addr), in net_ipv6_mld_send_single()
212 int net_ipv6_mld_join(struct net_if *iface, const struct in6_addr *addr) in net_ipv6_mld_join()
247 &maddr->address.in6_addr, in net_ipv6_mld_join()
248 sizeof(struct in6_addr)); in net_ipv6_mld_join()
253 int net_ipv6_mld_leave(struct net_if *iface, const struct in6_addr *addr) in net_ipv6_mld_leave()
[all …]
Dicmpv6.c107 const struct in6_addr *src; in icmpv6_handle_echo_request()
132 if (net_ipv6_is_addr_mcast((struct in6_addr *)ip_hdr->dst)) { in icmpv6_handle_echo_request()
134 (struct in6_addr *)ip_hdr->src); in icmpv6_handle_echo_request()
141 src = (struct in6_addr *)ip_hdr->dst; in icmpv6_handle_echo_request()
154 if (net_ipv6_create(reply, src, (struct in6_addr *)ip_hdr->src)) { in icmpv6_handle_echo_request()
196 const struct in6_addr *src; in net_icmpv6_send_error()
285 if (net_ipv6_is_addr_mcast((struct in6_addr *)ip_hdr->dst)) { in net_icmpv6_send_error()
287 (struct in6_addr *)ip_hdr->dst); in net_icmpv6_send_error()
289 src = (struct in6_addr *)ip_hdr->dst; in net_icmpv6_send_error()
292 if (net_ipv6_create(pkt, src, (struct in6_addr *)ip_hdr->src) || in net_icmpv6_send_error()
Dnet_if.c702 (struct in6_addr *)addr)) || in iface_router_lookup()
728 &router->address.in6_addr, in iface_router_notify_deletion()
729 sizeof(struct in6_addr)); in iface_router_notify_deletion()
739 sizeof(struct in6_addr)); in iface_router_notify_deletion()
852 sizeof(struct in6_addr)); in iface_router_add()
855 &routers[i].address.in6_addr, in iface_router_add()
856 sizeof(struct in6_addr)); in iface_router_add()
860 net_sprint_ipv6_addr((struct in6_addr *)addr), in iface_router_add()
1105 struct in6_addr addr; in join_mcast_allnodes()
1123 struct in6_addr *my_addr) in join_mcast_solicit_node()
[all …]
Droute.c194 struct in6_addr *addr, in nbr_new()
217 struct in6_addr *addr) in nbr_nexthop_get()
253 struct in6_addr *naddr = net_route_get_nexthop(route); \
271 struct in6_addr *dst) in net_route_lookup()
325 struct in6_addr *addr, in net_route_add()
327 struct in6_addr *nexthop, in net_route_add()
367 struct in6_addr *nexthop_addr; in net_route_add()
405 struct in6_addr *in6_addr_tmp; in net_route_add()
614 int net_route_del_by_nexthop(struct net_if *iface, struct in6_addr *nexthop) in net_route_del_by_nexthop()
662 struct in6_addr *net_route_get_nexthop(struct net_route_entry *route) in net_route_get_nexthop()
[all …]
D6lo.c27 struct in6_addr prefix;
122 static inline bool net_6lo_ll_prefix_padded_with_zeros(struct in6_addr *addr) in net_6lo_ll_prefix_padded_with_zeros()
129 static inline bool net_6lo_addr_16_bit_compressible(struct in6_addr *addr) in net_6lo_addr_16_bit_compressible()
135 static inline bool net_6lo_maddr_8_bit_compressible(struct in6_addr *addr) in net_6lo_maddr_8_bit_compressible()
144 static inline bool net_6lo_maddr_32_bit_compressible(struct in6_addr *addr) in net_6lo_maddr_32_bit_compressible()
151 static inline bool net_6lo_maddr_48_bit_compressible(struct in6_addr *addr) in net_6lo_maddr_48_bit_compressible()
234 get_6lo_context_by_addr(struct net_if *iface, struct in6_addr *addr) in get_6lo_context_by_addr()
371 if (net_ipv6_addr_based_on_ll((struct in6_addr *)ipv6->src, in compress_sa()
380 if (net_6lo_addr_16_bit_compressible((struct in6_addr *)ipv6->src)) { in compress_sa()
419 if (net_ipv6_addr_based_on_ll((struct in6_addr *)ipv6->src, in compress_sa_ctx()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/net/
Dnet_ip.h141 struct in6_addr { struct
183 struct in6_addr sin6_addr; /**< IPv6 address */
211 struct in6_addr *sin6_addr; /**< IPv6 address */
416 struct in6_addr in6_addr; member
422 extern const struct in6_addr in6addr_any;
425 extern const struct in6_addr in6addr_loopback;
655 static inline bool net_ipv6_is_addr_loopback(struct in6_addr *addr) in net_ipv6_is_addr_loopback()
670 static inline bool net_ipv6_is_addr_mcast(const struct in6_addr *addr) in net_ipv6_is_addr_mcast()
678 extern struct net_if_addr *net_if_ipv6_addr_lookup(const struct in6_addr *addr,
688 static inline bool net_ipv6_is_my_addr(struct in6_addr *addr) in net_ipv6_is_my_addr()
[all …]
Dnet_if.h179 struct in6_addr prefix;
417 struct in6_addr prefix;
420 struct in6_addr addr;
1148 void net_if_nbr_reachability_hint(struct net_if *iface, const struct in6_addr *ipv6_addr);
1151 const struct in6_addr *ipv6_addr) in net_if_nbr_reachability_hint()
1393 struct net_if_addr *net_if_ipv6_addr_lookup(const struct in6_addr *addr,
1405 struct in6_addr *addr);
1415 __syscall int net_if_ipv6_addr_lookup_by_index(const struct in6_addr *addr);
1428 struct in6_addr *addr,
1443 struct in6_addr *addr,
[all …]
Dnet_event.h363 struct in6_addr addr;
377 struct in6_addr addr;
392 struct in6_addr nexthop;
394 struct in6_addr addr;
409 struct in6_addr addr;
439 struct in6_addr prefix;
/Zephyr-Core-3.7.0/subsys/net/l2/openthread/
Dopenthread_utils.c120 (struct in6_addr *)(&address->mAddress), in add_ipv6_addr_to_zephyr()
131 (struct in6_addr *)(&address->mAddress), in add_ipv6_addr_to_zephyr()
137 (struct in6_addr *)(&address->mAddress), in add_ipv6_addr_to_zephyr()
143 (struct in6_addr *)(&address->mAddress), in add_ipv6_addr_to_zephyr()
161 const struct in6_addr *addr6) in add_ipv6_addr_to_ot()
180 net_ipv6_addr_cmp(&ipv6->unicast[i].address.in6_addr, in add_ipv6_addr_to_ot()
195 context, ipv6->unicast[i].address.in6_addr.s6_addr); in add_ipv6_addr_to_ot()
225 const struct in6_addr *addr6) in add_ipv6_maddr_to_ot()
251 (struct in6_addr *)(&maddress->mAddress), in add_ipv6_maddr_to_zephyr()
261 (struct in6_addr *) in add_ipv6_maddr_to_zephyr()
[all …]
Dopenthread_utils.h24 const struct in6_addr *addr6);
26 const struct in6_addr *addr6);
/Zephyr-Core-3.7.0/tests/net/route_mcast/src/
Dmain.c46 static struct in6_addr iface_1_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
49 static struct in6_addr iface_2_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
52 static struct in6_addr iface_3_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
56 static struct in6_addr ll_addr_1 = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
60 static struct in6_addr ll_addr_2 = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
64 static struct in6_addr ll_addr_3 = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
68 static struct in6_addr in6addr_mcast = { { { 0xff, 0x02, 0, 0, 0, 0, 0, 0,
86 static struct in6_addr mcast_prefix_iflocal = { { {
91 static struct in6_addr mcast_prefix_llocal = { { {
96 static struct in6_addr mcast_prefix_admin = { { {
[all …]
/Zephyr-Core-3.7.0/tests/net/ipv6/src/
Dmain.c48 static struct in6_addr my_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
50 static struct in6_addr peer_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
52 static struct in6_addr multicast_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
54 static struct in6_addr all_nodes_mcast = { { { 0xff, 0x02, 0, 0, 0, 0, 0, 0,
58 static struct in6_addr test_router_addr = { { {
62 static struct in6_addr test_ra_prefix = { { { 0x3f, 0xfe, 0x05, 0x07, 0, 0, 0, 1,
64 static struct in6_addr test_ra_autoconf_addr = { { {
159 static int send_msg(struct in6_addr *src, struct in6_addr *dst);
249 static void inject_na_message(struct net_if *iface, struct in6_addr *src, in inject_na_message()
250 struct in6_addr *dst, struct in6_addr *target, in inject_na_message()
[all …]
/Zephyr-Core-3.7.0/tests/posix/headers/src/
Dnetinet_in_h.c33 zassert_not_equal(-1, offsetof(struct in6_addr, s6_addr)); in ZTEST()
34 zassert_equal(sizeof(((struct in6_addr *)NULL)->s6_addr), 16 * sizeof(uint8_t)); in ZTEST()
45 struct in6_addr any6 = IN6ADDR_ANY_INIT; in ZTEST()
46 struct in6_addr lo6 = IN6ADDR_LOOPBACK_INIT; in ZTEST()
/Zephyr-Core-3.7.0/tests/net/ip-addr/src/
Dmain.c90 struct in6_addr addr = { { { a, b, c, d, e, f, g, h, \
214 struct in6_addr loopback = IN6ADDR_LOOPBACK_INIT; in ZTEST()
215 struct in6_addr any = IN6ADDR_ANY_INIT; in ZTEST()
216 struct in6_addr mcast = { { { 0xff, 0x84, 0, 0, 0, 0, 0, 0, in ZTEST()
218 struct in6_addr addr6 = { { { 0xfe, 0x80, 0, 0, 0, 0, 0, 0, in ZTEST()
220 struct in6_addr addr6_pref1 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
222 struct in6_addr addr6_pref2 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
224 struct in6_addr addr6_pref3 = { { { 0x20, 0x01, 0x0d, 0xb8, 0x64, 0, 0, in ZTEST()
226 struct in6_addr *tmp; in ZTEST()
227 const struct in6_addr *out; in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/net/route/src/
Dmain.c47 static struct in6_addr my_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
51 static struct in6_addr peer_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
55 static struct in6_addr peer_addr_alt = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
59 static struct in6_addr dest_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
63 static struct in6_addr ll_addr = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
67 static struct in6_addr in6addr_mcast = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
71 static struct in6_addr generic_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
83 static struct in6_addr dest_addresses[MAX_ROUTES];
285 sizeof(struct in6_addr)); in test_init()
303 struct in6_addr *addr) in net_test_send_ns()
[all …]
/Zephyr-Core-3.7.0/tests/net/npf/src/
Dmain.c94 ret = net_ipv6_create(pkt, (struct in6_addr *)src, (struct in6_addr *)dst); in build_test_ip_pkt()
353 static struct in6_addr ipv6_address_list[4] = {
432 struct in6_addr dst = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0, in ZTEST()
434 struct in6_addr bad_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 8, 0, 0, 0, in ZTEST()
449 memcpy((struct in6_addr *)NET_IPV6_HDR(pkt_v6)->src, in ZTEST()
450 &ipv6_address_list[it], sizeof(struct in6_addr)); in ZTEST()
455 memcpy((struct in6_addr *)NET_IPV6_HDR(pkt_v6)->src, in ZTEST()
456 &bad_addr, sizeof(struct in6_addr)); in ZTEST()
471 memcpy((struct in6_addr *)NET_IPV6_HDR(pkt_v6)->src, in ZTEST()
472 &ipv6_address_list[it], sizeof(struct in6_addr)); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/net/iface/src/
Dmain.c42 static struct in6_addr my_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
47 static struct in6_addr my_addr2 = { { { 0x20, 0x01, 0x0d, 0xb8, 2, 0, 0, 0,
51 static struct in6_addr my_addr3 = { { { 0x20, 0x01, 0x0d, 0xb8, 3, 0, 0, 0,
55 static struct in6_addr ll_addr = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
60 static struct in6_addr in6addr_mcast;
672 struct in6_addr dst_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0, in ZTEST()
674 struct in6_addr ll_addr1 = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0, in ZTEST()
677 struct in6_addr dst_addr3 = { { { 0x20, 0x01, 0x0d, 0xb8, 3, 0, 0, 0, in ZTEST()
679 struct in6_addr in6addr_mcast1 = { { { 0x00 } } }; in ZTEST()
896 struct in6_addr my_ipv6_addr_test = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/zperf/
Dzperf_tcp_receiver.c336 struct sockaddr_in6 *in6_addr = zperf_get_sin6(); in zperf_tcp_receiver_init() local
337 const struct in6_addr *addr = NULL; in zperf_tcp_receiver_init()
350 memcpy(&in6_addr->sin6_addr, addr, in zperf_tcp_receiver_init()
351 sizeof(struct in6_addr)); in zperf_tcp_receiver_init()
356 &in6_addr->sin6_addr); in zperf_tcp_receiver_init()
363 memcpy(&in6_addr->sin6_addr, net_ipv6_unspecified_address(), in zperf_tcp_receiver_init()
364 sizeof(struct in6_addr)); in zperf_tcp_receiver_init()
367 in6_addr->sin6_port = htons(tcp_server_port); in zperf_tcp_receiver_init()
370 net_sprint_ipv6_addr(&in6_addr->sin6_addr)); in zperf_tcp_receiver_init()
372 memcpy(net_sin6(&sock_addr[SOCK_ID_IPV6_LISTEN]), in6_addr, in zperf_tcp_receiver_init()
/Zephyr-Core-3.7.0/tests/net/mld/src/
Dmain.c53 struct in6_addr mcast_addr;
68 static struct in6_addr my_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
70 static struct in6_addr peer_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
72 static struct in6_addr mcast_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
75 static struct in6_addr *exp_mcast_group;
428 struct in6_addr dst; in send_query()
481 sizeof(struct in6_addr)); in send_query()
627 struct in6_addr addr; in ZTEST()
671 struct in6_addr addr; in verify_allnodes_on_iface_event()
720 struct in6_addr addr; in ZTEST()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/dns/
Ddns_sd.h140 const struct in_addr *addr4, const struct in6_addr *addr6,
158 const struct in_addr *addr4, const struct in6_addr *addr6,

12345