Lines Matching defs:linkid

272     datalink_id_t linkid, void **bufp, size_t inlen, size_t *buflenp,
293 bdc->bdc_linkid = linkid;
364 port_door_call(dladm_handle_t handle, datalink_id_t linkid,
370 status = dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge));
373 return (bridge_door_call(bridge, dtype, linkid, &buf, inlen, &buflen,
730 datalink_id_t linkid)
735 status = dladm_create_conf(handle, link, linkid, DATALINK_CLASS_BRIDGE,
742 status = dladm_write_conf(handle, conf, linkid);
979 datalink_id_t linkid = DATALINK_INVALID_LINKID;
998 flags & (DLADM_OPT_ACTIVE | DLADM_OPT_PERSIST), &linkid);
1004 linkid) != DLADM_STATUS_OK))
1119 * Remove the bridge linkid if we've allocated one in this function but
1123 if (status != DLADM_STATUS_OK && linkid != DATALINK_INVALID_LINKID) {
1124 (void) dladm_remove_conf(handle, linkid);
1125 (void) dladm_destroy_datalink_id(handle, linkid, flags);
1148 dladm_bridge_setlink(dladm_handle_t handle, datalink_id_t linkid,
1160 status = dladm_open_conf(handle, linkid, &conf);
1193 status = dladm_write_conf(handle, conf, linkid);
1206 * Get the name of the bridge of which the given linkid is a member.
1209 dladm_bridge_getlink(dladm_handle_t handle, datalink_id_t linkid, char *bridge,
1215 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
1229 dladm_bridge_refresh(dladm_handle_t handle, datalink_id_t linkid)
1234 status = dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge));
1248 i_dladm_bridge_is_held(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1255 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
1276 datalink_id_t linkid;
1286 if (dladm_name2info(handle, linkname, &linkid, NULL, NULL, NULL) !=
1288 linkid = DATALINK_INVALID_LINKID;
1289 else if (dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
1291 linkid = DATALINK_INVALID_LINKID;
1295 if ((flags & DLADM_OPT_ACTIVE) && linkid == DATALINK_INVALID_LINKID)
1328 (void) dladm_set_linkprop(handle, linkid, NULL, NULL, 0,
1330 (void) dladm_destroy_datalink_id(handle, linkid,
1335 (void) dladm_remove_conf(handle, linkid);
1336 (void) dladm_destroy_datalink_id(handle, linkid,
1461 dladm_bridge_get_port_cfg(dladm_handle_t handle, datalink_id_t linkid,
1467 status = port_door_call(handle, linkid, bdcPortGetConfig, &portcfg,
1497 dladm_bridge_link_state(dladm_handle_t handle, datalink_id_t linkid,
1500 return (port_door_call(handle, linkid, bdcPortGetState, spsp, 0,
1506 dladm_bridge_get_forwarding(dladm_handle_t handle, datalink_id_t linkid,
1512 status = port_door_call(handle, linkid, bdcPortGetForwarding, twoints,
1689 * Get the bridge name from the given linkid. Replace the final 0 in the link
1693 i_dladm_bridge_name_from_linkid(dladm_handle_t handle, datalink_id_t linkid,
1698 status = dladm_datalink_id2info(handle, linkid, NULL, NULL, NULL,
1711 i_dladm_bridge_up(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1725 if ((status = i_dladm_bridge_name_from_linkid(handle, linkid, bridge,
1730 if ((status = dladm_open_conf(handle, linkid, &conf))
1803 * passing that flag also tries to create a new linkid. Since we
1835 if ((status = dladm_write_conf(handle, conf, linkid))
1850 dladm_bridge_up(dladm_handle_t handle, datalink_id_t linkid)
1854 if (linkid == DATALINK_ALL_LINKID) {
1859 (void) i_dladm_bridge_up(handle, linkid, &status);
1870 i_dladm_bridge_down(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1883 if ((status = i_dladm_bridge_name_from_linkid(handle, linkid, bridge,
1900 if ((status = dladm_open_conf(handle, linkid, &conf))
1949 if ((status = dladm_write_conf(handle, conf, linkid))
1961 (void) dladm_destroy_datalink_id(handle, linkid, DLADM_OPT_ACTIVE);
1972 * linkid mapping in dlmgmtd is not removed. Downed bridge(s) can be brought
1976 dladm_bridge_down(dladm_handle_t handle, datalink_id_t linkid)
1980 if (linkid == DATALINK_ALL_LINKID) {
1985 (void) i_dladm_bridge_down(handle, linkid, &status);