rx-keep-track-of-resent-packets-20010406
[openafs.git] / src / rx / rx_misc.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * rx_misc.h - Various RX configuration macros.
12  */
13
14 #ifndef _RX_MISC_H_
15 #define _RX_MISC_H_
16
17 #ifndef AFS_SUN5_ENV
18 #define MISCMTU
19 #define ADAPT_MTU
20 #endif
21
22 #if defined(AFS_SUN5_ENV) && !defined(KERNEL)
23 #define MISCMTU
24 #define ADAPT_MTU
25 #include <sys/sockio.h>
26 #include <sys/fcntl.h>
27 #endif
28
29 #if     defined(AFS_AIX41_ENV) && defined(KERNEL)
30 #define PIN(a, b) pin(a, b);
31 #define UNPIN(a, b) unpin(a, b);
32 #else 
33 #define PIN(a, b) ;
34 #define UNPIN(a, b) ;
35 #endif
36
37
38
39 /* Include the following to use the lock data base. */
40 /* #define RX_LOCKS_DB 1 */
41 /* The lock database uses a file id number and the line number to identify
42  * where in the code a lock was obtained. Each file containing locks
43  * has a separate file id called: rxdb_fileID.
44  */
45 #define RXDB_FILE_RX        1   /* rx.c */
46 #define RXDB_FILE_RX_EVENT  2   /* rx_event.c */
47 #define RXDB_FILE_RX_PACKET 3   /* rx_packet.c */
48 #define RXDB_FILE_RX_RDWR   4   /* rx_rdwr.c */
49
50 #endif /* _RX_MISC_H_ */