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