Lines Matching refs:index

59     rt_uint16_t index;  in netdev_register()  local
76 for (index = 0; index < NETDEV_IPV6_NUM_ADDRESSES; index++) in netdev_register()
78 ip_addr_set_zero(&(netdev->ip6_addr[index])); in netdev_register()
82 for (index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_register()
84 ip_addr_set_zero(&(netdev->dns_servers[index])); in netdev_register()
437 …msg_buf *msg, int (*cb)(struct msg_buf *m_buf, struct netdev *nd, int nd_num, int index, int ipvx)) in netdev_getnetdev() argument
975 unsigned int index; in netdev_low_level_set_dns_server() local
984 for (index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_low_level_set_dns_server()
986 if (ip_addr_cmp(&(netdev->dns_servers[index]), dns_server)) in netdev_low_level_set_dns_server()
1172 rt_ubase_t index; in netdev_list_if() local
1196 for (index = 0; index < netdev->hwaddr_len; index++) in netdev_list_if()
1198 rt_kprintf("%02x ", netdev->hwaddr[index]); in netdev_list_if()
1204 for (index = 0; index < netdev->hwaddr_len; index++) in netdev_list_if()
1207 if (netdev->hwaddr[index] < 10 && index != netdev->hwaddr_len - 1) in netdev_list_if()
1209 rt_kprintf("%02d", netdev->hwaddr[index]); in netdev_list_if()
1213 rt_kprintf("%d", netdev->hwaddr[index]); in netdev_list_if()
1261 for (index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_list_if()
1263 rt_kprintf("dns server #%d: %s\n", index, inet_ntoa(netdev->dns_servers[index])); in netdev_list_if()
1324 rt_uint32_t index, received, loss, max_time, min_time, avg_time; in netdev_cmd_ping() local
1366 for (index = 0; index < times; index++) in netdev_cmd_ping()
1377 … (ip_addr_isany(&(ping_resp.ip_addr))) ? target_name : inet_ntoa(ping_resp.ip_addr), index + 1); in netdev_cmd_ping()
1390 … ping_resp.data_len, inet_ntoa(ping_resp.ip_addr), index + 1, ping_resp.ticks); in netdev_cmd_ping()
1395 … ping_resp.data_len, inet_ntoa(ping_resp.ip_addr), index + 1, ping_resp.ttl, ping_resp.ticks); in netdev_cmd_ping()
1410 …delay_tick = ((rt_tick_get() - start_tick) > NETDEV_PING_DELAY) || (index == times) ? 0 : NETDEV_P… in netdev_cmd_ping()
1415 loss = (uint32_t)((1 - ((float)received) / index) * 100); in netdev_cmd_ping()
1431 rt_kprintf("%d packets transmitted, %d received, %d%% packet loss\n", index, received, loss); in netdev_cmd_ping()
1470 unsigned int index = 0; in netdev_list_dns() local
1482 for(index = 0; index < NETDEV_DNS_SERVERS_NUM; index++) in netdev_list_dns()
1484 rt_kprintf("dns server #%d: %s\n", index, inet_ntoa(netdev->dns_servers[index])); in netdev_list_dns()