Sync usage with man page.
[netbsd-mini2440.git] / dist / ntp / arlib / arplib.h
blob3bb3ade3653a3222f12c5ebdfe961c484de4c93b
1 /* $NetBSD$ */
3 /*
4 * arplib.h (C)opyright 1992 Darren Reed.
5 */
7 #define MAXPACKET 1024
8 #define MAXALIASES 35
9 #define MAXADDRS 35
11 #define RES_CHECKPTR 0x0400
13 struct hent {
14 char *h_name; /* official name of host */
15 char *h_aliases[MAXALIASES]; /* alias list */
16 int h_addrtype; /* host address type */
17 int h_length; /* length of address */
18 /* list of addresses from name server */
19 struct in_addr h_addr_list[MAXADDRS];
20 #define h_addr h_addr_list[0] /* address, for backward compatiblity */
23 struct resinfo {
24 char *ri_ptr;
25 int ri_size;
28 struct reslist {
29 int re_id;
30 char re_type;
31 char re_retries;
32 char re_resend; /* send flag. 0 == dont resend */
33 char re_sends;
34 char re_srch;
35 int re_sent;
36 u_long re_sentat;
37 u_long re_timeout;
38 struct in_addr re_addr;
39 struct resinfo re_rinfo;
40 struct hent re_he;
41 struct reslist *re_next, *re_prev;
42 char re_name[65];
45 #ifndef MIN
46 #define MIN(a,b) ((a) > (b) ? (b) : (a))
47 #endif