Lines Matching refs:ifname

18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up)  in linux_set_iface_flags()  argument
27 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_iface_flags()
32 ifname, strerror(errno)); in linux_set_iface_flags()
50 ifname, dev_up ? "UP" : "DOWN", strerror(errno)); in linux_set_iface_flags()
58 int linux_iface_up(int sock, const char *ifname) in linux_iface_up() argument
67 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_iface_up()
72 ifname, strerror(errno)); in linux_iface_up()
80 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) in linux_get_ifhwaddr() argument
85 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_get_ifhwaddr()
88 ifname, strerror(errno)); in linux_get_ifhwaddr()
94 ifname, ifr.ifr_hwaddr.sa_family); in linux_get_ifhwaddr()
103 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr) in linux_set_ifhwaddr() argument
108 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_ifhwaddr()
114 ifname, strerror(errno)); in linux_set_ifhwaddr()
160 int linux_br_add_if(int sock, const char *brname, const char *ifname) in linux_br_add_if() argument
165 ifindex = if_nametoindex(ifname); in linux_br_add_if()
174 "%s: %s", ifname, brname, strerror(errno)); in linux_br_add_if()
182 int linux_br_del_if(int sock, const char *brname, const char *ifname) in linux_br_del_if() argument
187 ifindex = if_nametoindex(ifname); in linux_br_del_if()
196 "bridge %s: %s", ifname, brname, strerror(errno)); in linux_br_del_if()
204 int linux_br_get(char *brname, const char *ifname) in linux_br_get() argument
210 ifname); in linux_br_get()