2 * trylook.c - test program for lookup.c
4 * $FreeBSD: src/libexec/bootpd/trylook.c,v 1.5 1999/08/28 00:09:20 peter Exp $
5 * $DragonFly: src/libexec/bootpd/trylook.c,v 1.2 2003/06/17 04:27:07 dillon Exp $
9 #include <netinet/in.h>
15 extern char *ether_ntoa();
16 extern char *inet_ntoa();
31 progname
= argv
[0]; /* for report */
33 for (i
= 1; i
< argc
; i
++) {
36 printf("%s:", argv
[i
]);
39 if (lookup_ipa(argv
[i
], &in
.s_addr
))
47 hwa
= lookup_hwa(argv
[i
], 1);
52 for (i
= 0; i
< 6; i
++)
53 printf(":%x", hwa
[i
] & 0xFF);