Lines Matching refs:idx
21 int idx, ret; in cmd_net_dhcpv4_server_start() local
23 idx = get_iface_idx(sh, argv[1]); in cmd_net_dhcpv4_server_start()
24 if (idx < 0) { in cmd_net_dhcpv4_server_start()
28 iface = net_if_get_by_index(idx); in cmd_net_dhcpv4_server_start()
30 PR_WARNING("No such interface in index %d\n", idx); in cmd_net_dhcpv4_server_start()
41 PR_WARNING("DHCPv4 server already running on interface %d\n", idx); in cmd_net_dhcpv4_server_start()
44 idx, -ret); in cmd_net_dhcpv4_server_start()
46 PR("DHCPv4 server started on interface %d\n", idx); in cmd_net_dhcpv4_server_start()
59 int idx, ret; in cmd_net_dhcpv4_server_stop() local
61 idx = get_iface_idx(sh, argv[1]); in cmd_net_dhcpv4_server_stop()
62 if (idx < 0) { in cmd_net_dhcpv4_server_stop()
66 iface = net_if_get_by_index(idx); in cmd_net_dhcpv4_server_stop()
68 PR_WARNING("No such interface in index %d\n", idx); in cmd_net_dhcpv4_server_stop()
74 PR_WARNING("DHCPv4 server is not running on interface %d\n", idx); in cmd_net_dhcpv4_server_stop()
77 idx, -ret); in cmd_net_dhcpv4_server_stop()
79 PR("DHCPv4 server stopped on interface %d\n", idx); in cmd_net_dhcpv4_server_stop()
158 int idx = 0, ret; in cmd_net_dhcpv4_server_status() local
162 idx = get_iface_idx(sh, argv[1]); in cmd_net_dhcpv4_server_status()
163 if (idx < 0) { in cmd_net_dhcpv4_server_status()
167 iface = net_if_get_by_index(idx); in cmd_net_dhcpv4_server_status()
169 PR_WARNING("No such interface in index %d\n", idx); in cmd_net_dhcpv4_server_status()
179 PR_WARNING("DHCPv4 server is not running on interface %d\n", idx); in cmd_net_dhcpv4_server_status()
194 int idx; in cmd_net_dhcpv4_client_start() local
201 idx = get_iface_idx(sh, argv[1]); in cmd_net_dhcpv4_client_start()
202 if (idx < 0) { in cmd_net_dhcpv4_client_start()
206 iface = net_if_get_by_index(idx); in cmd_net_dhcpv4_client_start()
208 PR_WARNING("No such interface in index %d\n", idx); in cmd_net_dhcpv4_client_start()
224 int idx; in cmd_net_dhcpv4_client_stop() local
231 idx = get_iface_idx(sh, argv[1]); in cmd_net_dhcpv4_client_stop()
232 if (idx < 0) { in cmd_net_dhcpv4_client_stop()
236 iface = net_if_get_by_index(idx); in cmd_net_dhcpv4_client_stop()
238 PR_WARNING("No such interface in index %d\n", idx); in cmd_net_dhcpv4_client_stop()