Lines Matching refs:ifr
45 struct ifreq ifr; local
52 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ);
53 ifr.ifr_data = (char *)args;
54 xioctl(TT.sockfd, SIOCDEVPRIVATE, &ifr);
60 struct ifreq ifr; in get_br_info() local
65 xstrncpy(ifr.ifr_name, bridge, IFNAMSIZ); in get_br_info()
66 ifr.ifr_data = (char *)args; in get_br_info()
68 if (ioctl(TT.sockfd, SIOCDEVPRIVATE, &ifr) < 0) { in get_br_info()
142 struct ifreq ifr; in br_addif() local
147 ifr.ifr_ifindex = index; in br_addif()
148 xioctl(TT.sockfd, SIOCBRADDIF, &ifr); in br_addif()
151 xstrncpy(ifr.ifr_name, argv[0], IFNAMSIZ); in br_addif()
152 ifr.ifr_data = (char *)args; in br_addif()
153 xioctl(TT.sockfd, SIOCDEVPRIVATE, &ifr); in br_addif()
160 struct ifreq ifr; in br_delif() local
165 ifr.ifr_ifindex = ifindex; in br_delif()
166 xioctl(TT.sockfd, SIOCBRDELIF, &ifr); in br_delif()
169 xstrncpy(ifr.ifr_name, argv[0], IFNAMSIZ); in br_delif()
170 ifr.ifr_data = (char *)args; in br_delif()
171 xioctl(TT.sockfd, SIOCDEVPRIVATE, &ifr); in br_delif()
194 struct ifreq ifr; in set_time() local
197 xstrncpy(ifr.ifr_name, br, IFNAMSIZ); in set_time()
198 ifr.ifr_data = (char *)args; in set_time()
199 xioctl(TT.sockfd, SIOCDEVPRIVATE, &ifr); in set_time()
260 struct ifreq ifr; in set_cost_prio() local
273 xstrncpy(ifr.ifr_name, br, IFNAMSIZ); in set_cost_prio()
274 ifr.ifr_data = (char *)args; in set_cost_prio()
275 xioctl(TT.sockfd, SIOCDEVPRIVATE, &ifr); in set_cost_prio()