/Zephyr-latest/tests/net/6lo/src/ |
D | main.c | 238 struct net_ipv6_hdr ipv6; member 296 res = memcmp((uint8_t *)ipv6_hdr, (uint8_t *)&data->ipv6, in compare_ipv6_hdr() 518 data->ipv6.len = htons(len); in create_pkt() 553 .ipv6.vtc = 0x60, 554 .ipv6.tcflow = 0x00, 555 .ipv6.flow = 0x00, 556 .ipv6.len = 0, 557 .ipv6.nexthdr = IPPROTO_UDP, 558 .ipv6.hop_limit = 0xff, 559 .ipv6.src = src_sam00, [all …]
|
/Zephyr-latest/tests/net/ieee802154/6lo_fragment/src/ |
D | main.c | 155 struct net_ipv6_hdr ipv6; member 268 data->ipv6.len = htons(len); in create_pkt() 306 .ipv6.vtc = 0x60, 307 .ipv6.tcflow = 0x00, 308 .ipv6.flow = 0x00, 309 .ipv6.len = 0, 310 .ipv6.nexthdr = IPPROTO_UDP, 311 .ipv6.hop_limit = 0xff, 312 .ipv6.src = src_sam00, 313 .ipv6.dst = dst_dam00, [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | ipv6_pe.c | 63 #define DESYNC_FACTOR(ipv6) ((ipv6)->desync_factor) argument 136 static bool ipv6_pe_prefix_already_exists(struct net_if_ipv6 *ipv6, in ipv6_pe_prefix_already_exists() argument 139 ARRAY_FOR_EACH(ipv6->unicast, i) { in ipv6_pe_prefix_already_exists() 140 if (!ipv6->unicast[i].is_used || in ipv6_pe_prefix_already_exists() 141 ipv6->unicast[i].address.family != AF_INET6 || in ipv6_pe_prefix_already_exists() 142 !ipv6->unicast[i].is_temporary || in ipv6_pe_prefix_already_exists() 143 ipv6->unicast[i].addr_state == NET_ADDR_DEPRECATED) { in ipv6_pe_prefix_already_exists() 148 (uint8_t *)&ipv6->unicast[i].address.in6_addr, in ipv6_pe_prefix_already_exists() 158 struct net_if_ipv6 *ipv6, in ipv6_pe_prefix_remove() argument 163 ARRAY_FOR_EACH(ipv6->unicast, i) { in ipv6_pe_prefix_remove() [all …]
|
D | 6lo.c | 268 static uint8_t *compress_tfl(struct net_ipv6_hdr *ipv6, uint8_t *inline_ptr, in compress_tfl() argument 273 tcl = ((ipv6->vtc & 0x0F) << 4) | ((ipv6->tcflow & 0xF0) >> 4); in compress_tfl() 276 if (((ipv6->tcflow & 0x0F) == 0U) && (ipv6->flow == 0U)) { in compress_tfl() 277 if (((ipv6->vtc & 0x0F) == 0U) && ((ipv6->tcflow & 0xF0) == 0U)) { in compress_tfl() 292 if (((ipv6->vtc & 0x0F) == 0U) && (ipv6->tcflow & 0x30)) { in compress_tfl() 298 inline_ptr -= sizeof(ipv6->flow); in compress_tfl() 299 memmove(inline_ptr, &ipv6->flow, sizeof(ipv6->flow)); in compress_tfl() 302 *inline_ptr = (tcl & 0xC0) | (ipv6->tcflow & 0x0F); in compress_tfl() 309 inline_ptr -= sizeof(ipv6->flow); in compress_tfl() 310 memmove(inline_ptr, &ipv6->flow, sizeof(ipv6->flow)); in compress_tfl() [all …]
|
D | net_if.c | 92 struct net_if_ipv6 ipv6; member 1041 int net_if_config_ipv6_get(struct net_if *iface, struct net_if_ipv6 **ipv6) in net_if_config_ipv6_get() argument 1053 if (iface->config.ip.ipv6) { in net_if_config_ipv6_get() 1054 if (ipv6) { in net_if_config_ipv6_get() 1055 *ipv6 = iface->config.ip.ipv6; in net_if_config_ipv6_get() 1068 iface->config.ip.ipv6 = &ipv6_addresses[i].ipv6; in net_if_config_ipv6_get() 1071 if (ipv6) { in net_if_config_ipv6_get() 1072 *ipv6 = &ipv6_addresses[i].ipv6; in net_if_config_ipv6_get() 1100 if (!iface->config.ip.ipv6) { in net_if_config_ipv6_put() 1112 iface->config.ip.ipv6 = NULL; in net_if_config_ipv6_put() [all …]
|
D | ipv6_mld.c | 157 struct net_if_mcast_addr *mcasts = info->iface->config.ip.ipv6->mcast; in append_mcast_routes() 288 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in send_mld_report() local 293 NET_ASSERT(ipv6); in send_mld_report() 296 if (!ipv6->mcast[i].is_used || !ipv6->mcast[i].is_joined) { in send_mld_report() 326 if (!ipv6->mcast[i].is_used || !ipv6->mcast[i].is_joined) { in send_mld_report() 330 ret = mld_create(pkt, &ipv6->mcast[i].address.in6_addr, in send_mld_report() 407 struct net_ipv6_hdr *ip_hdr = hdr->ipv6; in handle_mld_query()
|
D | ipv6_fragment.c | 237 } ipv6; in reassemble_packet() local 301 ipv6.frag_hdr = (struct net_ipv6_frag_hdr *)net_pkt_get_data( in reassemble_packet() 303 if (!ipv6.frag_hdr) { in reassemble_packet() 308 next_hdr = ipv6.frag_hdr->nexthdr; in reassemble_packet() 323 ipv6.hdr = (struct net_ipv6_hdr *)net_pkt_get_data(pkt, &ipv6_access); in reassemble_packet() 324 if (!ipv6.hdr) { in reassemble_packet() 338 ipv6.hdr->len = htons(len); in reassemble_packet()
|
/Zephyr-latest/tests/net/utils/src/ |
D | main.c | 49 } ipv6; member 111 .ipv6.c_addr = "ff08::", 112 .ipv6.verify.s6_addr16 = { htons(0xff08), 0, 0, 0, 0, 0, 0, 0 }, 118 .ipv6.c_addr = "::", 119 .ipv6.verify.s6_addr16 = { 0 }, 125 .ipv6.c_addr = "ff08::1", 126 .ipv6.verify.s6_addr16 = { htons(0xff08), 0, 0, 0, 0, 0, 0, htons(1) }, 132 .ipv6.c_addr = "2001:db8::1", 133 .ipv6.verify.s6_addr16 = { htons(0x2001), htons(0xdb8), 140 .ipv6.c_addr = "2001:db8::2:1", [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | smp_udp.c | 67 struct config ipv6; member 127 ret = zsock_sendto(smp_udp_configs.ipv6.sock, nb->data, nb->len, 0, addr, sizeof(*addr)); in smp_udp6_tx() 285 k_thread_join(&smp_udp_configs.ipv6.thread, K_NO_WAIT) == -EBUSY) { in smp_udp_open_iface() 286 k_sem_give(&smp_udp_configs.ipv6.network_ready_sem); in smp_udp_open_iface() 329 if (k_thread_join(&smp_udp_configs.ipv6.thread, K_NO_WAIT) == 0 || in smp_udp_open() 331 (void)k_sem_reset(&smp_udp_configs.ipv6.network_ready_sem); in smp_udp_open() 332 create_thread(&smp_udp_configs.ipv6, "smp_udp6"); in smp_udp_open() 364 if (k_thread_join(&smp_udp_configs.ipv6.thread, K_NO_WAIT) == -EBUSY) { in smp_udp_close() 365 k_thread_abort(&(smp_udp_configs.ipv6.thread)); in smp_udp_close() 367 if (smp_udp_configs.ipv6.sock >= 0) { in smp_udp_close() [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | ipv6.c | 86 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in address_lifetime_cb() local 95 if (!ipv6) { in address_lifetime_cb() 102 ARRAY_FOR_EACH(ipv6->unicast, i) { in address_lifetime_cb() 106 if (!ipv6->unicast[i].is_used || in address_lifetime_cb() 107 ipv6->unicast[i].address.family != AF_INET6) { in address_lifetime_cb() 115 remaining = net_timeout_remaining(&ipv6->unicast[i].lifetime, in address_lifetime_cb() 119 &ipv6->unicast[i].address.in6_addr); in address_lifetime_cb() 124 if (ipv6->unicast[i].is_infinite) { in address_lifetime_cb() 136 addrtype2str(ipv6->unicast[i].addr_type), in address_lifetime_cb() 137 addrstate2str(ipv6->unicast[i].addr_state), in address_lifetime_cb() [all …]
|
D | iface.c | 165 struct net_if_ipv6 *ipv6; in iface_cb() local 349 ipv6 = iface->config.ip.ipv6; in iface_cb() 351 if (!net_if_flag_is_set(iface, NET_IF_IPV6) || ipv6 == NULL) { in iface_cb() 353 ipv6 = NULL; in iface_cb() 358 ARRAY_FOR_EACH(ipv6->unicast, i) { in iface_cb() 359 unicast = &ipv6->unicast[i]; in iface_cb() 382 ARRAY_FOR_EACH(ipv6->mcast, i) { in iface_cb() 383 mcast = &ipv6->mcast[i]; in iface_cb() 403 ARRAY_FOR_EACH(ipv6->prefix, i) { in iface_cb() 404 prefix = &ipv6->prefix[i]; in iface_cb() [all …]
|
/Zephyr-latest/subsys/net/l2/openthread/ |
D | openthread_utils.c | 168 struct net_if_ipv6 *ipv6; in add_ipv6_addr_to_ot() local 175 ipv6 = context->iface->config.ip.ipv6; in add_ipv6_addr_to_ot() 176 if (ipv6 == NULL) { in add_ipv6_addr_to_ot() 183 if (ipv6->unicast[i].is_used && in add_ipv6_addr_to_ot() 184 net_ipv6_addr_cmp(&ipv6->unicast[i].address.in6_addr, in add_ipv6_addr_to_ot() 186 if_addr = &ipv6->unicast[i]; in add_ipv6_addr_to_ot() 199 context, ipv6->unicast[i].address.in6_addr.s6_addr); in add_ipv6_addr_to_ot() 289 struct net_if_ipv6 *ipv6; in rm_ipv6_addr_from_zephyr() local 292 if (net_if_config_ipv6_get(context->iface, &ipv6) < 0) { in rm_ipv6_addr_from_zephyr() 301 zephyr_addr = &ipv6->unicast[i]; in rm_ipv6_addr_from_zephyr() [all …]
|
/Zephyr-latest/samples/net/sockets/echo_client/src/ |
D | echo-client.c | 65 .ipv6 = { 104 if (conf.ipv6.udp.sock >= 0) { in prepare_fds() 105 fds[nfds].fd = conf.ipv6.udp.sock; in prepare_fds() 110 if (conf.ipv6.tcp.sock >= 0) { in prepare_fds() 111 fds[nfds].fd = conf.ipv6.tcp.sock; in prepare_fds() 286 (void)check_our_ipv6_sockets(conf.ipv6.tcp.sock, in ipv6_event_handler() 288 (void)check_our_ipv6_sockets(conf.ipv6.udp.sock, in ipv6_event_handler() 311 conf.ipv6.udp.mtu = conf.ipv4.udp.mtu; in event_handler()
|
D | udp.c | 85 send_udp_data(&conf.ipv6); in process_udp_tx() 118 conf.ipv6.udp.ctrl = &udp6_ctrl; in init_udp() 178 struct sample_data *data = (ctrl == conf.ipv4.udp.ctrl) ? &conf.ipv4 : &conf.ipv6; in wait_reply() 315 ret = start_udp_proto(&conf.ipv6, AF_INET6, in start_udp() 348 k_poll_signal_raise(&conf.ipv6.udp.ctrl->tx_signal, 0); in start_udp() 363 ret = process_udp_proto(&conf.ipv6); in process_udp() 385 if (conf.ipv6.udp.sock >= 0) { in stop_udp() 386 (void)close(conf.ipv6.udp.sock); in stop_udp()
|
D | tcp.c | 245 ret = start_tcp_proto(&conf.ipv6, AF_INET6, in start_tcp() 268 ret = send_tcp_data(&conf.ipv6); in start_tcp() 286 ret = process_tcp_proto(&conf.ipv6); in process_tcp() 305 if (conf.ipv6.tcp.sock >= 0) { in stop_tcp() 306 (void)close(conf.ipv6.tcp.sock); in stop_tcp()
|
D | common.h | 66 struct sample_data ipv6; member
|
/Zephyr-latest/samples/net/sockets/echo_server/src/ |
D | udp.c | 187 ret = start_udp_proto(&conf.ipv6, (struct sockaddr *)&addr6, in process_udp6() 195 ret = process_udp(&conf.ipv6); in process_udp6() 230 k_work_init_delayable(&conf.ipv6.udp.stats_print, print_stats); in start_udp() 233 k_work_reschedule(&conf.ipv6.udp.stats_print, in start_udp() 257 if (conf.ipv6.udp.sock >= 0) { in stop_udp() 258 (void)close(conf.ipv6.udp.sock); in stop_udp()
|
D | tcp.c | 341 ret = start_tcp_proto(&conf.ipv6, (struct sockaddr *)&addr6, in process_tcp6() 349 ret = process_tcp(&conf.ipv6); in process_tcp6() 384 conf.ipv6.tcp.accepted[i].sock = -1; in start_tcp() 405 k_work_init_delayable(&conf.ipv6.tcp.stats_print, print_stats); in start_tcp() 407 k_work_reschedule(&conf.ipv6.tcp.stats_print, K_SECONDS(STATS_TIMER)); in start_tcp() 436 if (conf.ipv6.tcp.sock >= 0) { in stop_tcp() 437 (void)close(conf.ipv6.tcp.sock); in stop_tcp() 446 if (conf.ipv6.tcp.accepted[i].sock >= 0) { in stop_tcp() 447 (void)close(conf.ipv6.tcp.accepted[i].sock); in stop_tcp()
|
/Zephyr-latest/tests/bsim/net/sockets/echo_test/src/ |
D | echo_test.c | 57 packet_count = conf.ipv6.tcp.counter; in test_echo_client_tick() 59 packet_count = conf.ipv6.udp.counter; in test_echo_client_tick()
|
/Zephyr-latest/samples/net/stats/src/ |
D | main.c | 36 GET_STAT(iface, ipv6.recv), in print_stats() 37 GET_STAT(iface, ipv6.sent), in print_stats() 38 GET_STAT(iface, ipv6.drop), in print_stats() 39 GET_STAT(iface, ipv6.forwarded)); in print_stats()
|
/Zephyr-latest/tests/net/ipv6/ |
D | CMakeLists.txt | 5 project(ipv6) project
|
/Zephyr-latest/tests/net/ipv6/src/ |
D | main.c | 584 struct net_if_ipv6 *ipv6; in ipv6_setup() local 595 zassert_false(net_if_config_ipv6_get(iface, &ipv6) < 0, in ipv6_setup() 599 if (iface->config.ip.ipv6->unicast[i].is_used) { in ipv6_setup() 603 ifaddr = &iface->config.ip.ipv6->unicast[i]; in ipv6_setup() 2181 struct net_if_ipv6 *ipv6; in is_pe_address_found() local 2183 ipv6 = iface->config.ip.ipv6; in is_pe_address_found() 2185 zassert_not_null(ipv6, "IPv6 configuration is wrong for iface %p", in is_pe_address_found() 2188 ARRAY_FOR_EACH(ipv6->unicast, i) { in is_pe_address_found() 2189 if (!ipv6->unicast[i].is_used || in is_pe_address_found() 2190 ipv6->unicast[i].address.family != AF_INET6 || in is_pe_address_found() [all …]
|
/Zephyr-latest/subsys/net/lib/config/ |
D | init.c | 249 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in ipv6_event_handler() local 252 if (!ipv6) { in ipv6_event_handler() 259 if (ipv6->unicast[i].is_used) { in ipv6_event_handler() 261 &ipv6->unicast[i].address.in6_addr, in ipv6_event_handler()
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | llmnr_responder.c | 48 static int ipv6; variable 635 ipv6 = get_socket(AF_INET6); in init_listener() 637 ret = bind_ctx(ipv6, (struct sockaddr *)&local_addr, in init_listener() 640 zsock_close(ipv6); in init_listener() 647 if (fds[j].fd == ipv6) { in init_listener() 653 fds[j].fd = ipv6; in init_listener() 662 zsock_close(ipv6); in init_listener() 670 zsock_close(ipv6); in init_listener()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_if.h | 558 struct net_if_ipv6 *ipv6; member 1403 struct net_if_ipv6 **ipv6); 1955 if (!iface->config.ip.ipv6) { in net_if_ipv6_set_base_reachable_time() 1959 iface->config.ip.ipv6->base_reachable_time = reachable_time; in net_if_ipv6_set_base_reachable_time() 1981 if (!iface->config.ip.ipv6) { in net_if_ipv6_get_reachable_time() 1985 return iface->config.ip.ipv6->reachable_time; in net_if_ipv6_get_reachable_time() 1999 uint32_t net_if_ipv6_calc_reachable_time(struct net_if_ipv6 *ipv6); 2007 static inline void net_if_ipv6_set_reachable_time(struct net_if_ipv6 *ipv6) in net_if_ipv6_set_reachable_time() argument 2010 if (ipv6 == NULL) { in net_if_ipv6_set_reachable_time() 2014 ipv6->reachable_time = net_if_ipv6_calc_reachable_time(ipv6); in net_if_ipv6_set_reachable_time() [all …]
|