Searched defs:ifr (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/cmds/ip-up-vpn/
H A Dip-up-vpn.c89 struct ifreq ifr; local
92 memset(&ifr, 0, sizeof(ifr));
113 ifr.ifr_flags = IFF_UP;
114 strncpy(ifr.ifr_name, interface, IFNAMSIZ);
115 if (ioctl(s, SIOCSIFFLAGS, &ifr)) {
121 if (!set_address(&ifr.ifr_addr, address) ||
122 ioctl(s, SIOCSIFADDR, &ifr)) {
128 if (set_address(&ifr.ifr_netmask, env("INTERNAL_NETMASK4"))) {
129 if (ioctl(s, SIOCSIFNETMASK, &ifr)) {
[all...]
/frameworks/base/services/common_time/
H A Dcommon_time_server.cpp443 struct ifreq ifr; local
444 memset(&ifr, 0, sizeof(ifr));
445 snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s", mBindIface.string());
446 ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = 0;
448 (void *)&ifr, sizeof(ifr));
452 "(errno = %d)", ifr
544 struct ifreq ifr; local
[all...]

Completed in 6 milliseconds