]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ntp/arlib/arplib.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ntp / arlib / arplib.h
1 /*
2  * arplib.h (C)opyright 1992 Darren Reed.
3  */
4
5 #define MAXPACKET       1024
6 #define MAXALIASES      35
7 #define MAXADDRS        35
8
9 #define RES_CHECKPTR    0x0400
10
11 struct  hent {
12         char    *h_name;        /* official name of host */
13         char    *h_aliases[MAXALIASES]; /* alias list */
14         int     h_addrtype;     /* host address type */
15         int     h_length;       /* length of address */
16         /* list of addresses from name server */
17         struct  in_addr h_addr_list[MAXADDRS];
18 #define h_addr  h_addr_list[0]  /* address, for backward compatiblity */
19 };
20
21 struct  resinfo {
22         char    *ri_ptr;
23         int     ri_size;
24 };
25
26 struct  reslist {
27         int     re_id;
28         char    re_type;
29         char    re_retries;
30         char    re_resend;      /* send flag. 0 == dont resend */
31         char    re_sends;
32         char    re_srch;
33         int     re_sent;
34         u_long  re_sentat;
35         u_long  re_timeout;
36         struct  in_addr re_addr;
37         struct  resinfo re_rinfo;
38         struct  hent re_he;
39         struct  reslist *re_next, *re_prev;
40         char    re_name[65];
41 };
42
43 #ifndef MIN
44 #define MIN(a,b)        ((a) > (b) ? (b) : (a))
45 #endif