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>
22 #include <minix/ansi.h>
23 #include <minix/cfg_public.h>
24 #include <minix/type.h>
26 #else /* Assume at least Minix 3.x */
29 #include <sys/ioc_file.h>
31 #include <minix/config.h>
32 #include <minix/type.h>
34 #define _NORETURN /* Should be non empty for GCC */
40 #include <minix/const.h>
41 #include <minix/com.h>
42 #include <minix/syslib.h>
43 #include <minix/sysutil.h>
45 #include <net/gen/ether.h>
46 #include <net/gen/eth_hdr.h>
47 #include <net/gen/eth_io.h>
48 #include <net/gen/in.h>
49 #include <net/gen/ip_hdr.h>
50 #include <net/gen/ip_io.h>
51 #include <net/gen/icmp.h>
52 #include <net/gen/icmp_hdr.h>
53 #include <net/gen/oneCsum.h>
54 #include <net/gen/psip_hdr.h>
55 #include <net/gen/psip_io.h>
56 #include <net/gen/route.h>
57 #include <net/gen/tcp.h>
58 #include <net/gen/tcp.h>
59 #include <net/gen/tcp_hdr.h>
60 #include <net/gen/tcp_io.h>
61 #include <net/gen/udp.h>
62 #include <net/gen/udp_hdr.h>
63 #include <net/gen/udp_io.h>
65 #include <net/gen/arp_io.h>
66 #include <net/ioctl.h>
69 #include "inet_config.h"
73 #define PRIVATE static
74 #define FORWARD static
76 #define THIS_FILE static char *this_file= __FILE__;
78 _PROTOTYPE( void panic0
, (char *file
, int line
) );
79 _PROTOTYPE( void inet_panic
, (void) ) _NORETURN
;
81 #define ip_panic(print_list) \
82 (panic0(this_file, __LINE__), printf print_list, panic())
83 #define panic() inet_panic()
86 #define ip_warning(print_list) \
88 printf("warning at %s, %d: ", this_file, __LINE__), \
90 printf("\ninet stacktrace: "), \
94 #define ip_warning(print_list) ((void) 0)
97 #define DBLOCK(level, code) \
98 do { if ((level) & DEBUG) { where(); code; } } while(0)
99 #define DIFBLOCK(level, condition, code) \
100 do { if (((level) & DEBUG) && (condition)) \
101 { where(); code; } } while(0)
109 extern int this_proc
;
110 extern char version
[];
112 void stacktrace
ARGS(( void ));
114 #endif /* INET__INET_H */
117 * $PchId: inet.h,v 1.16 2005/06/28 14:27:54 philip Exp $