Lines Matching refs:vf
257 struct ng_vlan_filter *vf;
272 if (msg->header.arglen != sizeof(*vf)) {
276 vf = (struct ng_vlan_filter *)msg->data;
279 if (vf->vid == 0 && vf->vid != vf->vlan) {
280 vf->vid = vf->vlan;
281 } else if (vf->vid != 0 && vf->vlan != 0 &&
282 vf->vid != vf->vlan) {
287 if (vf->vid & ~EVL_VLID_MASK ||
288 vf->pcp & ~7 ||
289 vf->cfi & ~1) {
294 hook = ng_findhook(node, vf->hook_name);
311 if (priv->vlan_hook[vf->vid] != NULL) {
318 EVL_MAKETAG(vf->vid, vf->pcp, vf->cfi)));
319 priv->vlan_hook[vf->vid] = hook;
401 vf = &t->filter[0];
417 vf->vlan = i;
419 vf->vid = i;
420 vf->pcp = EVL_PRIOFTAG(hook_data);
421 vf->cfi = EVL_CFIOFTAG(hook_data);
422 strncpy(vf->hook_name,
424 vf ++;