Lines Matching defs:host
78 static int delete(char *host);
81 static int get(char *host);
87 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));
459 delete_rtsock(char *host)
465 dst = getaddr(host);
477 xo_warn("%s", host);
503 xo_warnx("delete: cannot locate %s", host);
511 printf("%s (%s) deleted\n", host, inet_ntoa(addr->sin_addr));
519 delete(char *host)
522 return (delete_rtsock(host));
524 return (delete_nl(0, host));
595 const char *host;
611 host = hp->h_name;
613 host = "?";
617 xo_emit("{:hostname/%s} ({:ip-address/%s}) at ", host,