Lines Matching refs:ifname

19 int linux_set_iface_flags(int sock, const char *ifname, int dev_up)  in linux_set_iface_flags()  argument
28 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_iface_flags()
33 ifname, strerror(errno)); in linux_set_iface_flags()
51 ifname, dev_up ? "UP" : "DOWN", strerror(errno)); in linux_set_iface_flags()
59 int linux_iface_up(int sock, const char *ifname) in linux_iface_up() argument
68 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_iface_up()
73 ifname, strerror(errno)); in linux_iface_up()
81 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) in linux_get_ifhwaddr() argument
86 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_get_ifhwaddr()
89 ifname, strerror(errno)); in linux_get_ifhwaddr()
95 ifname, ifr.ifr_hwaddr.sa_family); in linux_get_ifhwaddr()
104 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr) in linux_set_ifhwaddr() argument
109 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_ifhwaddr()
115 ifname, strerror(errno)); in linux_set_ifhwaddr()
150 int linux_br_add_if(int sock, const char *brname, const char *ifname) in linux_br_add_if() argument
155 ifindex = if_nametoindex(ifname); in linux_br_add_if()
166 "%s: %s", ifname, brname, strerror(errno)); in linux_br_add_if()
175 int linux_br_del_if(int sock, const char *brname, const char *ifname) in linux_br_del_if() argument
180 ifindex = if_nametoindex(ifname); in linux_br_del_if()
189 "bridge %s: %s", ifname, brname, strerror(errno)); in linux_br_del_if()
197 int linux_br_get(char *brname, const char *ifname) in linux_br_get() argument
203 ifname); in linux_br_get()
217 int linux_master_get(char *master_ifname, const char *ifname) in linux_master_get() argument
223 os_snprintf(buf, sizeof(buf), "/sys/class/net/%s/master", ifname); in linux_master_get()