#include <sys/types.h>#include <sys/ioctl.h>#include <sys/utsname.h>#include <errno.h>#include <fcntl.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <net/netlib.h>#include <net/hton.h>#include <net/gen/ether.h>#include <net/gen/eth_io.h>#include <net/gen/if_ether.h>#include <net/gen/in.h>#include <net/gen/inet.h>#include <net/gen/ip_io.h>#include <net/gen/netdb.h>#include <net/gen/socket.h>#include <net/gen/nameser.h>#include <net/gen/resolv.h>#include <net/gen/dhcp.h>#include <minix/paths.h>Include dependency graph for hostaddr.c:

Go to the source code of this file.
Functions | |
| void main | _ARGS ((int argc, char *argv[])) |
| void usage | _ARGS ((void)) |
| void | main (int argc, argv) |
| void | usage () |
Variables | |
| char * | prog_name |
| char | DHCPCACHE [] = _PATH_DHCPCACHE |
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 42 of file hostaddr.c. References AF_INET, c, close, d, data, dhcp_gettag(), DHCP_TAG_DOMAIN, DHCP_TAG_HOSTNAME, DHCPCACHE, dlen, ENOENT, EOF, errno, ETH_DEVICE, ether_ntoa(), exit(), fclose(), fopen(), fp, fprintf(), getenv(), gethostbyaddr, getopt(), getuid, hostent::h_name, hostname, i_flag, inet_ntoa(), ioctl, IP_DEVICE, ip_device, nodename, NULL, nwio_ethstat::nwes_addr, nwio_ipconf::nwic_ipaddr, NWIOGETHSTAT, NWIOGIPCONF, O_RDONLY, O_RDWR, open, optarg, optind, printf, prog_name, r, read, result, setuid, stderr, strcat(), strchr, strcpy(), strerror(), strlen(), and usage. |
|
|
Definition at line 307 of file hostaddr.c. |
|
|
Definition at line 37 of file hostaddr.c. Referenced by init_config(), and main(). |
|
|
Definition at line 35 of file hostaddr.c. |
1.4.6