Lines Matching refs:if_idx
30 int ret = 0, br_idx, if_idx; in cmd_bridge_addif() local
46 if_idx = get_idx(sh, argv[i]); in cmd_bridge_addif()
47 if (if_idx < 0) { in cmd_bridge_addif()
51 iface = net_if_get_by_index(if_idx); in cmd_bridge_addif()
53 shell_warn(sh, "Interface %d not found\n", if_idx); in cmd_bridge_addif()
58 shell_warn(sh, "Interface %d is not Ethernet\n", if_idx); in cmd_bridge_addif()
63 shell_warn(sh, "Interface %d cannot do promiscuous mode\n", if_idx); in cmd_bridge_addif()
78 int ret = 0, br_idx, if_idx; in cmd_bridge_delif() local
94 if_idx = get_idx(sh, argv[i]); in cmd_bridge_delif()
95 if (if_idx < 0) { in cmd_bridge_delif()
99 iface = net_if_get_by_index(if_idx); in cmd_bridge_delif()
101 shell_warn(sh, "Interface %d not found\n", if_idx); in cmd_bridge_delif()
136 int if_idx; in bridge_show() local
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()