Lines Matching refs:request
32 struct vlan_ioctl_args request; in vconfig_main() local
37 memset(&request, 0, sizeof(struct vlan_ioctl_args)); in vconfig_main()
51 request.u.name_type = i; in vconfig_main()
52 request.cmd = SET_VLAN_NAME_TYPE_CMD; in vconfig_main()
53 xioctl(fd, SIOCSIFVLAN, &request); in vconfig_main()
58 xstrncpy(request.device1, toys.optargs[1], 16); in vconfig_main()
61 request.cmd = ADD_VLAN_CMD; in vconfig_main()
62 if (toys.optargs[2]) request.u.VID = atolx_range(toys.optargs[2], 0, 4094); in vconfig_main()
63 if (request.u.VID == 1) in vconfig_main()
65 } else if (!strcmp(cmd, "rem")) request.cmd = DEL_VLAN_CMD; in vconfig_main()
67 request.cmd = SET_VLAN_FLAG_CMD; in vconfig_main()
68 if (toys.optargs[2]) request.u.flag = atolx_range(toys.optargs[2], 0, 1); in vconfig_main()
69 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7); in vconfig_main()
71 request.cmd = SET_VLAN_EGRESS_PRIORITY_CMD; in vconfig_main()
73 request.u.skb_priority = atolx_range(toys.optargs[2], 0, INT_MAX); in vconfig_main()
74 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7); in vconfig_main()
76 request.cmd = SET_VLAN_INGRESS_PRIORITY_CMD; in vconfig_main()
78 request.u.skb_priority = atolx_range(toys.optargs[2], 0, INT_MAX); in vconfig_main()
80 if (toys.optargs[3]) request.vlan_qos = atolx_range(toys.optargs[3], 0, 7); in vconfig_main()
86 xioctl(fd, SIOCSIFVLAN, &request); in vconfig_main()