Lines Matching refs:res

191 	int res;  in get_if_settings()  local
193 res = set_ifrname_and_do_ioctl(SIOCGIFMTU, &dd->mtu, ifname); in get_if_settings()
194 res |= set_ifrname_and_do_ioctl(SIOCGIFFLAGS, &dd->flags, ifname); in get_if_settings()
195 res |= set_ifrname_and_do_ioctl(SIOCGIFHWADDR, &dd->hwaddr, ifname); in get_if_settings()
197 return res; in get_if_settings()
231 int res = set_if_flags(ifname, flags | IFF_UP); in set_if_up() local
232 if (res) in set_if_up()
234 return res; in set_if_up()
239 int res = set_if_flags(ifname, flags & ~IFF_UP); in set_if_down() local
240 if (res) in set_if_down()
242 return res; in set_if_down()
275 int res; in set_if_addr() local
279 res = set_ifrname_and_do_ioctl(ifra[i].g_ioctl, &ifr, master_ifname); in set_if_addr()
280 if (res < 0) { in set_if_addr()
286 res = set_ifrname_and_do_ioctl(ifra[i].s_ioctl, &ifr, slave_ifname); in set_if_addr()
287 if (res < 0) in set_if_addr()
288 return res; in set_if_addr()
316 int res; in enslave() local
325 res = set_if_down(slave_ifname, slave.flags.ifr_flags); in enslave()
326 if (res) in enslave()
327 return res; in enslave()
333 res = set_if_addr(master_ifname, slave_ifname); in enslave()
334 if (res) { in enslave()
336 return res; in enslave()
339 res = clear_if_addr(slave_ifname); in enslave()
340 if (res) { in enslave()
342 return res; in enslave()
347 res = set_mtu(slave_ifname, master.mtu.ifr_mtu); in enslave()
348 if (res) { in enslave()
350 return res; in enslave()
435 int res = 0; in release() local
452 res = set_if_down(slave_ifname, slave.flags.ifr_flags); in release()
458 return res; in release()
488 int res; in ifenslave_main() local
577 res = 0; in ifenslave_main()
588 res = rv; in ifenslave_main()
595 res = rv; in ifenslave_main()
606 res = rv; in ifenslave_main()
613 res = rv; in ifenslave_main()
622 return res; in ifenslave_main()