Lines Matching defs:host
77 static int delete(char *host);
80 static int get(char *host);
86 char *host);
252 * the address of the host and returns a pointer to the
256 getaddr(char *host)
264 reply.sin_addr.s_addr = inet_addr(host);
266 if (!(hp = gethostbyname(host))) {
267 xo_warnx("%s: %s", host, hstrerror(h_errno));
307 char *host = argv[0], *eaddr = argv[1];
317 dst = getaddr(host);
378 return (set_nl(opts.rifindex, dst, &sdl_m, host));
380 return (set_rtsock(dst, &sdl_m, host));
386 set_rtsock(struct sockaddr_in *dst, struct sockaddr_dl *sdl_m, char *host)
402 xo_warn("%s", host);
411 xo_warnx("cannot intuit interface index and type for %s", host);
424 get(char *host)
429 addr = getaddr(host);
441 host, inet_ntoa(addr->sin_addr));
460 delete_rtsock(char *host)
466 dst = getaddr(host);
478 xo_warn("%s", host);
504 xo_warnx("delete: cannot locate %s", host);
512 printf("%s (%s) deleted\n", host, inet_ntoa(addr->sin_addr));
520 delete(char *host)
523 return (delete_rtsock(host));
525 return (delete_nl(0, host));
596 const char *host;
612 host = hp->h_name;
614 host = "?";
618 xo_emit("{:hostname/%s} ({:ip-address/%s}) at ", host,