Lines Matching refs:vinfo
37 struct bridge_vlan_info vinfo;
40 memset(&vinfo, 0, sizeof(vinfo));
61 vinfo.flags |= BRIDGE_VLAN_INFO_RANGE_BEGIN;
70 vinfo.flags |= BRIDGE_VLAN_INFO_PVID;
72 vinfo.flags |= BRIDGE_VLAN_INFO_UNTAGGED;
97 if (vinfo.flags & BRIDGE_VLAN_INFO_RANGE_BEGIN) {
103 if (vinfo.flags & BRIDGE_VLAN_INFO_PVID) {
115 vinfo.vid = vid;
118 addattr_l(&req.n, sizeof(req), IFLA_BRIDGE_VLAN_INFO, &vinfo,
119 sizeof(vinfo));
120 vinfo.flags &= ~BRIDGE_VLAN_INFO_RANGE_BEGIN;
123 vinfo.flags |= BRIDGE_VLAN_INFO_RANGE_END;
124 vinfo.vid = vid_end;
125 addattr_l(&req.n, sizeof(req), IFLA_BRIDGE_VLAN_INFO, &vinfo,
126 sizeof(vinfo));
128 addattr_l(&req.n, sizeof(req), IFLA_BRIDGE_VLAN_INFO, &vinfo,
129 sizeof(vinfo));
179 struct bridge_vlan_info *vinfo;
184 vinfo = RTA_DATA(i);
185 if (vinfo->flags & BRIDGE_VLAN_INFO_RANGE_END)
186 fprintf(fp, "-%hu", vinfo->vid);
188 fprintf(fp, "\t %hu", vinfo->vid);
189 if (vinfo->flags & BRIDGE_VLAN_INFO_RANGE_BEGIN)
191 if (vinfo->flags & BRIDGE_VLAN_INFO_PVID)
193 if (vinfo->flags & BRIDGE_VLAN_INFO_UNTAGGED)