xref: /netbsd-src/external/bsd/ipf/dist/ipsend/dltest.h (revision bc4097aacfdd9307c19b7947c13c6ad6982527a9)
1*bc4097aaSchristos /*	$NetBSD: dltest.h,v 1.1.1.1 2012/03/23 21:20:06 christos Exp $	*/
2*bc4097aaSchristos 
3*bc4097aaSchristos /*
4*bc4097aaSchristos  * Common DLPI Test Suite header file
5*bc4097aaSchristos  *
6*bc4097aaSchristos  */
7*bc4097aaSchristos 
8*bc4097aaSchristos /*
9*bc4097aaSchristos  * Maximum control/data buffer size (in long's !!) for getmsg().
10*bc4097aaSchristos  */
11*bc4097aaSchristos #define		MAXDLBUF	8192
12*bc4097aaSchristos 
13*bc4097aaSchristos /*
14*bc4097aaSchristos  * Maximum number of seconds we'll wait for any
15*bc4097aaSchristos  * particular DLPI acknowledgment from the provider
16*bc4097aaSchristos  * after issuing a request.
17*bc4097aaSchristos  */
18*bc4097aaSchristos #define		MAXWAIT		15
19*bc4097aaSchristos 
20*bc4097aaSchristos /*
21*bc4097aaSchristos  * Maximum address buffer length.
22*bc4097aaSchristos  */
23*bc4097aaSchristos #define		MAXDLADDR	1024
24*bc4097aaSchristos 
25*bc4097aaSchristos 
26*bc4097aaSchristos /*
27*bc4097aaSchristos  * Handy macro.
28*bc4097aaSchristos  */
29*bc4097aaSchristos #define		OFFADDR(s, n)	(u_char*)((char*)(s) + (int)(n))
30*bc4097aaSchristos 
31*bc4097aaSchristos /*
32*bc4097aaSchristos  * externs go here
33*bc4097aaSchristos  */
34*bc4097aaSchristos extern	void	sigalrm();
35