PageRenderTime 15ms CodeModel.GetById 8ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/ntp/arlib/arplib.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 45 lines | 35 code | 6 blank | 4 comment | 0 complexity | cd4e6ac34a3f0508be15bcdb78af27a1 MD5 | raw file
 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
11struct	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
21struct	resinfo {
22	char	*ri_ptr;
23	int	ri_size;
24};
25
26struct	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