Lines Matching refs:ifinst

2263  * any error. It fills in the interface name in `ifinst' if the interface
2264 * is not already configured. Otherwise, it puts a null string in `ifinst'.
2267 if_configure_get_linkid(datalink_id_t linkid, char *ifinst, size_t len)
2283 *ifinst = '\0';
2288 if (dladm_datalink_id2info(dld_handle, linkid, NULL, NULL, NULL, ifinst,
2306 char ifinst[MAXLINKNAMELEN];
2313 if (if_configure_get_linkid(linkid, ifinst, sizeof (ifinst)) != 0)
2317 if (ifinst[0] == '\0')
2324 (void) snprintf(cfgfile, MAXPATHLEN, CFGFILE_FMT_IPV4, ifinst);
2331 (void) snprintf(cfgfile, MAXPATHLEN, CFGFILE_FMT_IPV6, ifinst);
2342 if_config_inst(ifinst, hostfp, AF_INET, ipmp) == -1) {
2344 _("IP: IPv4 Post-attach failed (%s)\n"), ifinst);
2349 if_config_inst(ifinst, host6fp, AF_INET6, ipmp) == -1) {
2351 _("IP: IPv6 Post-attach failed (%s)\n"), ifinst);
2358 ifinst);
2374 char ifinst[MAXLINKNAMELEN];
2383 if (if_configure_get_linkid(linkid, ifinst, sizeof (ifinst)) != 0)
2387 if (ifinst[0] == '\0')
2390 status = ipadm_if_info(ip_handle, ifinst, &ifinfo, 0, LIFC_UNDER_IPMP);
2396 ifinst, ipadm_status2str(status));
2402 if (strncmp(ptr->ifi_name, ifinst,
2403 sizeof (ifinst)) == 0) {
2412 if (if_hostname_exists(ifinst, AF_INET) ||
2413 if_hostname_exists(ifinst, AF_INET6)) {
2417 "Ignoring ipadm config\n"), ifinst);
2420 status = ipadm_enable_if(ip_handle, ifinst, IPADM_OPT_ACTIVE);
2424 ifinst, ipadm_status2str(status));
2430 ifinst);
2511 if_config_inst(const char *ifinst, FILE *hfp, int af, boolean_t ipmp)
2522 ifinst, ipmp);
2526 _("IP: Cannot fstat file(%s)\n"), ifinst);
2544 if (!ifconfig(ifinst, fstr, "plumb", B_FALSE))
2550 _("IP: Zero size hostname file(%s)\n"), ifinst);
2556 _("IP: Cannot rewind hostname file(%s): %s\n"), ifinst,
2567 _("IP: calloc(%s): %s\n"), ifinst, strerror(errno));
2574 _("IP: calloc(%s): %s\n"), ifinst, strerror(errno));
2592 _("IP: Cannot rewind hostname file(%s): %s\n"), ifinst,
2608 (void) ifconfig(ifinst, fstr, buf, stdif);
2617 "failed: %s\n"), ifinst, buf, strerror(errno));
2623 (void) ifconfig(ifinst, fstr, buf, stdif);
2629 "failed: %s\n"), ifinst, buf, strerror(errno));
2648 if ((af == AF_INET6 || ipmp) && !ifconfig(ifinst, fstr, "up", B_FALSE))
2662 (void) snprintf(dhcpfile, MAXPATHLEN, DHCPFILE_FMT, ifinst);
2682 (void) ifconfig(ifinst, CFG_DHCP_CMD, dhcpbuf, B_FALSE);
2688 rcm_log_message(RCM_TRACE1, "IP: if_config_inst(%s) success\n", ifinst);
2693 rcm_log_message(RCM_ERROR, "IP: if_config_inst(%s) failure\n", ifinst);
2722 ifconfig(const char *ifinst, const char *fstr, const char *buf, boolean_t stdif)
2728 ifinst, fstr, buf);