Lines Matching +full:promiscuous +full:- +full:mode
4 * SPDX-License-Identifier: Apache-2.0
22 return -ENOENT; in get_idx()
42 return -ENOENT; in cmd_bridge_addif()
63 shell_warn(sh, "Interface %d cannot do promiscuous mode\n", if_idx); in cmd_bridge_addif()
90 return -ENOENT; in cmd_bridge_delif()
116 int br_idx = eth_bridge_get_index(ctx->iface); in bridge_show()
119 shell_fprintf(sh, SHELL_NORMAL, "%-7d", br_idx); in bridge_show()
121 if (net_if_is_up(ctx->iface)) { in bridge_show()
122 shell_fprintf(sh, SHELL_NORMAL, "%-9s", "up"); in bridge_show()
124 shell_fprintf(sh, SHELL_NORMAL, "%-9s", "down"); in bridge_show()
127 if (ctx->is_setup) { in bridge_show()
128 shell_fprintf(sh, SHELL_NORMAL, "%-9s", "ok"); in bridge_show()
130 shell_fprintf(sh, SHELL_NORMAL, "%-9s", "no"); in bridge_show()
133 k_mutex_lock(&ctx->lock, K_FOREVER); in bridge_show()
135 ARRAY_FOR_EACH(ctx->eth_iface, i) { in bridge_show()
138 if (ctx->eth_iface[i] == NULL) { in bridge_show()
142 if_idx = net_if_get_by_iface(ctx->eth_iface[i]); in bridge_show()
144 shell_fprintf(sh, SHELL_NORMAL, "%-2d", if_idx); in bridge_show()
149 k_mutex_unlock(&ctx->lock); in bridge_show()
166 return -ENOENT; in cmd_bridge_show()
170 shell_fprintf(sh, SHELL_NORMAL, "Bridge %-9s%-9sInterfaces\n", in cmd_bridge_show()
174 bridge_show(net_if_get_device(br)->data, (void *)sh); in cmd_bridge_show()