Lines Matching defs:bridge

377 	{ "create-bridge",	do_create_bridge,
378 " create-bridge [-R <root-dir>] [-P <protect>] "
381 "\t\t [-f <force-protocol>] [-l <link>]... <bridge>" },
382 { "modify-bridge", do_modify_bridge,
383 " modify-bridge [-R <root-dir>] [-P <protect>] "
386 "\t\t [-f <force-protocol>] <bridge>" },
387 { "delete-bridge", do_delete_bridge,
388 " delete-bridge [-R <root-dir>] <bridge>" },
389 { "add-bridge", do_add_bridge,
390 " add-bridge [-R <root-dir>] -l <link> [-l <link>]... "
391 "<bridge>" },
392 { "remove-bridge", do_remove_bridge,
393 " remove-bridge [-R <root-dir>] -l <link> [-l <link>]... "
394 "<bridge>" },
395 { "show-bridge", do_show_bridge,
396 " show-bridge [-p] [-o <field>,...] [-s [-i <interval>]] "
397 "[<bridge>]\n"
398 " show-bridge -l [-p] [-o <field>,...] [-s [-i <interval>]]"
399 " <bridge>\n"
400 " show-bridge -f [-p] [-o <field>,...] [-s [-i <interval>]]"
401 " <bridge>\n"
402 " show-bridge -t [-p] [-o <field>,...] [-s [-i <interval>]]"
403 " <bridge>\n" },
1200 * structures for 'dladm show-bridge'. These are based on sections 14.8.1.1.3
1265 * structures for 'dladm show-bridge -l'. These are based on 14.4.1.2.3 and
1312 * structures for 'dladm show-bridge -s'. These are not based on IEEE
1346 * structures for 'dladm show-bridge -s -l'. These are based in part on
1384 * structures for 'dladm show-bridge -f'. These are based in part on
1407 * structures for 'dladm show-bridge -t'.
3402 char *all_active_fields = "link,class,mtu,state,bridge,over";
3403 char *all_inactive_fields = "link,class,bridge,over";
7722 const char *bridge;
7817 /* get the bridge name (required last argument) */
7821 bridge = argv[optind];
7822 if (!dladm_valid_bridgename(bridge))
7823 die("invalid bridge name '%s'", bridge);
7832 (void) dladm_bridge_get_properties(bridge, &cfg_old, &brprot_old);
7896 status = dladm_bridge_configure(handle, bridge, &cfg, brprot,
7904 status = dladm_bridge_setlink(handle, linkids[n], bridge);
7911 * We were successful. If we're creating a new bridge, then
7916 (status = dladm_bridge_enable(bridge)) == DLADM_STATUS_OK)
7924 /* if failure for brCreate, then delete the bridge */
7926 (void) dladm_bridge_delete(handle, bridge, flags);
7929 die_dlerr(status, "unable to add link %s to bridge %s",
7930 links[n], bridge);
7932 die_dlerr(status, "unable to enable bridge %s", bridge);
7974 /* get the bridge name (required last argument) */
8018 /* get the bridge name (required last argument) */
8026 char bridge[MAXLINKNAMELEN];
8031 status = dladm_bridge_getlink(handle, linkids[n], bridge,
8032 sizeof (bridge));
8035 die_dlerr(status, "cannot get bridge status on %s",
8039 strcmp(bridge, argv[optind]) != 0)
8040 die("link %s is not on bridge %s", links[n],
8051 "cannot remove link %s from bridge %s",
8056 die("unable to remove any links from bridge %s", argv[optind]);
8095 /* Convert observability node name back to bridge name */
8203 if ((ksp = kstat_lookup(kcp, "bridge", 0, link)) != NULL &&
8244 /* Convert observability node name back to bridge name */
8255 * This structure carries around extra state information for the show-bridge
8261 const char *bridge;
8363 char bridge[MAXLINKNAMELEN];
8414 if ((status = dladm_bridge_getlink(handle, linkid, bridge,
8415 sizeof (bridge))) != DLADM_STATUS_OK)
8417 (void) snprintf(kstatname, sizeof (kstatname), "%s0-%s", bridge,
8423 if ((ksp = kstat_lookup(kcp, "bridge", 0, kstatname)) != NULL &&
8480 char bridge[MAXLINKNAMELEN];
8482 if (dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge)) ==
8483 DLADM_STATUS_OK && strcmp(bridge, brstate->bridge) == 0) {
8557 /* default: bridge-related data */
8558 char *all_fields = "bridge,protect,address,priority,bmaxage,"
8561 char *default_fields = "bridge,protect,address,priority,"
8563 char *all_statfields = "bridge,drops,forwards,mbcast,"
8565 char *default_statfields = "bridge,drops,forwards,mbcast,"
8574 /* -f: bridge forwarding table related data */
8637 /* get the bridge name (optional last argument) */
8643 brstate.bridge = argv[optind];
8644 (void) snprintf(lname, sizeof (lname), "%s0", brstate.bridge);
8647 die_dlerr(status, "bridge %s is not valid",
8648 brstate.bridge);
8652 die("%s is not a bridge", brstate.bridge);
8656 "bridge %s is temporarily removed", brstate.bridge);
8661 die("bridge name required for -l, -f, or -t");
8729 "failed to show bridge %s",
8730 brstate.bridge);
8739 dlp = dladm_bridge_get_portlist(brstate.bridge,
8746 /* bridge not running; iterate on libdladm */
8754 die("unable to get port list for bridge %s: %s",
8755 brstate.bridge, strerror(errno));
8764 blf = dladm_bridge_get_fwdtable(handle, brstate.bridge,
8768 "bridge %s", brstate.bridge);
8782 tln = dladm_bridge_get_trillnick(brstate.bridge,
8786 die("bridge %s is not running TRILL",
8787 brstate.bridge);
8790 "entries for bridge %s",
8791 brstate.bridge);