4 Created: Dec 30, 1991 by Philip Homburg
6 Copyright 1995 Philip Homburg
12 #define _SYSTEM 1 /* get OK and negative error codes */
14 #include <sys/types.h>
21 #include <sys/ioc_file.h>
23 #include <minix/config.h>
24 #include <minix/type.h>
26 #define _NORETURN /* Should be non empty for GCC */
30 #include <minix/const.h>
31 #include <minix/com.h>
32 #include <minix/syslib.h>
33 #include <minix/sysutil.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>
57 #include <sys/ioc_net.h>
59 #include <net/ioctl.h>
63 #include "inet_config.h"
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()
80 #define ip_warning(print_list) \
82 printf("warning at %s, %d: ", this_file, __LINE__), \
84 printf("\ninet stacktrace: "), \
88 #define ip_warning(print_list) ((void) 0)
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)
98 extern char version
[];
101 EXTERN u32_t system_hz
;
106 #endif /* INET__INET_H */
109 * $PchId: inet.h,v 1.16 2005/06/28 14:27:54 philip Exp $