Lines Matching defs:host

114 #define	HA	1	/* host address */
198 static void host (struct parse *, FILE *);
254 { "host", host, { OPT|NTP_STR, OPT|NTP_STR, NO, NO },
256 "specify the host whose NTP server we talk to" },
307 #define DEFHOST "localhost" /* default host name */
321 #define LENHOSTNAME 256 /* host name is 256 characters long */
337 char currenthost[LENHOSTNAME]; /* current host name */
339 struct sockaddr_in hostaddr; /* host address */
340 int showhostnames = 1; /* show host names by default */
346 int havehost = 0; /* set to 1 when host open */
428 showhostnames = 0; /* don'tshow host names by default */
431 havehost = 0; /* set to 1 when host open */
600 * openhost - open a socket to a host
687 printf("Opening host %s (%s)\n",
698 printf("Closing old host %s\n", currenthost);
821 * sendpkt - send a packet to the remote host
1461 * Check to make sure host is open
1464 fprintf(stderr, "***No host open, use `host' command\n");
1874 * getnetnum - given a host name, return its net number
1917 fprintf(stderr, "***Can't find host %s\n", hname);
1924 * nntohost - convert network number to host name. This routine enforces
1937 * nntohost_col - convert network number to host name in fixed width.
2416 * host - set the host we are dealing with.
2419 host(
2428 (void) fprintf(fp, "current host is %s\n",
2431 (void) fprintf(fp, "no current host\n");
2447 fprintf(fp, "current host set to %s\n", currenthost);
2451 fprintf(fp, "current host remains %s\n",
2454 fprintf(fp, "still no current host\n");
2460 * poll - do one (or more) polls of the host via NTP
2725 * authenticate - always authenticate requests to this host