2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A/* New simnet instance creation */ 2N/A/* Modify existing simnet instance */ 2N/A/* Delete simnet instance */ 2N/A/* Retrieve simnet instance information */ 2N/A/* Retrieve simnet configuratin */ 2N/A /* Peer field is optional and only set when peer is attached */ 2N/A/* Update existing simnet configuration */ 2N/A /* First clear previous peer if any in configuration */ 2N/A/* Modify attached simnet peer */ 2N/A /* Check to ensure the peer link has identical flags */ 2N/A /* Retrieve previous attrs before modification */ 2N/A /* First we clear link's existing peer field in config */ 2N/A /* Clear the previous peer link's existing peer field in config */ 2N/A /* Update the configuration in both simnets with any new peer link */ 2N/A /* Check current simnet attributes before deletion */ 2N/A /* Update any attached peer configuration */ 2N/A/* Retrieve simnet information either active or from configuration */ 2N/A * If no active simnet found then return any simnet 2N/A * from stored config if requested. 2N/A/* Bring up simnet from stored configuration */ 2N/A * When bringing up check if the peer link is available, if it 2N/A * is then modify the simnet and attach the peer link. 2N/A/* Bring up simnet instance(s) from configuration */ 2N/A/* Bring down a simnet. Persistent configuration is not changed. */ 2N/A * Bring down simnet instance(s). Persistent configuration and linkid mapping 2N/A * in dlmgmtd is not removed. Downed simnet instance(s) can be brought up 2N/A * with dladm_simnet_up(). 2N/A/* Store simnet configuration */