Lines Matching refs:ifr
113 struct vlan_ioctl_args ifr;
125 memset(&ifr, 0, sizeof(ifr));
129 ifr.cmd = *p;
134 if (ifr.cmd == SET_VLAN_NAME_TYPE_CMD) { /* set_name_type */
135 ifr.u.name_type = *xfind_str(name_types+1, argv[1]);
137 strncpy_IFNAMSIZ(ifr.device1, argv[1]);
141 * since ifr.u.flag, ifr.u.VID, and ifr.u.skb_priority are all same-sized
145 if (ifr.cmd == SET_VLAN_FLAG_CMD) { /* set_flag */
146 ifr.u.flag = xatoul_range(p, 0, 1);
148 ifr.vlan_qos = xatoul_range(argv[3], 0, 7);
149 } else if (ifr.cmd == ADD_VLAN_CMD) { /* add */
150 ifr.u.VID = xatoul_range(p, 0, VLAN_GROUP_ARRAY_LEN-1);
151 } else if (ifr.cmd != DEL_VLAN_CMD) { /* set_{egress|ingress}_map */
152 ifr.u.skb_priority = xatou(p);
153 ifr.vlan_qos = xatoul_range(argv[3], 0, 7);
158 ioctl_or_perror_and_die(fd, SIOCSIFVLAN, &ifr,