test41: relax maximum timer tick rate
[minix.git] / servers / inet / inet.h
blob2e1b92224db03f0ddf8690dda31e6c285e9f1941
1 /*
2 inet/inet.h
4 Created: Dec 30, 1991 by Philip Homburg
6 Copyright 1995 Philip Homburg
7 */
9 #ifndef INET__INET_H
10 #define INET__INET_H
12 #define _SYSTEM 1 /* get OK and negative error codes */
14 #include <sys/types.h>
15 #include <errno.h>
16 #include <stddef.h>
17 #include <stdlib.h>
18 #include <string.h>
20 #include <unistd.h>
21 #include <sys/ioc_file.h>
22 #include <sys/time.h>
23 #include <minix/config.h>
24 #include <minix/type.h>
26 #define _NORETURN /* Should be non empty for GCC */
28 typedef int ioreq_t;
30 #include <minix/const.h>
31 #include <minix/com.h>
32 #include <minix/syslib.h>
33 #include <minix/sysutil.h>
34 #include <net/hton.h>
35 #include <net/gen/ether.h>
36 #include <net/gen/eth_hdr.h>
37 #include <net/gen/eth_io.h>
38 #include <net/gen/in.h>
39 #include <net/gen/ip_hdr.h>
40 #include <net/gen/ip_io.h>
41 #include <net/gen/icmp.h>
42 #include <net/gen/icmp_hdr.h>
43 #include <net/gen/oneCsum.h>
44 #include <net/gen/psip_hdr.h>
45 #include <net/gen/psip_io.h>
46 #include <net/gen/route.h>
47 #include <net/gen/tcp.h>
48 #include <net/gen/tcp.h>
49 #include <net/gen/tcp_hdr.h>
50 #include <net/gen/tcp_io.h>
51 #include <net/gen/udp.h>
52 #include <net/gen/udp_hdr.h>
53 #include <net/gen/udp_io.h>
55 #include <net/gen/arp_io.h>
56 #ifdef __NBSD_LIBC
57 #include <sys/ioc_net.h>
58 #else
59 #include <net/ioctl.h>
60 #endif
62 #include "const.h"
63 #include "inet_config.h"
65 #define PUBLIC
66 #define EXTERN extern
67 #define PRIVATE static
68 #define FORWARD static
70 #define THIS_FILE static char *this_file= __FILE__;
72 void panic0(char *file, int line);
73 void inet_panic(void) _NORETURN;
75 #define ip_panic(print_list) \
76 (panic0(this_file, __LINE__), printf print_list, panic())
77 #define panic() inet_panic()
79 #if DEBUG
80 #define ip_warning(print_list) \
81 ( \
82 printf("warning at %s, %d: ", this_file, __LINE__), \
83 printf print_list, \
84 printf("\ninet stacktrace: "), \
85 util_stacktrace() \
87 #else
88 #define ip_warning(print_list) ((void) 0)
89 #endif
91 #define DBLOCK(level, code) \
92 do { if ((level) & DEBUG) { where(); code; } } while(0)
93 #define DIFBLOCK(level, condition, code) \
94 do { if (((level) & DEBUG) && (condition)) \
95 { where(); code; } } while(0)
97 extern int this_proc;
98 extern char version[];
100 #ifndef HZ
101 EXTERN u32_t system_hz;
102 #define HZ system_hz
103 #define HZ_DYNAMIC 1
104 #endif
106 #endif /* INET__INET_H */
109 * $PchId: inet.h,v 1.16 2005/06/28 14:27:54 philip Exp $