Lines Matching refs:brname
123 int linux_br_add(int sock, const char *brname) in linux_br_add() argument
125 if (ioctl(sock, SIOCBRADDBR, brname) < 0) { in linux_br_add()
129 brname, strerror(errno)); in linux_br_add()
138 int linux_br_del(int sock, const char *brname) in linux_br_del() argument
140 if (ioctl(sock, SIOCBRDELBR, brname) < 0) { in linux_br_del()
142 brname, strerror(errno)); in linux_br_del()
150 int linux_br_add_if(int sock, const char *brname, const char *ifname) in linux_br_add_if() argument
160 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); 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
185 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); 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
212 os_strlcpy(brname, pos, IFNAMSIZ); in linux_br_get()