/titanic_41/usr/src/lib/libinetutil/common/ |
H A D | ifspec.c | 110 ifparse_ifspec(const char *ifname, ifspec_t *ifsp) in ifparse_ifspec() argument 121 ifsp->ifsp_lunvalid = B_FALSE; in ifparse_ifspec() 133 if (getlun(lp, strlen(lp), &ifsp->ifsp_lun) != 0) in ifparse_ifspec() 135 ifsp->ifsp_lunvalid = B_TRUE; in ifparse_ifspec() 138 (void) strlcpy(ifsp->ifsp_devnm, ifnamecp, LIFNAMSIZ); in ifparse_ifspec() 141 if (getppa(ifsp->ifsp_devnm, strlen(ifsp->ifsp_devnm), in ifparse_ifspec() 142 &ifsp->ifsp_ppa) != 0) { in ifparse_ifspec() 147 for (tp = &ifsp->ifsp_devnm[strlen(ifsp->ifsp_devnm) - 1]; in ifparse_ifspec() 148 tp >= ifsp->ifsp_devnm && isdigit(*tp); tp--) { in ifparse_ifspec()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rarpd.c | 222 ifspec_t ifsp; in main() local 241 if (!ifparse_ifspec(buf, &ifsp)) in main() 244 if (ifsp.ifsp_lunvalid) { in main() 247 ifsp.ifsp_devnm, ifsp.ifsp_ppa); in main() 248 ifdev->lunit = ifsp.ifsp_lun; in main() 252 (void) strlcpy(rarpdev_head->device, ifsp.ifsp_devnm, in main() 254 rarpdev_head->unit = ifsp.ifsp_ppa; in main() 336 ifspec_t ifsp; in getintf() local 349 if (!ifparse_ifspec(ifr->ifr_name, &ifsp)) in getintf() 355 if ((rdev = find_device(&ifsp)) == NULL) { in getintf() [all …]
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_if.c | 538 ifspec_t ifsp; in i_ipadm_slifname_arp() local 541 (void) ifparse_ifspec(ifname, &ifsp); in i_ipadm_slifname_arp() 542 lifr.lifr_ppa = ifsp.ifsp_ppa; in i_ipadm_slifname_arp() 570 ifspec_t ifsp; in i_ipadm_slifname() local 632 valid_if = ifparse_ifspec(ifname, &ifsp); in i_ipadm_slifname() 653 lifr.lifr_ppa = ifsp.ifsp_ppa; in i_ipadm_slifname() 1422 ifspec_t ifsp; in ipadm_if_info() local 1428 (!ifparse_ifspec(ifname, &ifsp) || ifsp.ifsp_lunvalid)) { in ipadm_if_info() 1464 ifspec_t ifsp; in ipadm_enable_if() local 1471 if (!ifparse_ifspec(ifname, &ifsp) || ifsp.ifsp_lunvalid) in ipadm_enable_if() [all …]
|
H A D | libipadm.c | 494 ifspec_t ifsp; in i_ipadm_is_vni() local 496 return (ifparse_ifspec(ifname, &ifsp) && in i_ipadm_is_vni() 497 strcmp(ifsp.ifsp_devnm, "vni") == 0); in i_ipadm_is_vni() 837 ifspec_t ifsp; in i_ipadm_validate_ifname() local 840 !ifparse_ifspec(ifname, &ifsp)) in i_ipadm_validate_ifname() 842 if (ifsp.ifsp_lunvalid) in i_ipadm_validate_ifname() 843 return (ifsp.ifsp_lun > 0 && (iph->iph_flags & IPH_LEGACY)); in i_ipadm_validate_ifname()
|
H A D | ipadm_addr.c | 2165 ifspec_t ifsp; in ipadm_create_addrobj() local 2181 if (!ifparse_ifspec(ifname, &ifsp)) in ipadm_create_addrobj() 2197 if (ifsp.ifsp_lunvalid) { in ipadm_create_addrobj() 2198 newaddr->ipadm_lifnum = ifsp.ifsp_lun; in ipadm_create_addrobj() 3006 ifspec_t ifsp; in ipadm_addr_info() local 3011 (!ifparse_ifspec(ifname, &ifsp) || ifsp.ifsp_lunvalid)) { in ipadm_addr_info()
|
/titanic_41/usr/src/cmd/ipf/tools/ |
H A D | ipfstat.c | 1600 static void showfrstates(ifsp, ticks) in showfrstates() argument 1601 ipfrstat_t *ifsp; in showfrstates() 1611 ifsp->ifs_new, ifsp->ifs_expire, ifsp->ifs_hits); 1613 ifsp->ifs_retrans0, ifsp->ifs_short); 1615 ifsp->ifs_nomem, ifsp->ifs_exists); 1616 PRINTF("\t%lu inuse\n", ifsp->ifs_inuse); 1617 if (kmemcpy((char *)ipfrtab, (u_long)ifsp->ifs_table, sizeof(ipfrtab))) 1636 if (kmemcpy((char *)ipfrtab, (u_long)ifsp->ifs_nattab,sizeof(ipfrtab)))
|
/titanic_41/usr/src/lib/libshell/common/sh/ |
H A D | macro.c | 62 char *ifsp; /* pointer to IFS value */ member 167 if(mp->ifsp=nv_getval(sh_scoped(shp,IFSNOD))) in sh_mactrim() 168 mp->ifs = *mp->ifsp; in sh_mactrim() 202 if(mp->ifsp=nv_getval(sh_scoped(shp,IFSNOD))) in sh_macexpand() 203 mp->ifs = *mp->ifsp; in sh_macexpand() 274 mp->ifsp = nv_getval(sh_scoped(shp,IFSNOD)); in sh_machere() 2015 nv_putval(np,mp->ifsp,NV_RDONLY); in comsubst() 2016 mp->ifsp = nv_getval(np); in comsubst() 2209 if(sh_strchr(mp->ifsp,cp-1)<0) in mac_copy() 2224 if(n==S_MBYTE && sh_strchr(mp->ifsp,cp-1)>=0) in mac_copy()
|
/titanic_41/usr/src/lib/libdladm/common/ |
H A D | libdllink.c | 1014 ifspec_t ifsp; in dladm_parselink() local 1016 if (dev == NULL || !ifparse_ifspec(dev, &ifsp)) in dladm_parselink() 1020 (void) strlcpy(provider, ifsp.ifsp_devnm, DLPI_LINKNAME_MAX); in dladm_parselink() 1023 *ppa = ifsp.ifsp_ppa; in dladm_parselink()
|
/titanic_41/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 136 ifspec_t ifsp; in dlpi_open() local 144 !ifparse_ifspec(linkname, &ifsp)) in dlpi_open() 160 dip->dli_ppa = ifsp.ifsp_ppa; in dlpi_open() 175 (void) strlcpy(dip->dli_provider, ifsp.ifsp_devnm, in dlpi_open()
|