Home
last modified time | relevance | path

Searched refs:linkname (Results 1 – 25 of 58) sorted by relevance

123

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Drevarp.c54 doifrevarp(const char *linkname, struct sockaddr_in *laddr) in doifrevarp() argument
67 if (linkname[0] == '\0') { in doifrevarp()
73 (void) printf("doifrevarp interface %s\n", linkname); in doifrevarp()
78 (void) strlcpy(lifr.lifr_name, linkname, sizeof (lifr.lifr_name)); in doifrevarp()
94 dh = rarp_open(linkname, &physaddrlen, my_macaddr, my_broadcast); in doifrevarp()
153 linkname, retval); in doifrevarp()
184 linkname, retval); in doifrevarp()
199 rarp_open(const char *linkname, size_t *alen, uchar_t *myaddr, uchar_t *mybaddr) in rarp_open() argument
207 (void) printf("rarp_open %s\n", linkname); in rarp_open()
209 if ((retval = dlpi_open(linkname, &dh, 0)) != DLPI_SUCCESS) { in rarp_open()
[all …]
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_wlan.c39 nwam_wlan_scan(const char *linkname) in nwam_wlan_scan() argument
41 return (nwam_request_wlan(NWAM_REQUEST_TYPE_WLAN_SCAN, linkname, in nwam_wlan_scan()
49 nwam_wlan_get_scan_results(const char *linkname, uint_t *num_wlansp, in nwam_wlan_get_scan_results() argument
52 return (nwam_request_wlan_scan_results(linkname, num_wlansp, in nwam_wlan_get_scan_results()
60 nwam_wlan_select(const char *linkname, const char *essid, const char *bssid, in nwam_wlan_select() argument
64 linkname, essid, bssid, secmode, 0, NULL, add_to_known_wlans)); in nwam_wlan_select()
71 nwam_wlan_set_key(const char *linkname, const char *essid, const char *bssid, in nwam_wlan_set_key() argument
75 linkname, essid, bssid, secmode, keyslot, key, B_FALSE)); in nwam_wlan_set_key()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/sppptun/
H A Dsppptun.c63 int (*attach)(struct protos *prot, char *linkname,
89 sppp_dlpi(struct protos *prot, char *linkname, struct attach_data *adata) in sppp_dlpi() argument
95 (void) printf(gettext("opening DLPI link %s\n"), linkname); in sppp_dlpi()
96 if ((retv = dlpi_open(linkname, &dh, 0)) != DLPI_SUCCESS) { in sppp_dlpi()
98 myname, linkname, dlpi_strerror(retv)); in sppp_dlpi()
109 myname, linkname, dlpi_strerror(retv)); in sppp_dlpi()
118 " address on %s: %s\n"), myname, linkname, in sppp_dlpi()
124 if (strlcpy(adata->appstr, linkname, sizeof (adata->appstr)) >= in sppp_dlpi()
128 myname, linkname); in sppp_dlpi()
188 char *cp, *linkname; in plumb_it() local
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_phys.c438 nwamd_wlan_set_key(const char *linkname, const char *essid, const char *bssid, in nwamd_wlan_set_key() argument
453 if ((ncu_obj = nwamd_ncu_object_find(NWAM_NCU_TYPE_LINK, linkname)) in nwamd_wlan_set_key()
456 "for link %s", linkname); in nwamd_wlan_set_key()
471 nlog(LOG_DEBUG, "nwamd_wlan_set_key: running for link %s", linkname); in nwamd_wlan_set_key()
815 nwamd_wlan_select(const char *linkname, const char *essid, const char *bssid, in nwamd_wlan_select() argument
823 if ((ncu_obj = nwamd_ncu_object_find(NWAM_NCU_TYPE_LINK, linkname)) in nwamd_wlan_select()
826 "for link %s", linkname); in nwamd_wlan_select()
1121 const char *linkname = s->nwamd_wifi_scan_link; in get_scan_results() local
1135 "for link %s: ommiting (%s, %s)", linkname, essid_name, in get_scan_results()
1175 linkname, index, essid_name, bssid_name); in get_scan_results()
[all …]
H A Dncu.c157 char linkname[NWAM_MAX_NAME_LEN]; in nwamd_ncu_state_machine() local
279 (void) strlcpy(linkname, ncu->ncu_name, sizeof (linkname)); in nwamd_ncu_state_machine()
280 (void) nwamd_wlan_scan(linkname); in nwamd_ncu_state_machine()
323 (void) strlcpy(linkname, ncu->ncu_name, sizeof (linkname)); in nwamd_ncu_state_machine()
324 nwamd_wlan_connect(linkname); in nwamd_ncu_state_machine()
383 (void) strlcpy(linkname, ncu->ncu_name, in nwamd_ncu_state_machine()
384 sizeof (linkname)); in nwamd_ncu_state_machine()
385 nwamd_wlan_monitor_signal(linkname); in nwamd_ncu_state_machine()
2009 char linkname[NWAM_MAX_NAME_LEN]; in nwamd_ncu_handle_state_event() local
2088 (void) strlcpy(linkname, ncu->ncu_name, sizeof (linkname)); in nwamd_ncu_handle_state_event()
[all …]
H A Dutil.c255 nwamd_link_belongs_to_this_zone(const char *linkname) in nwamd_link_belongs_to_this_zone() argument
267 if ((status = dladm_name2info(dld_handle, linkname, &linkid, in nwamd_link_belongs_to_this_zone()
271 linkname, dladm_status2str(status, errstr)); in nwamd_link_belongs_to_this_zone()
280 linkname, zonename); in nwamd_link_belongs_to_this_zone()
H A Dconditions.c559 check_wlan(const char *linkname, void *arg) in check_wlan() argument
569 if ((status = dladm_name2info(dld_handle, linkname, &linkid, NULL, NULL, in check_wlan()
572 "failed: %s", linkname, in check_wlan()
580 "failed: %s", linkname, in check_wlan()
H A Dncu_ip.c93 nwamd_propogate_link_up_down_to_ip(const char *linkname, boolean_t up) in nwamd_propogate_link_up_down_to_ip() argument
96 linkname); in nwamd_propogate_link_up_down_to_ip()
101 "for link %s, cannot propogate %s event", linkname, in nwamd_propogate_link_up_down_to_ip()
113 "removed", up ? "up" : "down", linkname); in nwamd_propogate_link_up_down_to_ip()
118 up ? "up" : "down", linkname); in nwamd_propogate_link_up_down_to_ip()
131 up ? "up" : "down", linkname); in nwamd_propogate_link_up_down_to_ip()
/illumos-gate/usr/src/uts/common/syscall/
H A Dsymlink.c56 symlinkat(char *target, int dfd, char *linkname) in symlinkat() argument
68 if (linkname == NULL) in symlinkat()
70 if ((error = fgetstartvp(dfd, linkname, &startvp)) != 0) in symlinkat()
74 if (error = pn_get(linkname, UIO_USERSPACE, &lpn)) in symlinkat()
115 symlink(char *target, char *linkname) in symlink() argument
117 return (symlinkat(target, AT_FDCWD, linkname)); in symlink()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlstat.c51 char linkname[MAXLINKNAMELEN]; member
727 i_query_legacy_stats(dladm_handle_t dh, const char *linkname, pktsum_t *stats) in i_query_legacy_stats() argument
736 ksp = dladm_kstat_lookup(dladm_dld_kcp(dh), "link", 0, linkname, NULL); in i_query_legacy_stats()
743 i_dlstat_legacy_rx_lane_stats(dladm_handle_t dh, const char *linkname) in i_dlstat_legacy_rx_lane_stats() argument
752 i_query_legacy_stats(dh, linkname, &stats); in i_dlstat_legacy_rx_lane_stats()
780 i_dlstat_legacy_tx_lane_stats(dladm_handle_t dh, const char *linkname) in i_dlstat_legacy_tx_lane_stats() argument
789 i_query_legacy_stats(dh, linkname, &stats); in i_dlstat_legacy_tx_lane_stats()
979 i_dlstat_misc_stats(dladm_handle_t handle, const char *linkname) in i_dlstat_misc_stats() argument
987 ksp = dladm_kstat_lookup(dladm_dld_kcp(handle), linkname, 0, in i_dlstat_misc_stats()
1108 i_dlstat_rx_local_stats(dladm_handle_t handle, const char *linkname) in i_dlstat_rx_local_stats() argument
[all …]
H A Dlibdlbridge.c874 char linkname[MAXLINKNAMELEN]; in dladm_bridge_configure() local
889 (void) snprintf(linkname, sizeof (linkname), "%s0", name); in dladm_bridge_configure()
890 status = dladm_create_datalink_id(handle, linkname, in dladm_bridge_configure()
897 (status = dladm_bridge_persist_conf(handle, linkname, in dladm_bridge_configure()
1171 char linkname[MAXLINKNAMELEN]; in dladm_bridge_delete() local
1177 (void) snprintf(linkname, sizeof (linkname), "%s0", bridge); in dladm_bridge_delete()
1178 if (dladm_name2info(handle, linkname, &linkid, NULL, NULL, NULL) != in dladm_bridge_delete()
/illumos-gate/usr/src/cmd/dlstat/
H A Ddlstat.c966 print_total_stats(const char *linkname, void *statentry, char unit, in print_total_stats() argument
978 linkname); in print_total_stats()
997 print_rx_generic_ring_stats(const char *linkname, void *statentry, char unit, in print_rx_generic_ring_stats() argument
1009 linkname); in print_rx_generic_ring_stats()
1031 print_tx_generic_ring_stats(const char *linkname, void *statentry, char unit, in print_tx_generic_ring_stats() argument
1043 linkname); in print_tx_generic_ring_stats()
1065 print_rx_ring_stats(const char *linkname, void *statentry, char unit, in print_rx_ring_stats() argument
1077 linkname); in print_rx_ring_stats()
1099 print_tx_ring_stats(const char *linkname, void *statentry, char unit, in print_tx_ring_stats() argument
1111 linkname); in print_tx_ring_stats()
[all …]
/illumos-gate/usr/src/lib/libuuid/common/
H A Detheraddr.c42 static boolean_t get_etheraddr(const char *linkname, void *arg);
120 get_etheraddr(const char *linkname, void *arg) in get_etheraddr() argument
126 if (dlpi_open(linkname, &dh, 0) != DLPI_SUCCESS) in get_etheraddr()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_capture.c89 select_datalink(const char *linkname, void *arg) in select_datalink() argument
96 (void) strlcpy(dwap->dwa_linkname, linkname, MAXLINKNAMELEN); in select_datalink()
104 (void) strlcpy(lifr.lifr_name, linkname, LIFNAMSIZ); in select_datalink()
119 open_datalink(dlpi_handle_t *dhp, const char *linkname) in open_datalink() argument
126 if (linkname == NULL) { in open_datalink()
144 linkname = dwa.dwa_linkname; in open_datalink()
148 if (Iflg || strcmp(linkname, "lo0") == 0) in open_datalink()
150 if ((retval = dlpi_open(linkname, dhp, flags)) != DLPI_SUCCESS) { in open_datalink()
151 pr_err("cannot open \"%s\": %s", linkname, in open_datalink()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Devents.c185 char linkname[MAXLINKNAMELEN]; in update_port() member
258 (void) strlcpy(adddata.linkname, portname, in update_port()
259 sizeof (adddata.linkname)); in update_port()
261 sizeof (adddata.linkid) + strlen(adddata.linkname)) == -1) { in update_port()
325 char bridge[MAXLINKNAMELEN], linkname[MAXLINKNAMELEN]; in update_link() local
332 NULL, linkname, sizeof (linkname)); in update_link()
334 update_port(0, linkname, linkid, class); in update_link()
/illumos-gate/usr/src/cmd/tic/
H A Dtic_parse.c546 char linkname[128 + 2 + 1]; in dump_structure() local
636 sprintf(linkname, "%c/%s", cur_name[0], cur_name); in dump_structure()
645 if (stat64(linkname, &statbuf) >= 0 && in dump_structure()
654 unlink(linkname); in dump_structure()
655 if (link(filename, linkname) < 0) in dump_structure()
657 filename, linkname); in dump_structure()
658 DEBUG(1, "Linked %s\n", linkname); in dump_structure()
659 } else DEBUG(1, "Would have linked %s\n", linkname); in dump_structure()
/illumos-gate/usr/src/test/os-tests/tests/stress/
H A Ddladm-kstat.sh48 local linkname=$1
50 kstat link:0:$linkname &>/dev/null
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_profile.c127 di_prof_add_symlink(di_prof_t prof, const char *linkname, const char *target) in di_prof_add_symlink() argument
132 syml[0] = (char *)linkname; /* 1st entry must be the symlink */ in di_prof_add_symlink()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/
H A Dnwamadm.c1229 char *linkname = NULL; in scan_wifi_func() local
1234 if ((err = name_to_linkname(argv[0], &linkname)) != NWAM_SUCCESS) in scan_wifi_func()
1237 err = nwam_wlan_scan(linkname); in scan_wifi_func()
1240 die_nwamerr(err, "scan request failed for %s", linkname); in scan_wifi_func()
1242 free(linkname); in scan_wifi_func()
1249 char *linkname = NULL; in select_wifi_func() local
1262 if ((err = name_to_linkname(argv[0], &linkname)) != NWAM_SUCCESS) { in select_wifi_func()
1266 err = nwam_wlan_get_scan_results(linkname, &num_wlans, &wlans); in select_wifi_func()
1270 linkname); in select_wifi_func()
1367 err = nwam_wlan_set_key(linkname, essid, bssid, security_mode, in select_wifi_func()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_arp.c341 ibcm_arp_lookup(ibcm_arp_ibd_insts_t *ibds, char *linkname) in ibcm_arp_lookup() argument
346 IBTF_DPRINTF_L4(cmlog, "ibcm_arp_lookup: linkname = %s", linkname); in ibcm_arp_lookup()
354 if (dls_mgmt_get_linkid(linkname, &linkid) != 0) { in ibcm_arp_lookup()
355 if (dls_devnet_macname2linkid(linkname, &linkid) != 0) { in ibcm_arp_lookup()
357 "get linkid from linkname (%s)", linkname); in ibcm_arp_lookup()
368 "linkname (%s)", linkname); in ibcm_arp_lookup()
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_backup_reader.c850 char *linkname; /* where this file points */ in tlm_output_file() local
875 linkname = ndmp_malloc(TLM_MAX_PATH_NAME); in tlm_output_file()
877 if (fullname == NULL || linkname == NULL || snapname == NULL) { in tlm_output_file()
893 file_size = tlm_readlink(fullname, snapname, linkname, in tlm_output_file()
906 linkname, in tlm_output_file()
917 free(linkname); in tlm_output_file()
952 linkname[0] = 0; in tlm_output_file()
988 linkname, in tlm_output_file()
1004 linkname, in tlm_output_file()
1098 free(linkname); in tlm_output_file()
/illumos-gate/usr/src/lib/libdlpi/common/
H A Dlibdlpi.c133 dlpi_open(const char *linkname, dlpi_handle_t *dhp, uint_t flags) in dlpi_open() argument
143 if (linkname == NULL || (strchr(linkname, ':') != NULL) || in dlpi_open()
144 !ifparse_ifspec(linkname, &ifsp)) in dlpi_open()
168 if (strlcpy(dip->dli_linkname, linkname, sizeof (dip->dli_linkname)) >= in dlpi_open()
401 dlpi_parselink(const char *linkname, char *provider, uint_t *ppa) in dlpi_parselink() argument
405 status = dladm_parselink(linkname, provider, ppa); in dlpi_parselink()
419 dlpi_makelink(char *linkname, const char *provider, uint_t ppa) in dlpi_makelink() argument
423 if (linkname == NULL || provlen == 0 || provlen >= DLPI_LINKNAME_MAX) in dlpi_makelink()
427 (void) snprintf(linkname, DLPI_LINKNAME_MAX, "%s%d", provider, in dlpi_makelink()
430 (void) strlcpy(linkname, provider, DLPI_LINKNAME_MAX); in dlpi_makelink()
/illumos-gate/usr/src/cmd/flowadm/
H A Dflowadm.c415 char linkname[MAXLINKNAMELEN]; in do_remove_flow() local
434 if (strlcpy(linkname, optarg, in do_remove_flow()
438 if (dladm_name2info(handle, linkname, &linkid, NULL, in do_remove_flow()
440 die("invalid link '%s'", linkname); in do_remove_flow()
593 char linkname[MAXLINKNAMELEN]; in do_show_flow() local
625 if (strlcpy(linkname, optarg, MAXLINKNAMELEN) in do_show_flow()
628 if (dladm_name2info(handle, linkname, &linkid, NULL, in do_show_flow()
630 die("invalid link '%s'", linkname); in do_show_flow()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dtar.h102 char linkname[NAMSIZ]; member
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rarpd.c407 char linkname[DLPI_LINKNAME_MAX]; in init_rarpdev() local
410 (void) snprintf(linkname, DLPI_LINKNAME_MAX, "%s%d", rdev->device, in init_rarpdev()
415 if ((retval = dlpi_open(linkname, &dh, 0)) != DLPI_SUCCESS) { in init_rarpdev()
416 error("cannot open link %s: %s", linkname, in init_rarpdev()
442 debug("device %s physical address %s", linkname, str); in init_rarpdev()

123