aboutsummaryrefslogtreecommitdiff
path: root/libexec/bootpd/trylook.c
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1996-01-23 01:35:04 +0000
committerPaul Traina <pst@FreeBSD.org>1996-01-23 01:35:04 +0000
commite08ac58bbe2be2817736b8f4b32c75f8d55359df (patch)
tree145d6ce072fde2eeda7863a006d92fd2c1eec916 /libexec/bootpd/trylook.c
parenta270abb407a717b6c38a10d1c996af9ac907f84a (diff)
Notes
Diffstat (limited to 'libexec/bootpd/trylook.c')
-rw-r--r--libexec/bootpd/trylook.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/libexec/bootpd/trylook.c b/libexec/bootpd/trylook.c
index 40652a21159b..0479166d2f35 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);