diff options
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); |