Lines Matching refs:net_config
30 struct crosvm_net_config net_config; in main() local
38 ret = crosvm_net_get_config(crosvm, &net_config); in main()
44 if (net_config.tap_fd < 0) { in main()
45 fprintf(stderr, "fd %d is < 0\n", net_config.tap_fd); in main()
50 if (ioctl(net_config.tap_fd, TUNGETFEATURES, &features) < 0) { in main()
57 if (net_config.host_ip != htonl(expected_ip)) { in main()
59 inet_ntop(AF_INET, &net_config.host_ip, ip_addr, sizeof(ip_addr)); in main()
64 if (net_config.netmask != htonl(expected_netmask)) { in main()
66 inet_ntop(AF_INET, &net_config.netmask, netmask, sizeof(netmask)); in main()
71 if (memcmp(net_config.host_mac_address, in main()
76 net_config.host_mac_address[0], in main()
77 net_config.host_mac_address[1], in main()
78 net_config.host_mac_address[2], in main()
79 net_config.host_mac_address[3], in main()
80 net_config.host_mac_address[4], in main()
81 net_config.host_mac_address[5]); in main()