Lines Matching refs:link

269 	{ "rename-link",	do_rename_link,
270 " rename-link <oldlink> <newlink>" },
271 { "show-link", do_show_link,
272 " show-link [-pP] [-o <field>,..] [-s [-i <interval>]] "
273 "[<link>]\n" },
277 "\t\t -l <link> [-l <link>...] <link>" },
279 " delete-aggr [-t] <link>" },
281 " add-aggr [-t] -l <link> [-l <link>...] <link>" },
283 " remove-aggr [-t] -l <link> [-l <link>...] <link>" },
287 "\t\t <link>" },
290 "[<link>]\n" },
293 " scan-wifi [-p] [-o <field>,...] [<link>]" },
299 "\t\t [<link>]" },
301 " disconnect-wifi [-a] [<link>]" },
303 " show-wifi [-p] [-o <field>,...] [<link>]\n" },
312 " show-ether [-px][-o <field>,...] <link>\n" },
322 " create-vlan [-ft] -l <link> -v <vid> [link]" },
324 " delete-vlan [-t] <link>" },
326 " show-vlan [-pP] [-o <field>,..] [<link>]\n" },
330 "[-a {local|remote}=<addr>,...] <link>]" },
332 " delete-iptun [-t] <link>" },
334 " modify-iptun [-t] -a {local|remote}=<addr>,... <link>" },
336 " show-iptun [-pP] [-o <field>,..] [<link>]\n" },
340 " delete-phys <link>" },
343 "[<link>]\n" },
347 " create-vnic [-t] -l <link> [-m <value> | auto |\n"
350 "\t\t [-p <prop>=<value>[,...]] <vnic-link>" },
352 " delete-vnic [-t] <vnic-link>" },
354 " show-vnic [-pP] [-l <link>] [-s [-i <interval>]] "
355 "[<link>]\n" },
358 " create-part [-t] [-f] -l <link> [-P <pkey>]\n"
359 "\t\t [-R <root-dir>] <part-link>" },
361 " delete-part [-t] [-R <root-dir>] <part-link>"},
364 "\t\t [<part-link>]" },
366 " show-ib [-p] [-o <field>,...] [<link>]\n" },
369 " create-etherstub [-t] <link>" },
371 " delete-etherstub [-t] <link>" },
373 " show-etherstub [-t] [<link>]\n" },
383 "\t\t [-f <force-protocol>] [-l <link>]... <bridge>" },
392 " add-bridge [-R <root-dir>] -l <link> [-l <link>]... "
395 " remove-bridge [-R <root-dir>] -l <link> [-l <link>]... "
409 "\t\t [-e <DD/MM/YYYY,HH:MM:SS>] -f <logfile> [<link>]" }
422 {"link", required_argument, 0, 'l'},
527 {"link", required_argument, 0, 'l' },
537 {"link", required_argument, 0, 'l' },
571 { "link", required_argument, 0, 'l' },
580 { "link", no_argument, 0, 'l' },
635 * structures for 'dladm show-link -s' (print statistics)
664 * buffer used by print functions for show-{link,phys,vlan} commands.
683 * structures for 'dladm show-link'
927 "link,essid,bssid,sec,strength,mode,speed,bsstype";
929 "link,status,essid,sec,strength,mode,speed,auth,bssid,bsstype";
931 "link,essid,bssid,sec,strength,mode,speed";
933 "link,status,essid,sec,strength,mode,speed";
1144 * structures for 'dladm show-usage link'
1680 "link,start,end,rbytes,obytes,bandwidth";
1734 die("invalid link: '%s'", resource);
1774 /* Print time and information for each link */
1845 * Ended with digit, possibly a link name.
1902 die("link name too long '%s'", argv[optind]);
1906 die("invalid link name '%s'", argv[optind]);
1925 die_dlerr(status, "invalid link name '%s'", links[n]);
1962 die("not all links have link up/down detection; must "
2113 die_dlerr(status, "invalid <link> '%s'", links[n]);
2125 die("add operation failed: link capabilities don't "
2128 die("not all links have link up/down detection; must "
2203 die_dlerr(status, "invalid <link> '%s'", links[n]);
2338 char *link = NULL;
2367 if (link != NULL)
2370 link = optarg;
2394 if ((vid == 0) || (link == NULL) || (argc - optind > 1))
2403 if ((dlpi_parselink(link, drv, &ppa) != DLPI_SUCCESS) ||
2407 die("invalid link name '%s'", link);
2414 if (dladm_name2info(handle, link, &dev_linkid, NULL, NULL, NULL) !=
2416 die("invalid link name '%s'", link);
2431 "dladm(1M))", link);
2436 "(see dladm(1M))", link);
2468 /* get VLAN link name (required last argument) */
2534 /* get link name (required the last argument) */
2783 char link[MAXLINKNAMELEN];
2790 NULL, link, sizeof (link))) != DLADM_STATUS_OK) {
2816 * This is a physical link that does not have
2843 "%s", link);
2848 (void) get_linkstate(link, B_TRUE, lbuf->link_state);
2865 * first get all the link attributes into lbuf;
2912 char link[DLPI_LINKNAME_MAX];
2927 if (dladm_datalink_id2info(dh, linkid, NULL, &class, NULL, link,
2940 get_link_stats(link, &stats);
2942 get_link_stats(link, &stats);
2946 largs.link_s_link = link;
2956 print_aggr_info(show_grp_state_t *state, const char *link,
2963 "%s", link);
3057 print_aggr_extended(show_grp_state_t *state, const char *link,
3065 largs.laggr_link = link;
3151 print_aggr_lacp(show_grp_state_t *state, const char *link,
3158 largs.laggr_link = link;
3273 print_aggr_stats(show_grp_state_t *state, const char *link,
3317 largs.laggr_link = link;
3347 char link[MAXLINKNAMELEN];
3354 NULL, link, MAXLINKNAMELEN)) != DLADM_STATUS_OK) {
3366 status = print_aggr_lacp(state, link, &ginfo);
3368 status = print_aggr_extended(state, link, &ginfo);
3370 status = print_aggr_stats(state, link, &ginfo);
3372 status = print_aggr_info(state, link, &ginfo);
3404 char *all_active_fields = "link,class,mtu,state,bridge,over";
3405 char *all_inactive_fields = "link,class,bridge,over";
3407 "link,ipackets,rbytes,ierrors,opackets,obytes,oerrors";
3460 /* get link name (optional last argument) */
3466 die("link name too long");
3469 die_dlerr(status, "link %s is not valid", linkname);
3473 die_dlerr(DLADM_STATUS_BADARG, "link %s is %s",
3475 "a temporary link" : "temporarily removed");
3519 die_dlerr(state.ls_status, "failed to show link %s",
3544 "link,policy,addrpolicy,lacpactivity,lacptimer,flags";
3546 "link,port,aggregatable,sync,coll,dist,defaulted,expired";
3548 "link,port,ipackets,rbytes,opackets,obytes,ipktdist,opktdist";
3550 "link,port,speed,duplex,state,address,portstate";
3700 const char *link, uint32_t flags, uint32_t media)
3717 (void) strlcpy(pattr.link_name, link,
3722 * This is a physical link that does not have
3740 "%s", link);
3789 * CR 6678526: resolve link id to actual link name if
3924 * invoked by show-phys -m for each physical data-link
3927 print_phys_mac(show_state_t *state, datalink_id_t linkid, char *link)
3932 mac_state.ms_link = link;
3953 /* invoked by show-phys -H for each physical data-link */
3955 print_phys_hwgrp(show_state_t *state, datalink_id_t linkid, char *link)
3960 hwgrp_state.hs_link = link;
4300 char link[MAXLINKNAMELEN];
4307 &media, link, MAXLINKNAMELEN)) != DLADM_STATUS_OK) {
4322 status = print_phys_mac(state, linkid, link);
4324 status = print_phys_hwgrp(state, linkid, link);
4326 status = print_phys_default(state, linkid, link, flags, media);
4413 "link,media,state,speed,duplex,device";
4414 char *all_inactive_fields = "link,device,media,flags";
4415 char *all_mac_fields = "link,slot,address,inuse,client";
4416 char *all_hwgrp_fields = "link,ringtype,rings,clients";
4464 /* get link name (optional last argument) */
4468 die_dlerr(status, "link %s is not valid", argv[optind]);
4521 "failed to show physical link %s", argv[optind]);
4570 /* get link name (optional last argument) */
4574 die_dlerr(status, "link %s is not valid", argv[optind]);
4643 die("link name too long");
4757 die("link name too long '%s'", argv[optind]);
4760 die("invalid link name '%s'", argv[optind]);
4767 die("invalid link name '%s'", devname);
4848 die("invalid link name '%s'", argv[optind]);
5116 char *all_e_fields = "link";
5138 die("link name too long");
5187 die_dlerr(status, "invalid link name '%s'",
5275 die("link name too long '%s'", argv[optind]);
5278 die("invalid link name '%s'", argv[optind]);
5347 die("link name too long '%s'", argv[optind]);
5350 die("invalid link name '%s'", name);
5396 die("invalid link name '%s'", argv[optind]);
5444 die("invalid peer link name '%s'", optarg);
5455 /* Nothing to do if no peer link argument */
5465 die("invalid link name '%s'", argv[optind]);
5535 char *all_fields = "link,media,macaddress,otherlink";
5577 /* get link name (optional last argument) */
5581 die_dlerr(status, "link %s is not valid", argv[optind]);
5785 get_link_stats(const char *link, pktsum_t *stats)
5797 ksp = dladm_kstat_lookup(kcp, "link", 0, link, NULL);
5849 return (query_kstat("link", 0, name, stat, type, val));
6013 char link[MAXLINKNAMELEN];
6015 if ((status = dladm_datalink_id2info(dh, linkid, NULL, NULL, NULL, link,
6016 sizeof (link))) != DLADM_STATUS_OK) {
6020 statep->ws_link = link;
6023 die_dlerr(status, "cannot scan link '%s'", statep->ws_link);
6062 char link[MAXLINKNAMELEN];
6065 if ((status = dladm_datalink_id2info(dh, linkid, NULL, NULL, NULL, link,
6066 sizeof (link))) != DLADM_STATUS_OK) {
6073 die_dlerr(status, "cannot get link attributes for %s", link);
6075 statep->ws_link = link;
6127 die_dlerr(status, "link %s is not valid", argv[optind]);
6352 die_dlerr(status, "link %s is not valid", argv[optind]);
6369 die("link name is required when more than one wifi "
6370 "link is available");
6407 warn_dlerr(status, "cannot disconnect link");
6437 die_dlerr(status, "link %s is not valid", argv[optind]);
6454 die("link name is required when more than "
6455 "one wifi link is available");
6511 "cannot get link property '%s' for %s",
6567 * If we failed to query the link property, for example, query
6568 * the persistent value of a non-persistable link property,
6574 * link properties to avoid returning failure on exit.
6723 die_dlerr(status, "link %s is not valid", argv[optind]);
6731 die("invalid link properties specified");
6788 * if there are no open links, the retrieval of link properties
6789 * (below) will proceed slowly unless we hold the link open.
6792 * link properties, because dlpi_open() may fail because of incorrect
6840 warn_dlerr(status, "cannot reset link property '%s' on '%s'",
6884 /* get link name (required last argument) */
6890 die("invalid link properties specified");
6893 die("link property must be specified");
6903 die_dlerr(status, "link %s is not valid", argv[optind]);
6944 warn("invalid link property '%s'", aip->ai_name);
6971 warn_dlerr(status, "cannot set link property "
6988 warn("link property '%s' must be one of: %s",
6991 warn("invalid link property '%s'", *val);
6997 warn_dlerr(status, "cannot reset link property "
7000 warn_dlerr(status, "cannot set link property "
7587 die_dlerr(status, "link %s is not valid", argv[optind]);
7652 die("invalid link specified");
7886 die("invalid link name '%s'", links[n]);
7934 die_dlerr(status, "unable to add link %s to bridge %s",
8035 die("invalid link name '%s'", links[n]);
8045 die("link %s is not on bridge %s", links[n],
8056 "cannot remove link %s from bridge %s",
8085 char link[MAXLINKNAMELEN];
8094 NULL, link, sizeof (link))) != DLADM_STATUS_OK)
8101 if (!dladm_observe_to_bridge(link))
8103 (void) strlcpy(bbuf->bridge_name, link, sizeof (bbuf->bridge_name));
8171 char link[MAXLINKNAMELEN];
8198 NULL, link, sizeof (link))) != DLADM_STATUS_OK)
8208 if ((ksp = kstat_lookup(kcp, "bridge", 0, link)) != NULL &&
8250 if (!dladm_observe_to_bridge(link))
8252 (void) strlcpy(bbuf->bridges_name, link, sizeof (bbuf->bridges_name));
8572 /* -l: link-related data */
8573 char *all_link_fields = "link,index,state,uptime,opercost,"
8575 char *default_link_fields = "link,state,uptime,desroot";
8576 char *all_link_statfields = "link,cfgbpdu,tcnbpdu,rstpbpdu,"
8578 char *default_link_statfields = "link,drops,recv,xmit";
8582 char *default_trill_fields = "nick,flags,link,nexthop";
9019 link_is_ether(const char *link, datalink_id_t *linkid)
9024 if (dladm_name2info(handle, link, linkid, NULL, &class, &media) ==
9093 * If an IB Phys link name was provided on the command line we have
9094 * the Phys link's datalink ID in the ps_over_id field of the state
9096 * was created over Phys link denoted by ps_over_id. The
9098 * link over which the partition was created.
9116 * link over which the partition was created. Use this linkid to get the
9143 * for a temp link the force create flag will determine
9210 * The data link ID of the IB Phys link. When this
9212 * objects created over this IB Phys link.
9216 die("link name too long");
9236 die_dlerr(status, "invalid partition link name '%s'",
9248 * If an IB Phys link name was provided as an argument, then get its
9255 die_dlerr(status, "invalid link name '%s'", over_link);
9259 state.ps_over_id = over_linkid; /* IB Phys link ID */
9272 * IB partitions. If IB Phys link was provided limit it to only
9273 * IB partitions created over that IB Phys link.
9291 * Called from the walker dladm_walk_datalink_id() for each IB Phys link to
9307 * Get the attributes of the IB Phys link from active/Persistent config
9321 * Get the data link name for the phys_linkid. If we are doing show-ib
9379 * Phys link like, HCA GUID, PORT GUID, PKEYS active for this port etc.
9412 /* get IB Phys link ID (optional last argument) */
9429 * linkid is the data link ID of the IB Phys link. By default it will
9451 * We need to display the information only for the IB phys link
9452 * linkid. Call show_ib for this link.
9457 die_dlerr(state.is_status, "failed to show IB Phys link"
9465 * Create an IP over Infiniband partition object over an IB Phys link. The IB
9466 * Phys link is associated with an Infiniband HCA port. The IB partition object
9502 * The IB phys link over which the partition object will
9552 * Verify that the partition object's name is in the valid link name
9556 die("Invalid link name '%s'", pname);
9566 * Get the data link id of the IB Phys link over which we will be
9571 die("invalid link name '%s'", l_arg);
9625 * Get the data link id of the partition object given the partition
9631 die("invalid link name '%s'", argv[optind]);
9664 * If a partition name was passed as an argument, get its data link