Lines Matching refs:params
69 static struct vlanreq params = {
118 * Derive params from interface name: "parent.vid".
136 if (params.vlr_tag == NOTAG || params.vlr_tag == vid)
137 params.vlr_tag = vid;
142 if (params.vlr_parent[0] == '\0' || !strcmp(params.vlr_parent, ifname))
143 strlcpy(params.vlr_parent, ifname, IFNAMSIZ);
153 if (params.vlr_tag != NOTAG || params.vlr_parent[0] != '\0') {
157 if (params.vlr_tag == NOTAG)
159 if (params.vlr_parent[0] == '\0')
161 if (params.vlr_proto == NOPROTO)
162 params.vlr_proto = ETHERTYPE_VLAN;
163 ifr->ifr_data = (caddr_t) ¶ms;
171 if ((params.vlr_tag != NOTAG) ^ (params.vlr_parent[0] != '\0'))
178 if (params.vlr_tag != NOTAG && params.vlr_parent[0] != '\0') {
179 if (params.vlr_proto == NOPROTO)
180 params.vlr_proto = ETHERTYPE_VLAN;
181 ifr->ifr_data = (caddr_t) ¶ms;
198 params.vlr_tag = ul;
200 if (params.vlr_tag != ul)
209 if (params.vlr_parent[0] == '\0')
210 strlcpy(params.vlr_parent, vreq.vlr_parent, IFNAMSIZ);
211 if (params.vlr_proto == NOPROTO)
212 params.vlr_proto = vreq.vlr_proto;
224 strlcpy(params.vlr_parent, val, sizeof(params.vlr_parent));
238 params.vlr_proto = ETHERTYPE_VLAN;
241 params.vlr_proto = ETHERTYPE_QINQ;
251 if (params.vlr_parent[0] == '\0')
252 strlcpy(params.vlr_parent, vreq.vlr_parent, IFNAMSIZ);
253 if (params.vlr_tag == NOTAG)
254 params.vlr_tag = vreq.vlr_tag;