• Home
  • Raw
  • Download

Lines Matching refs:vinfo

47 	struct bridge_vlan_info vinfo = {};  in vlan_modify()  local
64 vinfo.flags |= BRIDGE_VLAN_INFO_RANGE_BEGIN; in vlan_modify()
73 vinfo.flags |= BRIDGE_VLAN_INFO_PVID; in vlan_modify()
75 vinfo.flags |= BRIDGE_VLAN_INFO_UNTAGGED; in vlan_modify()
99 if (vinfo.flags & BRIDGE_VLAN_INFO_RANGE_BEGIN) { in vlan_modify()
105 if (vinfo.flags & BRIDGE_VLAN_INFO_PVID) { in vlan_modify()
117 vinfo.vid = vid; in vlan_modify()
120 addattr_l(&req.n, sizeof(req), IFLA_BRIDGE_VLAN_INFO, &vinfo, in vlan_modify()
121 sizeof(vinfo)); in vlan_modify()
122 vinfo.flags &= ~BRIDGE_VLAN_INFO_RANGE_BEGIN; in vlan_modify()
125 vinfo.flags |= BRIDGE_VLAN_INFO_RANGE_END; in vlan_modify()
126 vinfo.vid = vid_end; in vlan_modify()
127 addattr_l(&req.n, sizeof(req), IFLA_BRIDGE_VLAN_INFO, &vinfo, in vlan_modify()
128 sizeof(vinfo)); in vlan_modify()
130 addattr_l(&req.n, sizeof(req), IFLA_BRIDGE_VLAN_INFO, &vinfo, in vlan_modify()
131 sizeof(vinfo)); in vlan_modify()
149 static int filter_vlan_check(struct bridge_vlan_info *vinfo) in filter_vlan_check() argument
152 if (filter_vlan && vinfo->vid > filter_vlan && in filter_vlan_check()
153 !(vinfo->flags & BRIDGE_VLAN_INFO_RANGE_END)) in filter_vlan_check()
155 if ((vinfo->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN) || in filter_vlan_check()
156 vinfo->vid < filter_vlan) in filter_vlan_check()
416 struct bridge_vlan_info *vinfo; in print_vlan_info() local
422 vinfo = RTA_DATA(i); in print_vlan_info()
424 if (!(vinfo->flags & BRIDGE_VLAN_INFO_RANGE_END)) in print_vlan_info()
425 last_vid_start = vinfo->vid; in print_vlan_info()
426 vcheck_ret = filter_vlan_check(vinfo); in print_vlan_info()
438 if (vinfo->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN) in print_vlan_info()
443 if (last_vid_start != vinfo->vid) { in print_vlan_info()
446 vinfo->vid); in print_vlan_info()
448 fprintf(fp, "-%hu", vinfo->vid); in print_vlan_info()
450 if (vinfo->flags & BRIDGE_VLAN_INFO_PVID) { in print_vlan_info()
458 if (vinfo->flags & BRIDGE_VLAN_INFO_UNTAGGED) { in print_vlan_info()