Lines Matching defs:bridge

379 	{ "create-bridge",	do_create_bridge,
380 " create-bridge [-R <root-dir>] [-P <protect>] "
383 "\t\t [-f <force-protocol>] [-l <link>]... <bridge>" },
384 { "modify-bridge", do_modify_bridge,
385 " modify-bridge [-R <root-dir>] [-P <protect>] "
388 "\t\t [-f <force-protocol>] <bridge>" },
389 { "delete-bridge", do_delete_bridge,
390 " delete-bridge [-R <root-dir>] <bridge>" },
391 { "add-bridge", do_add_bridge,
392 " add-bridge [-R <root-dir>] -l <link> [-l <link>]... "
393 "<bridge>" },
394 { "remove-bridge", do_remove_bridge,
395 " remove-bridge [-R <root-dir>] -l <link> [-l <link>]... "
396 "<bridge>" },
397 { "show-bridge", do_show_bridge,
398 " show-bridge [-p] [-o <field>,...] [-s [-i <interval>]] "
399 "[<bridge>]\n"
400 " show-bridge -l [-p] [-o <field>,...] [-s [-i <interval>]]"
401 " <bridge>\n"
402 " show-bridge -f [-p] [-o <field>,...] [-s [-i <interval>]]"
403 " <bridge>\n"
404 " show-bridge -t [-p] [-o <field>,...] [-s [-i <interval>]]"
405 " <bridge>\n" },
1202 * structures for 'dladm show-bridge'. These are based on sections 14.8.1.1.3
1267 * structures for 'dladm show-bridge -l'. These are based on 14.4.1.2.3 and
1314 * structures for 'dladm show-bridge -s'. These are not based on IEEE
1348 * structures for 'dladm show-bridge -s -l'. These are based in part on
1386 * structures for 'dladm show-bridge -f'. These are based in part on
1409 * structures for 'dladm show-bridge -t'.
3404 char *all_active_fields = "link,class,mtu,state,bridge,over";
3405 char *all_inactive_fields = "link,class,bridge,over";
7727 const char *bridge;
7822 /* get the bridge name (required last argument) */
7826 bridge = argv[optind];
7827 if (!dladm_valid_bridgename(bridge))
7828 die("invalid bridge name '%s'", bridge);
7837 (void) dladm_bridge_get_properties(bridge, &cfg_old, &brprot_old);
7901 status = dladm_bridge_configure(handle, bridge, &cfg, brprot,
7909 status = dladm_bridge_setlink(handle, linkids[n], bridge);
7916 * We were successful. If we're creating a new bridge, then
7921 (status = dladm_bridge_enable(bridge)) == DLADM_STATUS_OK)
7929 /* if failure for brCreate, then delete the bridge */
7931 (void) dladm_bridge_delete(handle, bridge, flags);
7934 die_dlerr(status, "unable to add link %s to bridge %s",
7935 links[n], bridge);
7937 die_dlerr(status, "unable to enable bridge %s", bridge);
7979 /* get the bridge name (required last argument) */
8023 /* get the bridge name (required last argument) */
8031 char bridge[MAXLINKNAMELEN];
8036 status = dladm_bridge_getlink(handle, linkids[n], bridge,
8037 sizeof (bridge));
8040 die_dlerr(status, "cannot get bridge status on %s",
8044 strcmp(bridge, argv[optind]) != 0)
8045 die("link %s is not on bridge %s", links[n],
8056 "cannot remove link %s from bridge %s",
8061 die("unable to remove any links from bridge %s", argv[optind]);
8100 /* Convert observability node name back to bridge name */
8208 if ((ksp = kstat_lookup(kcp, "bridge", 0, link)) != NULL &&
8249 /* Convert observability node name back to bridge name */
8260 * This structure carries around extra state information for the show-bridge
8266 const char *bridge;
8368 char bridge[MAXLINKNAMELEN];
8419 if ((status = dladm_bridge_getlink(handle, linkid, bridge,
8420 sizeof (bridge))) != DLADM_STATUS_OK)
8422 (void) snprintf(kstatname, sizeof (kstatname), "%s0-%s", bridge,
8428 if ((ksp = kstat_lookup(kcp, "bridge", 0, kstatname)) != NULL &&
8485 char bridge[MAXLINKNAMELEN];
8487 if (dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge)) ==
8488 DLADM_STATUS_OK && strcmp(bridge, brstate->bridge) == 0) {
8562 /* default: bridge-related data */
8563 char *all_fields = "bridge,protect,address,priority,bmaxage,"
8566 char *default_fields = "bridge,protect,address,priority,"
8568 char *all_statfields = "bridge,drops,forwards,mbcast,"
8570 char *default_statfields = "bridge,drops,forwards,mbcast,"
8579 /* -f: bridge forwarding table related data */
8642 /* get the bridge name (optional last argument) */
8648 brstate.bridge = argv[optind];
8649 (void) snprintf(lname, sizeof (lname), "%s0", brstate.bridge);
8652 die_dlerr(status, "bridge %s is not valid",
8653 brstate.bridge);
8657 die("%s is not a bridge", brstate.bridge);
8661 "bridge %s is temporarily removed", brstate.bridge);
8666 die("bridge name required for -l, -f, or -t");
8734 "failed to show bridge %s",
8735 brstate.bridge);
8744 dlp = dladm_bridge_get_portlist(brstate.bridge,
8751 /* bridge not running; iterate on libdladm */
8759 die("unable to get port list for bridge %s: %s",
8760 brstate.bridge, strerror(errno));
8769 blf = dladm_bridge_get_fwdtable(handle, brstate.bridge,
8773 "bridge %s", brstate.bridge);
8787 tln = dladm_bridge_get_trillnick(brstate.bridge,
8791 die("bridge %s is not running TRILL",
8792 brstate.bridge);
8795 "entries for bridge %s",
8796 brstate.bridge);