Home
last modified time | relevance | path

Searched refs:in6_addr (Results 26 – 50 of 118) sorted by relevance

12345

/Zephyr-latest/subsys/net/ip/
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()
369 if (net_ipv6_addr_based_on_ll((struct in6_addr *)ipv6->src, in compress_sa()
378 if (net_6lo_addr_16_bit_compressible((struct in6_addr *)ipv6->src)) { in compress_sa()
415 if (net_ipv6_addr_based_on_ll((struct in6_addr *)ipv6->src, in compress_sa_ctx()
[all …]
Dutils.c164 struct in6_addr *addr6 = NULL; in z_impl_net_addr_ntop()
178 addr6 = (struct in6_addr *)src; in z_impl_net_addr_ntop()
302 struct in6_addr addr6; in z_vrfy_net_addr_ntop()
402 struct in6_addr *addr = (struct in6_addr *)dst; in z_impl_net_addr_pton()
510 struct in6_addr addr6; in z_vrfy_net_addr_pton()
520 size = sizeof(struct in6_addr); in z_vrfy_net_addr_pton()
694 len = 2 * sizeof(struct in6_addr); in net_calc_chksum()
772 struct in6_addr *addr6; in parse_ipv6()
1049 const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
1050 const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
[all …]
Dnet_core.c238 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()
253 struct in6_addr addr; in check_ip()
276 (struct in6_addr *)NET_IPV6_HDR(pkt)->dst)) { in check_ip()
285 (struct in6_addr *)NET_IPV6_HDR(pkt)->src)) { in check_ip()
Dpmtu.c60 net_ipv6_addr_cmp(&pmtu_entries[i].dst.in6_addr, in get_pmtu_entry()
137 net_ipaddr_copy(&info.dst, &entry->dst.in6_addr); in update_pmtu_entry()
202 net_ipaddr_copy(&entry->dst.in6_addr, &net_sin6(dst)->sin6_addr); in add_entry()
Dipv6_fragment.c124 struct in6_addr *src, in reassembly_get()
125 struct in6_addr *dst) in reassembly_get()
161 struct in6_addr *src, in reassembly_cancel()
162 struct in6_addr *dst) in reassembly_cancel()
495 reass = reassembly_get(id, (struct in6_addr *)hdr->src, in net_ipv6_handle_fragment_hdr()
496 (struct in6_addr *)hdr->dst); in net_ipv6_handle_fragment_hdr()
/Zephyr-latest/subsys/net/l2/virtual/ipip/
Dipip.c49 const struct in6_addr *my6addr;
168 &ctx->peer.in6_addr); in interface_send()
171 ret = net_ipv6_create(tmp, ctx->my6addr, &ctx->peer.in6_addr); in interface_send()
282 if (memcmp(&ctx->peer.in6_addr, &net_sin6(remote_addr)->sin6_addr, in verify_remote_addr()
283 sizeof(struct in6_addr)) == 0) { in verify_remote_addr()
353 iface_test = net_if_ipv6_select_src_iface((struct in6_addr *)hdr->dst); in interface_recv()
451 struct in6_addr iid; in interface_attach()
526 net_ipaddr_copy(&ctx->peer.in6_addr, in interface_set_config()
529 addr_str = net_addr_ntop(AF_INET6, &ctx->peer.in6_addr, in interface_set_config()
540 &ctx->peer.in6_addr)); in interface_set_config()
[all …]
/Zephyr-latest/samples/net/sockets/echo_client/src/
Decho-client.c207 struct in6_addr *deprecated_addr) in check_our_ipv6_sockets()
245 cb->info_length != sizeof(struct in6_addr)) { in ipv6_event_handler()
251 struct in6_addr added_addr; in ipv6_event_handler()
253 memcpy(&added_addr, cb->info, sizeof(struct in6_addr)); in ipv6_event_handler()
278 struct in6_addr deprecated_addr; in ipv6_event_handler()
280 memcpy(&deprecated_addr, cb->info, sizeof(struct in6_addr)); in ipv6_event_handler()
/Zephyr-latest/tests/net/tx_timestamp/src/
Dmain.c48 static struct in6_addr my_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
52 static struct in6_addr my_addr2 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
56 static struct in6_addr dst_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 9, 0, 0, 0,
60 static struct in6_addr ll_addr = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
400 static bool add_neighbor(struct net_if *iface, struct in6_addr *addr) in add_neighbor()
442 memcpy(&src_addr6.sin6_addr, &my_addr1, sizeof(struct in6_addr)); in send_some_data()
443 memcpy(&dst_addr6.sin6_addr, &dst_addr, sizeof(struct in6_addr)); in send_some_data()
/Zephyr-latest/subsys/net/lib/shell/
Dipv6.c60 static void ipv6_pe_filter_cb(struct in6_addr *prefix, bool is_denylist, in ipv6_pe_filter_cb()
119 &ipv6->unicast[i].address.in6_addr); in address_lifetime_cb()
139 net_sprint_ipv6_addr(&ipv6->unicast[i].address.in6_addr), in address_lifetime_cb()
235 struct in6_addr addr; in cmd_net_ip6_add()
288 struct in6_addr addr; in cmd_net_ip6_del()
342 struct in6_addr prefix; in cmd_net_ip6_pe()
Droute.c119 struct in6_addr gw = {0}; in cmd_net_ip6_route_add()
120 struct in6_addr prefix = {0}; in cmd_net_ip6_route_add()
171 struct in6_addr prefix = { 0 }; in cmd_net_ip6_route_del()
/Zephyr-latest/tests/net/shell/src/
Dmain.c132 const struct in6_addr in6addr_anyaddr = IN6ADDR_ANY_INIT; in test_setup()
135 struct in6_addr in6addr_my = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in test_setup()
139 struct in6_addr in6addr_peer = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in test_setup()
/Zephyr-latest/samples/net/telnet/src/
Dtelnet.c26 struct in6_addr addr; in setup_ipv6()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_udp_receiver.c252 static void zperf_udp_join_mcast_ipv6(char *if_name, struct in6_addr *addr) in zperf_udp_join_mcast_ipv6()
443 const struct in6_addr *in6_addr = NULL; in zperf_udp_receiver_init() local
455 in6_addr = &net_sin6(&udp_server_addr)->sin6_addr; in zperf_udp_receiver_init()
457 if (!net_ipv6_is_addr_unspecified(in6_addr)) { in zperf_udp_receiver_init()
458 memcpy(&in6_addr_my->sin6_addr, in6_addr, in zperf_udp_receiver_init()
459 sizeof(struct in6_addr)); in zperf_udp_receiver_init()
473 sizeof(struct in6_addr)); in zperf_udp_receiver_init()
Dzperf_session.c55 net_ipv6_addr_cmp(&ptr->ip.in6_addr, &addr6->sin6_addr)) { in get_session()
82 net_ipaddr_copy(&active->ip.in6_addr, &addr6->sin6_addr); in get_session()
/Zephyr-latest/tests/net/promiscuous/src/
Dmain.c38 static struct in6_addr my_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
42 static struct in6_addr my_addr2 = { { { 0x20, 0x01, 0x0d, 0xb8, 2, 0, 0, 0,
46 static struct in6_addr my_addr3 = { { { 0x20, 0x01, 0x0d, 0xb8, 3, 0, 0, 0,
50 static struct in6_addr ll_addr = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
54 static struct in6_addr in6addr_mcast = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
/Zephyr-latest/tests/net/traffic_class/src/
Dmain.c61 static struct in6_addr my_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
65 static struct in6_addr my_addr2 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
69 static struct in6_addr my_addr3 = { { { 0x20, 0x01, 0x0d, 0xb8, 2, 0, 0, 0,
73 static struct in6_addr dst_addr = { { { 0x20, 0x01, 0x0d, 0xb8, 9, 0, 0, 0,
77 static struct in6_addr ll_addr = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
170 struct in6_addr addr; in eth_tx()
346 static bool add_neighbor(struct net_if *iface, struct in6_addr *addr) in add_neighbor()
390 memcpy(&src_addr6.sin6_addr, &my_addr1, sizeof(struct in6_addr)); in setup_net_context()
391 memcpy(&dst_addr6.sin6_addr, &dst_addr, sizeof(struct in6_addr)); in setup_net_context()
761 const struct in6_addr *src_addr; in traffic_class_recv_packets_with_prio()
/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6_internal.h95 struct in6_addr addr;
110 struct in6_addr prefix;
/Zephyr-latest/subsys/net/l2/ppp/
Dipv6cp.c209 static void setup_iid_address(uint8_t *iid, struct in6_addr *addr) in setup_iid_address()
224 struct in6_addr addr; in add_iid_address()
245 struct in6_addr peer_addr; in ipv6cp_up()
299 struct in6_addr my_addr; in ipv6cp_down()
300 struct in6_addr peer_addr; in ipv6cp_down()
/Zephyr-latest/tests/net/udp/src/
Dmain.c214 struct in6_addr *src, in send_ipv6_udp_msg()
215 struct in6_addr *dst, in send_ipv6_udp_msg()
263 struct in6_addr *src, in send_ipv6_udp_long_msg()
264 struct in6_addr *dst, in send_ipv6_udp_long_msg()
423 const struct in6_addr in6addr_anyaddr = IN6ADDR_ANY_INIT; in ZTEST()
426 struct in6_addr in6addr_my = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
430 struct in6_addr in6addr_peer = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0, in ZTEST()
/Zephyr-latest/tests/net/checksum_offload/src/
Dmain.c50 static struct in6_addr my_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
54 static struct in6_addr my_addr2 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
58 static struct in6_addr dst_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
62 static struct in6_addr dst_addr2 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
66 static struct in6_addr ll_addr = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
207 struct in6_addr addr; in test_receiving()
609 static void add_neighbor(struct net_if *iface, struct in6_addr *addr) in add_neighbor()
656 sizeof(struct in6_addr)); in test_udp_context_prepare()
658 sizeof(struct in6_addr)); in test_udp_context_prepare()
661 sizeof(struct in6_addr)); in test_udp_context_prepare()
[all …]
/Zephyr-latest/include/zephyr/net/
Dvirtual_mgmt.h46 struct in6_addr peer6addr;
/Zephyr-latest/subsys/net/lib/ptp/
Dtransport.c21 static struct in6_addr mcast_addr = {{{0xff, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
94 memcpy(&mreqn.ipv6mr_multiaddr, &mcast_addr, sizeof(struct in6_addr)); in transport_join_multicast()
208 sizeof(struct in6_addr)); in transport_send()
333 struct in6_addr *ip = net_if_ipv6_get_global_addr(NET_ADDR_PREFERRED, &port->iface); in ptp_transport_protocol_addr()
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dmain.c32 static struct in6_addr my_addr = MY_IP6ADDR; in join_coap_multicast_group()
/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()
288 if (net_ipv6_addr_cmp(addr, &((struct in6_addr *)test_ip->ipaddr)[ip_it])) { in npf_ip_src_addr_match()
/Zephyr-latest/tests/net/icmp/src/
Dmain.c54 static struct in6_addr send_addr_6 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
56 static struct in6_addr recv_addr_6 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
75 static struct in6_addr offload_send_addr_6 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
77 static struct in6_addr offload_recv_addr_6 = { { { 0x20, 0x01, 0x0d, 0xb8, 0, 0, 0, 0,
263 const struct in6_addr *dest6; in get_ipv6_reply()
265 struct in6_addr *src6; in get_ipv6_reply()

12345