Searched refs:zndata (Results 1 – 2 of 2) sorted by relevance
/titanic_50/usr/src/lib/libipadm/common/ |
H A D | ipadm_ngz.c | 349 zone_net_data_t *zndata; in i_ipadm_zone_get_network() local 351 zndata = calloc(1, sizeof (*zndata) + *bufsize); in i_ipadm_zone_get_network() 352 if (zndata == NULL) in i_ipadm_zone_get_network() 354 zndata->zn_type = type; in i_ipadm_zone_get_network() 355 zndata->zn_linkid = linkid; in i_ipadm_zone_get_network() 356 zndata->zn_len = *bufsize; in i_ipadm_zone_get_network() 358 if (zone_getattr(zoneid, ZONE_ATTR_NETWORK, zndata, in i_ipadm_zone_get_network() 359 sizeof (*zndata) + *bufsize) < 0) { in i_ipadm_zone_get_network() 362 *bufsize = zndata->zn_len; in i_ipadm_zone_get_network() 363 bcopy(zndata->zn_val, buf, *bufsize); in i_ipadm_zone_get_network()
|
/titanic_50/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 2580 zone_net_data_t *zndata; in zone_setattr_network() local 2584 znsize = sizeof (*zndata) + bufsize; in zone_setattr_network() 2585 zndata = calloc(1, znsize); in zone_setattr_network() 2586 if (zndata == NULL) in zone_setattr_network() 2588 zndata->zn_type = type; in zone_setattr_network() 2589 zndata->zn_len = bufsize; in zone_setattr_network() 2590 zndata->zn_linkid = linkid; in zone_setattr_network() 2591 bcopy(buf, zndata->zn_val, zndata->zn_len); in zone_setattr_network() 2592 err = zone_setattr(zoneid, ZONE_ATTR_NETWORK, zndata, znsize); in zone_setattr_network() 2593 free(zndata); in zone_setattr_network()
|