diff options
author | pst <pst@FreeBSD.org> | 1996-01-23 01:35:04 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-01-23 01:35:04 +0000 |
commit | accc2aa38fbbf04568a6d3941e897dc34aee7930 (patch) | |
tree | 9d4d2f644df6a63fbb148e0952fdf7f3ae9aebf5 /libexec/bootpd/trylook.c | |
parent | 6b42e1664561f04b1d3f497ecd5ccad48fd8c3b4 (diff) | |
download | FreeBSD-src-accc2aa38fbbf04568a6d3941e897dc34aee7930.zip FreeBSD-src-accc2aa38fbbf04568a6d3941e897dc34aee7930.tar.gz |
Import bootpd-2.4.3 from ftp.mc.com
Diffstat (limited to 'libexec/bootpd/trylook.c')
-rw-r--r-- | libexec/bootpd/trylook.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libexec/bootpd/trylook.c b/libexec/bootpd/trylook.c index 40652a2..0479166 100644 --- a/libexec/bootpd/trylook.c +++ b/libexec/bootpd/trylook.c @@ -15,7 +15,9 @@ extern char *inet_ntoa(); int debug = 0; char *progname; +void main(argc, argv) + int argc; char **argv; { int i; @@ -38,12 +40,16 @@ main(argc, argv) printf(" ipa=%s", a); /* Ether addr */ + printf(" hwa="); hwa = lookup_hwa(argv[i], 1); if (!hwa) - a = "?"; - else - a = ether_ntoa(hwa); - printf(" hwa=%s\n", a); + printf("?\n"); + else { + int i; + for (i = 0; i < 6; i++) + printf(":%x", hwa[i] & 0xFF); + putchar('\n'); + } } exit(0); |