Lines Matching defs:host

103 	int		nl_hcnt;	/* number of host names */
172 * Gets the number of interfaces for the specified host.
173 * if host is NULL then total number of interfaces
317 * Adds an association between the given host and the specified interface
323 * host: actual system's name (not Netbios name)
325 * the specified host. Can be NULL.
332 smb_nic_addhost(const char *host, const char *cmnt,
340 if ((host == NULL) || (if_num <= 0) || (if_names == NULL))
364 rc = smb_nic_dbaddhost(host, cmnt, if_list);
373 * Removes the stored interface association for the specified host
376 smb_nic_delhost(const char *host)
378 if ((host == NULL) || (*host == '\0'))
389 return (smb_nic_dbdelhost(host));
543 * If host database exists the information is retrieved from
754 syslog(LOG_ERR, "Failed to query hosts info from host " \
786 syslog(LOG_ERR, "Failed to query hosts info from host " \
804 char *host;
811 host = (char *)values[SMB_NIC_HTBL_HOST];
815 if ((host == NULL) || (ifnames == NULL)) {
828 (void) strlcpy(iflist->if_host, host, sizeof (iflist->if_host));
876 * Functions to manage host/interface database
879 * list of interface names. The host/interface association could
889 * Creates the host database based on the defined SQL statement.
903 syslog(LOG_ERR, "Failed to create host database (%s).",
912 syslog(LOG_ERR, "Failed to create host database. Unable to " \
928 syslog(LOG_ERR, "Failed to create host database. Unable to " \
929 "initialize host database (%s).", NULL_MSGCHK(errmsg));
937 syslog(LOG_ERR, "Failed to create host database. Unable to " \
950 * Opens host database with the given mode.
960 syslog(LOG_ERR, "Failed to open host database: %s (%s).",
1012 syslog(LOG_ERR, "Failed to validate host database. Unable " \
1020 syslog(LOG_ERR, "Failed to validate host database: bad " \
1030 syslog(LOG_ERR, "Failed to validate host database: bad " \
1048 syslog(LOG_ERR, "Failed to validate host database. Unable " \
1049 "to query for host (%s).", NULL_MSGCHK(errmsg));
1066 smb_nic_dbaddhost(const char *host, const char *cmnt, char *if_list)
1074 "VALUES ('%s', '%q', '%s')", host, (cmnt) ? cmnt : "", if_list);
1089 syslog(LOG_ERR, "Failed to add host %s to host database (%s).",
1090 host, NULL_MSGCHK(errmsg));
1099 smb_nic_dbdelhost(const char *host)
1106 sql = sqlite_mprintf("DELETE FROM hosts WHERE hostname = '%s'", host);
1121 syslog(LOG_ERR, "Failed to delete host %s from host " \
1122 "database (%s).", host, NULL_MSGCHK(errmsg));
1153 "host database (%s).", NULL_MSGCHK(errmsg));