Lines Matching refs:host

100 	int		nl_hcnt;	/* number of host names */
169 * Gets the number of interfaces for the specified host.
170 * if host is NULL then total number of interfaces
314 * Adds an association between the given host and the specified interface
320 * host: actual system's name (not Netbios name)
322 * the specified host. Can be NULL.
329 smb_nic_addhost(const char *host, const char *cmnt,
337 if ((host == NULL) || (if_num <= 0) || (if_names == NULL))
361 rc = smb_nic_dbaddhost(host, cmnt, if_list);
370 * Removes the stored interface association for the specified host
373 smb_nic_delhost(const char *host)
375 if ((host == NULL) || (*host == '\0'))
386 return (smb_nic_dbdelhost(host));
540 * If host database exists the information is retrieved from
751 syslog(LOG_ERR, "Failed to query hosts info from host " \
783 syslog(LOG_ERR, "Failed to query hosts info from host " \
801 char *host;
808 host = (char *)values[SMB_NIC_HTBL_HOST];
812 if ((host == NULL) || (ifnames == NULL)) {
825 (void) strlcpy(iflist->if_host, host, sizeof (iflist->if_host));
873 * Functions to manage host/interface database
876 * list of interface names. The host/interface association could
886 * Creates the host database based on the defined SQL statement.
900 syslog(LOG_ERR, "Failed to create host database (%s).",
909 syslog(LOG_ERR, "Failed to create host database. Unable to " \
925 syslog(LOG_ERR, "Failed to create host database. Unable to " \
926 "initialize host database (%s).", NULL_MSGCHK(errmsg));
934 syslog(LOG_ERR, "Failed to create host database. Unable to " \
947 * Opens host database with the given mode.
957 syslog(LOG_ERR, "Failed to open host database: %s (%s).",
1009 syslog(LOG_ERR, "Failed to validate host database. Unable " \
1017 syslog(LOG_ERR, "Failed to validate host database: bad " \
1027 syslog(LOG_ERR, "Failed to validate host database: bad " \
1045 syslog(LOG_ERR, "Failed to validate host database. Unable " \
1046 "to query for host (%s).", NULL_MSGCHK(errmsg));
1063 smb_nic_dbaddhost(const char *host, const char *cmnt, char *if_list)
1071 "VALUES ('%s', '%q', '%s')", host, (cmnt) ? cmnt : "", if_list);
1086 syslog(LOG_ERR, "Failed to add host %s to host database (%s).",
1087 host, NULL_MSGCHK(errmsg));
1096 smb_nic_dbdelhost(const char *host)
1103 sql = sqlite_mprintf("DELETE FROM hosts WHERE hostname = '%s'", host);
1118 syslog(LOG_ERR, "Failed to delete host %s from host " \
1119 "database (%s).", host, NULL_MSGCHK(errmsg));
1150 "host database (%s).", NULL_MSGCHK(errmsg));