Lines Matching defs:host

99 	int		nl_hcnt;	/* number of host names */
170 * Gets the number of interfaces for the specified host.
171 * if host is NULL then total number of interfaces
315 * Adds an association between the given host and the specified interface
321 * host: actual system's name (not Netbios name)
323 * the specified host. Can be NULL.
330 smb_nic_addhost(const char *host, const char *cmnt,
338 if ((host == NULL) || (if_num <= 0) || (if_names == NULL))
362 rc = smb_nic_dbaddhost(host, cmnt, if_list);
371 * Removes the stored interface association for the specified host
374 smb_nic_delhost(const char *host)
376 if ((host == NULL) || (*host == '\0'))
387 return (smb_nic_dbdelhost(host));
541 * If host database exists the information is retrieved from
608 char host[MAXHOSTNAMELEN];
644 if (smb_gethostname(host, sizeof (host), SMB_CASE_PRESERVE) < 0) {
652 iflist = smb_nic_iflist_create(host, cmnt, lifn.lifn_count);
748 syslog(LOG_ERR, "Failed to query hosts info from host " \
781 syslog(LOG_ERR, "Failed to query hosts info from host " \
803 const char *host;
809 host = (const char *)sqlite3_column_text(vm, SMB_NIC_HTBL_HOST);
813 if ((host == NULL) || (ifnames == NULL) || (*ifnames == '\0')) {
823 iflist = smb_nic_iflist_create(host, cmnt, if_num);
901 * Functions to manage host/interface database
904 * list of interface names. The host/interface association could
914 * Creates the host database based on the defined SQL statement.
929 syslog(LOG_ERR, "Failed to create host database (%s).",
938 syslog(LOG_ERR, "Failed to create host database. Unable to " \
955 syslog(LOG_ERR, "Failed to create host database. Unable to " \
956 "initialize host database (%s).", NULL_MSGCHK(errmsg));
964 syslog(LOG_ERR, "Failed to create host database. Unable to " \
977 * Opens host database with the given mode.
987 syslog(LOG_ERR, "Failed to open host database: %s (%s).",
1039 syslog(LOG_ERR, "Failed to validate host database. Unable " \
1047 syslog(LOG_ERR, "Failed to validate host database: bad " \
1057 syslog(LOG_ERR, "Failed to validate host database: bad " \
1075 syslog(LOG_ERR, "Failed to validate host database. Unable " \
1076 "to query for host (%s).", NULL_MSGCHK(errmsg));
1093 smb_nic_dbaddhost(const char *host, const char *cmnt, char *if_list)
1101 "VALUES ('%s', '%q', '%s')", host, (cmnt) ? cmnt : "", if_list);
1116 syslog(LOG_ERR, "Failed to add host %s to host database (%s).",
1117 host, NULL_MSGCHK(errmsg));
1126 smb_nic_dbdelhost(const char *host)
1133 sql = sqlite3_mprintf("DELETE FROM hosts WHERE hostname = '%s'", host);
1148 syslog(LOG_ERR, "Failed to delete host %s from host " \
1149 "database (%s).", host, NULL_MSGCHK(errmsg));
1180 "host database (%s).", NULL_MSGCHK(errmsg));