1 /* $NetBSD: trylook.c,v 1.3 1998/03/14 04:39:55 lukem Exp $ */
5 __RCSID("$NetBSD: trylook.c,v 1.3 1998/03/14 04:39:55 lukem Exp $");
9 * trylook.c - test program for lookup.c
12 #include <sys/types.h>
13 #include <netinet/in.h>
19 extern char *ether_ntoa(struct ether_addr
*);
20 extern char *inet_ntoa(struct in_addr
);
26 main(int argc
, char **argv
)
33 progname
= argv
[0]; /* for report */
35 for (i
= 1; i
< argc
; i
++) {
38 printf("%s:", argv
[i
]);
41 if (lookup_ipa(argv
[i
], &in
.s_addr
))
48 hwa
= lookup_hwa(argv
[i
], 1);
53 printf(" hwa=%s\n", a
);