Lines Matching refs:host
91 static int delete(char *host);
94 static int get(char *host);
99 static struct sockaddr_in *getaddr(char *host);
268 * the address of the host and returns a pointer to the
272 getaddr(char *host)
280 reply.sin_addr.s_addr = inet_addr(host);
282 if (!(hp = gethostbyname(host))) {
283 xo_warnx("%s: %s", host, hstrerror(h_errno));
325 char *host = argv[0], *eaddr = argv[1];
335 dst = getaddr(host);
410 xo_warn("%s", host);
419 xo_warnx("cannot intuit interface index and type for %s", host);
431 get(char *host)
436 addr = getaddr(host);
448 host, inet_ntoa(addr->sin_addr));
465 delete(char *host)
471 dst = getaddr(host);
483 xo_warn("%s", host);
509 xo_warnx("delete: cannot locate %s", host);
517 printf("%s (%s) deleted\n", host, inet_ntoa(addr->sin_addr));
592 const char *host;
608 host = hp->h_name;
610 host = "?";
614 xo_emit("{:hostname/%s} ({:ip-address/%s}) at ", host,