Searched refs:ifr (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/ip-up-vpn/ |
D | ip-up-vpn.c | 89 struct ifreq ifr; in main() local 92 memset(&ifr, 0, sizeof(ifr)); in main() 113 ifr.ifr_flags = IFF_UP; in main() 114 strncpy(ifr.ifr_name, interface, IFNAMSIZ); in main() 115 if (ioctl(s, SIOCSIFFLAGS, &ifr)) { in main() 121 if (!set_address(&ifr.ifr_addr, address) || in main() 122 ioctl(s, SIOCSIFADDR, &ifr)) { in main() 128 if (set_address(&ifr.ifr_netmask, env("INTERNAL_NETMASK4"))) { in main() 129 if (ioctl(s, SIOCSIFNETMASK, &ifr)) { in main()
|
/frameworks/base/services/common_time/ |
D | common_time_server.cpp | 428 struct ifreq ifr; in setupSocket_l() local 429 memset(&ifr, 0, sizeof(ifr)); in setupSocket_l() 430 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s", mBindIface.string()); in setupSocket_l() 431 ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = 0; in setupSocket_l() 433 (void *)&ifr, sizeof(ifr)); in setupSocket_l() 436 ifr.ifr_name, errno); in setupSocket_l() 514 struct ifreq ifr; in assignDeviceID() local 515 memset(&ifr, 0, sizeof(ifr)); in assignDeviceID() 516 ifr.ifr_addr.sa_family = AF_INET; in assignDeviceID() 517 strlcpy(ifr.ifr_name, mBindIface.string(), IFNAMSIZ); in assignDeviceID() [all …]
|