Lines Matching refs:dip
2140 dld_ioc_macprop_t *dip;
2184 dip = i_dladm_buf_alloc_by_name(0, linkid, "etsbat", 0, &status);
2185 if (dip == NULL)
2187 (void) memcpy(dip->pr_val, (void *)mdp, sizeof (mac_dcb_ets_props_t));
2189 status = i_dladm_macprop(handle, dip, B_TRUE);
2191 free(dip);
2773 dld_ioc_macprop_t *dip;
2781 if ((dip = i_dladm_buf_alloc_by_name(sz, linkid, pdp->pd_name, flags,
2785 status = i_dladm_macprop(handle, dip, B_FALSE);
2789 rangep = (mac_propval_range_t *)(void *)&dip->pr_val;
2817 free(dip);
2979 dld_ioc_macprop_t *dip;
2983 dip = i_dladm_buf_alloc_by_name(0, linkid, "resource",
2986 if (dip == NULL)
3002 (void) memcpy(dip->pr_val, &mrp, dip->pr_valsize);
3004 dip->pr_flags |= DLD_PROP_EFFECTIVE;
3005 status = i_dladm_macprop(handle, dip, B_TRUE);
3008 free(dip);
4371 dld_ioc_macprop_t *dip;
4375 dip = malloc(dsize);
4376 if (dip == NULL) {
4380 bzero(dip, dsize);
4381 dip->pr_valsize = valsize;
4382 (void) strlcpy(dip->pr_name, prop_name, sizeof (dip->pr_name));
4383 dip->pr_linkid = linkid;
4384 dip->pr_num = propid;
4385 dip->pr_flags = flags;
4386 return (dip);
4419 dld_ioc_macprop_t *dip;
4426 dip = i_dladm_buf_alloc_by_name(0, linkid, pdp->pd_name, 0, &status);
4427 if (dip == NULL)
4437 switch (dip->pr_valsize) {
4457 (void) memcpy(dip->pr_val, val, dip->pr_valsize);
4459 dip->pr_valsize = 0;
4461 status = i_dladm_macprop(handle, dip, B_TRUE);
4464 free(dip);
4469 i_dladm_macprop(dladm_handle_t handle, void *dip, boolean_t set)
4475 (set ? DLDIOC_SETMACPROP : DLDIOC_GETMACPROP), dip))
4485 dld_ioc_macprop_t *dip;
4488 dip = i_dladm_buf_alloc_by_name(0, linkid, prop_name, flags, &status);
4489 if (dip == NULL)
4492 status = i_dladm_macprop(handle, dip, B_FALSE);
4494 free(dip);
4499 *perm_flags = dip->pr_perm_flags;
4502 (void) memcpy(arg, dip->pr_val, size);
4503 free(dip);
4758 dld_ioc_macprop_t *dip;
4773 if ((dip = i_dladm_buf_alloc_by_name(sz, linkid, pdp->pd_name, flags,
4777 rangep = (mac_propval_range_t *)(void *)&dip->pr_val;
4780 status = i_dladm_macprop(handle, dip, B_FALSE);
4787 free(dip);
4793 free(dip);
4827 free(dip);
5146 dld_ioc_macprop_t *dip = NULL;
5176 dip = i_dladm_buf_alloc_by_name(bufsize + 1, linkid, prop_name,
5178 if (dip == NULL)
5181 dp = (uchar_t *)dip->pr_val;
5185 status = i_dladm_macprop(handle, dip, B_FALSE);
5186 dip->pr_flags = 0;
5203 status = i_dladm_macprop(handle, dip, B_TRUE);
5205 free(dip);
5215 dld_ioc_macprop_t *dip = NULL;
5229 dip = i_dladm_buf_alloc_by_name(DLADM_PROP_BUF_CHUNK, linkid, prop_name,
5231 if (dip == NULL)
5234 if ((status = i_dladm_macprop(handle, dip, B_FALSE)) ==
5237 (void) dladm_perm2str(dip->pr_perm_flags, *prop_val);
5241 (void) strncpy(*prop_val, dip->pr_val,
5249 free(dip);
5476 dld_ioc_macprop_t *dip;
5483 dip = i_dladm_buf_alloc_by_id(sizeof (uint16_t), linkid, MAC_PROP_PVID,
5485 if (dip == NULL)
5487 status = i_dladm_macprop(handle, dip, B_FALSE);
5489 (void) memcpy(&pvid, dip->pr_val, sizeof (pvid));
5494 free(dip);
5504 dld_ioc_macprop_t *dip;
5507 dip = i_dladm_buf_alloc_by_id(sizeof (uint16_t), linkid, MAC_PROP_PVID,
5509 if (dip == NULL)
5512 (void) memcpy(dip->pr_val, &pvid, sizeof (pvid));
5513 status = i_dladm_macprop(handle, dip, B_TRUE);
5514 free(dip);
5554 dld_ioc_macprop_t *dip;
5557 dip = i_dladm_buf_alloc_by_id(sizeof (mac_vlan_announce_t),
5559 if (dip == NULL)
5562 (void) memcpy(dip->pr_val, &announce_type, sizeof (announce_type));
5563 status = i_dladm_macprop(handle, dip, B_TRUE);
5564 free(dip);
5579 dld_ioc_macprop_t *dip;
5586 dip = i_dladm_buf_alloc_by_id(sizeof (mac_vlan_announce_t), linkid,
5588 if (dip == NULL)
5590 status = i_dladm_macprop(handle, dip, B_FALSE);
5592 (void) memcpy(&announce_type, dip->pr_val,
5601 free(dip);
5613 dld_ioc_macprop_t *dip;
5630 dip = i_dladm_buf_alloc_by_id(len, linkid, cmd, 0, &status);
5631 if (dip == NULL)
5634 dp = (uchar_t *)dip->pr_val;
5638 status = i_dladm_macprop(handle, dip, set);
5644 free(dip);