Home
last modified time | relevance | path

Searched refs:lifr_name (Results 1 – 25 of 61) sorted by relevance

123

/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Difconfig.c598 (void) strncpy(name, lifrp->lifr_name, sizeof (name)); in plumball()
855 (void) strncpy(lifr.lifr_name, name, sizeof (lifr.lifr_name)); in ifconfig()
1030 (void) strncpy(lifr1.lifr_name, name, sizeof (lifr1.lifr_name)); in setifaddr()
1042 (void) strncpy(lifr.lifr_name, name, sizeof (lifr.lifr_name)); in setifaddr()
1054 lifr.lifr_name, afp->af_af, in setifaddr()
1065 (void) strncpy(lifr.lifr_name, name, sizeof (lifr.lifr_name)); in setifaddr()
1320 (void) strncpy(lifr.lifr_name, name, sizeof (lifr.lifr_name)); in setifrevarp()
1354 (void) strncpy(lifr.lifr_name, name, sizeof (lifr.lifr_name)); in setifsubnet()
1377 (void) strncpy(lifr.lifr_name, name, sizeof (lifr.lifr_name)); in setifnetmask()
1430 (void) strncpy(lifr.lifr_name, name, sizeof (lifr.lifr_name)); in setifprefixlen()
[all …]
/titanic_41/usr/src/lib/libsocket/inet/
H A Dinterface_id.c75 strncpy(lifr.lifr_name, ifname, size +1); in if_nametoindex()
191 index = if_nametoindex(lifrp->lifr_name); in if_indextoname()
196 size = strcspn(lifrp->lifr_name, in if_indextoname()
198 lifrp->lifr_name[size] = '\0'; in if_indextoname()
200 (void) strncpy(ifname, lifrp->lifr_name, size + 1); in if_indextoname()
288 size = strcspn(lifrp->lifr_name, (char *)IPIF_SEPARATOR_CHAR); in if_nameindex()
296 lifrp->lifr_name, size) == 0) { in if_nameindex()
308 if_nametoindex(lifrp->lifr_name); in if_nameindex()
319 lifrp->lifr_name[size] = '\0'; in if_nameindex()
321 strdup(lifrp->lifr_name)) == NULL) { in if_nameindex()
H A Dgetifaddrs.c130 (void) strncpy(lifrl.lifr_name, lifrp->lifr_name, in getallifaddrs()
131 sizeof (lifrl.lifr_name)); in getallifaddrs()
160 if ((curr->ifa_name = strdup(lifrp->lifr_name)) == NULL) in getallifaddrs()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dforeachaddr.c257 strncpy(lifreq.lifr_name, lifr->lifr_name, in foreach_localaddr()
258 sizeof (lifreq.lifr_name)); in foreach_localaddr()
260 lifreq.lifr_name); in foreach_localaddr()
267 lifr->lifr_name); in foreach_localaddr()
269 lifr->lifr_name[0] = '\0'; in foreach_localaddr()
290 if (lifr2->lifr_name[0] == '\0') in foreach_localaddr()
328 if (lifr->lifr_name[0] == '\0') in foreach_localaddr()
/titanic_41/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dinterface.c105 (void) strlcpy(lifr.lifr_name, pname, LIFNAMSIZ); in insert_pif()
181 (void) strlcpy(lifr.lifr_name, pif->pif_grifname, in insert_pif()
187 "for %s", lifr.lifr_name); in insert_pif()
433 (void) strlcpy(lifr.lifr_name, lname, LIFNAMSIZ); in insert_lif()
675 (void) strlcpy(lifr.lifr_name, lif->lif_name, LIFNAMSIZ); in checkaddr()
736 (void) strlcpy(lifr.lifr_name, lif->lif_name, LIFNAMSIZ); in verify_lif()
779 (void) strlcpy(lifr.lifr_name, pif->pif_grifname, LIFNAMSIZ); in verify_lif()
784 "failed on %s", lifr.lifr_name); in verify_lif()
791 "on %s changed: %u to %u", lifr.lifr_name, in verify_lif()
861 (void) strlcpy(lifr.lifr_name, lif->lif_name, LIFNAMSIZ); in canonize_lif()
[all …]
H A Dagent.c1199 (void) strlcpy(lifr.lifr_name, lif->lif_name, sizeof (lifr.lifr_name)); in check_lif()
1268 (void) strlcpy(lifr.lifr_name, lif->lif_name, sizeof (lifr.lifr_name)); in check_main_lif()
1332 (void) strlcpy(lifr.lifr_name, pif->pif_name, sizeof (lifr.lifr_name)); in process_link_up_down()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtables.c198 (void) strncpy(lifr.lifr_name, pi->pi_name, sizeof (lifr.lifr_name)); in phyint_init_from_k()
199 lifr.lifr_name[sizeof (lifr.lifr_name) - 1] = '\0'; in phyint_init_from_k()
353 (void) strlcpy(lifr.lifr_name, pi->pi_name, LIFNAMSIZ); in phyint_init_from_k()
405 (void) strlcpy(lifr.lifr_name, pi->pi_name, LIFNAMSIZ); in phyint_init_from_k()
424 (void) strncpy(lifr.lifr_name, pi->pi_name, sizeof (lifr.lifr_name)); in phyint_init_from_k()
425 lifr.lifr_name[sizeof (lifr.lifr_name) - 1] = '\0'; in phyint_init_from_k()
441 (void) strncpy(lifr.lifr_name, pi->pi_name, sizeof (lifr.lifr_name)); in phyint_init_from_k()
442 lifr.lifr_name[sizeof (lifr.lifr_name) - 1] = '\0'; in phyint_init_from_k()
654 (void) strlcpy(lifrp->lifr_name, pi->pi_name, LIFNAMSIZ); in phyint_get_lla()
689 (void) strlcpy(lifr.lifr_name, pi->pi_name, LIFNAMSIZ); in phyint_reach_random()
[all …]
H A Dmain.c432 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in if_process()
433 lifr.lifr_name[sizeof (lifr.lifr_name) - 1] = '\0'; in if_process()
680 if_process(ifsock, lifr->lifr_name, first); in initifs()
2369 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in ndpd_create_addrs()
2443 (void) strncpy(lifr.lifr_name, pr->pr_name, in ndpd_delete_addrs()
2444 sizeof (lifr.lifr_name)); in ndpd_delete_addrs()
2462 (void) strncpy(lifr.lifr_name, pi->pi_name, in ndpd_delete_addrs()
2463 sizeof (lifr.lifr_name)); in ndpd_delete_addrs()
/titanic_41/usr/src/lib/libipadm/common/
H A Dipadm_if.c107 if (i_ipadm_get_lnum(lifrp->lifr_name) != 0) in i_ipadm_active_if_info()
114 if (ifname != NULL && strcmp(lifrp->lifr_name, ifname) != 0) in i_ipadm_active_if_info()
121 if (strcmp(lifrp->lifr_name, ifp->ifi_name) == 0) in i_ipadm_active_if_info()
130 (void) strlcpy(ifp->ifi_name, lifrp->lifr_name, in i_ipadm_active_if_info()
144 (void) strlcpy(lifrl.lifr_name, in i_ipadm_active_if_info()
145 lifrp->lifr_name, sizeof (lifrl.lifr_name)); in i_ipadm_active_if_info()
471 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_create_ipmp()
472 if (strcmp(lifr.lifr_name, grname) != 0) { in i_ipadm_create_ipmp()
509 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_create_ipmp_peer()
544 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_slifname_arp()
[all …]
H A Dlibipadm.c311 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_get_index()
422 (void) strlcpy(lifr.lifr_name, lifname, sizeof (lifr.lifr_name)); in i_ipadm_set_flags()
452 (void) strlcpy(lifr.lifr_name, lifname, sizeof (lifr.lifr_name)); in i_ipadm_get_flags()
537 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_is_under_ipmp()
574 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in ipadm_if_enabled()
H A Dipadm_addr.c472 (void) strlcpy(lifr.lifr_name, ifap->ifa_name, in i_ipadm_active_addr_info()
473 sizeof (lifr.lifr_name)); in i_ipadm_active_addr_info()
931 i_ipadm_addrobj2lifname(ipaddr, lifr.lifr_name, in i_ipadm_set_prefixlen()
932 sizeof (lifr.lifr_name)); in i_ipadm_set_prefixlen()
1034 i_ipadm_addrobj2lifname((ipadm_addrobj_t)arg, lifr.lifr_name, in i_ipadm_set_zone()
1035 sizeof (lifr.lifr_name)); in i_ipadm_set_zone()
1109 (void) strlcpy(lifr.lifr_name, lifname, in i_ipadm_get_broadcast()
1110 sizeof (lifr.lifr_name)); in i_ipadm_get_broadcast()
1138 (void) strlcpy(lifr.lifr_name, lifname, in i_ipadm_get_broadcast()
1139 sizeof (lifr.lifr_name)); in i_ipadm_get_broadcast()
[all …]
H A Dipadm_ndpd.c166 (void) strlcpy(lifr.lifr_name, addr->ipadm_ifname, LIFNAMSIZ); in i_ipadm_create_linklocal()
167 i_ipadm_addrobj2lifname(addr, lifr.lifr_name, sizeof (lifr.lifr_name)); in i_ipadm_create_linklocal()
H A Dipadm_prop.c400 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_mtu()
432 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_metric()
466 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_set_usesrc()
874 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_get_mtu()
912 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_get_metric()
953 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_get_usesrc()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c107 (void) strncpy(lifr.lifr_name, lifrp->lifr_name, in initifs()
108 sizeof (lifr.lifr_name)); in initifs()
119 ifp = if_ifwithname(lifr.lifr_name); in initifs()
294 (char *)malloc((size_t)strlen(lifr.lifr_name) + 1); in initifs()
300 (void) strcpy(ifp->int_name, lifr.lifr_name); in initifs()
302 (char *)malloc((size_t)strlen(lifr.lifr_name) + 1); in initifs()
309 (void) strcpy(ifp->int_ifbase, lifr.lifr_name); in initifs()
/titanic_41/usr/src/cmd/svr4pkg/libinst/
H A Dis_local_host.c127 (void) strncpy(lifr.lifr_name, lifrp->lifr_name, in is_local_if()
128 sizeof (lifr.lifr_name)); in is_local_if()
/titanic_41/usr/src/cmd/cmd-inet/sbin/netstrategy/
H A Dnetstrategy.c199 if (strchr(ifr->lifr_name, ':') != NULL) in get_first_interface()
204 (void) strncpy(flifr.lifr_name, ifr->lifr_name, LIFNAMSIZ); in get_first_interface()
240 (void) strncpy(interface, ifr->lifr_name, LIFNAMSIZ); in get_first_interface()
/titanic_41/usr/src/lib/libinetutil/common/
H A Difaddrlistx.c106 if ((cp = strchr(lifrp->lifr_name, ':')) != NULL) in ifaddrlistx()
109 if (strcmp(lifrp->lifr_name, ifname) != 0) in ifaddrlistx()
133 (void) strlcpy(ifaddrp->ia_name, lifrp->lifr_name, LIFNAMSIZ); in ifaddrlistx()
/titanic_41/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c199 (void) strncpy((caddr_t)&lifr.lifr_name, ifname, in kifioctl()
200 sizeof (lifr.lifr_name)); in kifioctl()
226 (void) strncpy((caddr_t)&lifr.lifr_name, ifname, in ksetifflags()
227 sizeof (lifr.lifr_name)); in ksetifflags()
/titanic_41/usr/src/lib/libdscp/
H A Dlibdscp.c276 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in dscpAddr()
295 (void) strncpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in dscpAddr()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c382 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in read_ipv6_interface()
386 warn("Couldn't get IPv6 MTU on %s: %m", lifr.lifr_name); in read_ipv6_interface()
399 lifr.lifr_name); in read_ipv6_interface()
410 lifr.lifr_name); in read_ipv6_interface()
667 (void) strlcpy(lifr.lifr_name, ifname, in unplumb_ipif()
668 sizeof (lifr.lifr_name)); in unplumb_ipif()
3176 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in plumb_ip6if()
3240 (void) strlcpy(lifr.lifr_name, ifname, in unplumb_ip6if()
3241 sizeof (lifr.lifr_name)); in unplumb_ip6if()
3304 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Dif_mpadm.c136 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in is_offline()
227 (void) strlcpy(lifr.lifr_name, lifname, LIFNAMSIZ); in set_lifflags()
/titanic_41/usr/src/uts/common/io/ib/clients/rds/
H A Drds_ioctl.c98 (void) strlcpy(ifname, lifrp->lifr_name, LIFNAMSIZ); in rds_capable_interface()
174 if (strlen(lifrp->lifr_name) <= IFNAMSIZ && in rds_ioctl_copyin_done()
217 if (strlen(lifrp->lifr_name) > IFNAMSIZ || in rds_ioctl_copyin_done()
224 (void) strlcpy(ifrp->ifr_name, lifrp->lifr_name, in rds_ioctl_copyin_done()
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_nic.c492 (void) strlcpy(lifrr.lifr_name, interface, sizeof (lifrr.lifr_name)); in smb_nic_getinfo()
675 (void) strlcpy(lifrl.lifr_name, lifrp->lifr_name, in smb_nic_hlist_sysget()
676 sizeof (lifrl.lifr_name)); in smb_nic_hlist_sysget()
694 ifname = strdup(lifrp->lifr_name); in smb_nic_hlist_sysget()
721 lifrp->lifr_name) == 0) in smb_duplicate_nic()
/titanic_41/usr/src/cmd/hal/addons/network-devices/
H A Dcommon.c286 strlcpy(r.lifr_name, ifname, sizeof (r.lifr_name)); in broadcast_address()
331 char *address = broadcast_address(s, r->lifr_name); in broadcast_addresses()
/titanic_41/usr/src/cmd/zoneadmd/
H A Dvplat.c1917 lifrl.lifr_name); in unconfigure_shared_network_interfaces()
1922 (void) strncpy(lifrl.lifr_name, lifrp->lifr_name, in unconfigure_shared_network_interfaces()
1923 sizeof (lifrl.lifr_name)); in unconfigure_shared_network_interfaces()
1933 "network interface is bound", lifrl.lifr_name); in unconfigure_shared_network_interfaces()
1941 lifrl.lifr_name); in unconfigure_shared_network_interfaces()
2115 (void) strlcpy(save_if_name, lifr->lifr_name, sizeof (save_if_name)); in who_is_using()
2116 (void) strncpy(lifr->lifr_name, ifp->sdl_data, ifp->sdl_nlen); in who_is_using()
2117 lifr->lifr_name[ifp->sdl_nlen] = '\0'; in who_is_using()
2119 (void) strlcpy(lifr->lifr_name, save_if_name, sizeof (save_if_name)); in who_is_using()
2123 "belongs to", lifr->lifr_name); in who_is_using()
[all …]

123