Lines Matching refs:request
32 struct vlan_ioctl_args request;
36 memset(&request, 0, sizeof(struct vlan_ioctl_args));
49 request.u.name_type = i;
50 request.cmd = SET_VLAN_NAME_TYPE_CMD;
51 xioctl(fd, SIOCSIFVLAN, &request);
57 xstrncpy(request.device1, toys.optargs[1], sizeof(request.device1));
60 request.cmd = ADD_VLAN_CMD;
61 if (toys.optargs[2]) request.u.VID = atolx_range(toys.optargs[2], 0, 4094);
62 if (request.u.VID == 1)
64 } else if (!strcmp(cmd, "rem")) request.cmd = DEL_VLAN_CMD;
66 request.cmd = SET_VLAN_FLAG_CMD;
67 if (toys.optargs[2]) request.u.flag = atolx_range(toys.optargs[2], 0, 1);
68 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7);
70 request.cmd = SET_VLAN_EGRESS_PRIORITY_CMD;
72 request.u.skb_priority = atolx_range(toys.optargs[2], 0, INT_MAX);
73 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7);
75 request.cmd = SET_VLAN_INGRESS_PRIORITY_CMD;
77 request.u.skb_priority = atolx_range(toys.optargs[2], 0, INT_MAX);
79 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7);
85 xioctl(fd, SIOCSIFVLAN, &request);