Lines Matching +full:check +full:- +full:networking +full:- +full:files
4 * Provide some networking shell commands that can be useful to applications.
11 * SPDX-License-Identifier: Apache-2.0
33 return -EINVAL; in get_iface_idx()
39 return -ENOENT; in get_iface_idx()
44 return -ERANGE; in get_iface_idx()
89 if (IS_ENABLED(CONFIG_NET_IPV6) && context->local.family == AF_INET6) { in get_addresses()
92 net_sin6_ptr(&context->local)->sin6_addr), in get_addresses()
93 ntohs(net_sin6_ptr(&context->local)->sin6_port)); in get_addresses()
96 &net_sin6(&context->remote)->sin6_addr), in get_addresses()
97 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses()
99 } else if (IS_ENABLED(CONFIG_NET_IPV4) && context->local.family == AF_INET) { in get_addresses()
102 net_sin_ptr(&context->local)->sin_addr), in get_addresses()
103 ntohs(net_sin_ptr(&context->local)->sin_port)); in get_addresses()
105 /* Check if we need to print the v4-mapping-to-v6 address */ in get_addresses()
107 net_sin(&context->remote)->sin_family == AF_INET6 && in get_addresses()
108 net_ipv6_addr_is_v4_mapped(&net_sin6(&context->remote)->sin6_addr)) { in get_addresses()
111 &net_sin6(&context->remote)->sin6_addr), in get_addresses()
112 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses()
116 &net_sin(&context->remote)->sin_addr), in get_addresses()
117 ntohs(net_sin(&context->remote)->sin_port)); in get_addresses()
120 } else if (context->local.family == AF_UNSPEC) { in get_addresses()
122 } else if (context->local.family == AF_PACKET) { in get_addresses()
124 } else if (context->local.family == AF_CAN) { in get_addresses()
128 context->local.family); in get_addresses()
149 if (eth_ctx->eth_if_type == L2_ETH_IF_TYPE_WIFI) { in iface2str()
232 /* Placeholder for net commands that are configured in the rest of the .c files */
235 SHELL_CMD_REGISTER(net, &net_cmds, "Networking commands", NULL);