Lines Matching defs:attrp

158     dladm_vnic_attr_t *attrp)
175 attrp->va_vnic_id = vnic->vn_vnic_id;
176 attrp->va_link_id = vnic->vn_link_id;
177 attrp->va_mac_addr_type = vnic->vn_mac_addr_type;
178 bcopy(vnic->vn_mac_addr, attrp->va_mac_addr, MAXMACADDRLEN);
179 attrp->va_mac_len = vnic->vn_mac_len;
180 attrp->va_mac_slot = vnic->vn_mac_slot;
181 attrp->va_mac_prefix_len = vnic->vn_mac_prefix_len;
182 attrp->va_vid = vnic->vn_vid;
183 attrp->va_vrid = vnic->vn_vrid;
184 attrp->va_af = vnic->vn_af;
185 attrp->va_force = vnic->vn_force;
193 dladm_vnic_attr_t *attrp)
202 attrp->va_vnic_id = linkid;
214 attrp->va_link_id = DATALINK_INVALID_LINKID;
217 &attrp->va_link_id, NULL, NULL, NULL)) != DLADM_STATUS_OK)
226 if (attrp->va_link_id == DATALINK_INVALID_LINKID) {
230 attrp->va_mac_addr_type = VNIC_MAC_ADDR_TYPE_PRIMARY;
231 attrp->va_mac_len = 0;
238 attrp->va_mac_addr_type = (vnic_mac_addr_type_t)u64;
242 attrp->va_vrid = VRRP_VRID_NONE;
244 attrp->va_vrid = (vrid_t)u64;
249 attrp->va_af = AF_UNSPEC;
251 attrp->va_af = (int)u64;
256 attrp->va_mac_len = ((status == DLADM_STATUS_OK) ?
261 attrp->va_mac_slot = ((status == DLADM_STATUS_OK) ?
266 attrp->va_mac_prefix_len = ((status == DLADM_STATUS_OK) ?
274 status = dladm_vnic_str2macaddr(macstr, attrp->va_mac_addr);
281 attrp->va_vid = ((status == DLADM_STATUS_OK) ? (uint16_t)u64 : 0);
291 dladm_vnic_attr_t *attrp, uint32_t flags)
294 return (i_dladm_vnic_info_active(handle, linkid, attrp));
296 return (i_dladm_vnic_info_persist(handle, linkid, attrp));
664 dladm_vnic_attr_t *attrp, datalink_class_t class)
672 if ((status = dladm_create_conf(handle, name, attrp->va_vnic_id,
676 if (attrp->va_link_id != DATALINK_INVALID_LINKID) {
677 status = dladm_datalink_id2info(handle, attrp->va_link_id, NULL,
688 u64 = attrp->va_mac_addr_type;
694 u64 = attrp->va_vrid;
700 u64 = attrp->va_af;
706 if (attrp->va_mac_len != ETHERADDRL) {
707 u64 = attrp->va_mac_len;
714 if (attrp->va_mac_slot != -1) {
715 u64 = attrp->va_mac_slot;
722 if (attrp->va_mac_prefix_len !=
724 u64 = attrp->va_mac_prefix_len;
731 (void) dladm_vnic_macaddr2str(attrp->va_mac_addr, macstr);
738 if (attrp->va_vid != 0) {
739 u64 = attrp->va_vid;