1 /*
2 inet/nw_task.h
3
4 Created: Dec 30, 1991 by Philip Homburg
5 */
6
7 #ifndef INET__NW_TASK_H
8 #define INET__NW_TASK_H
9
10 #define _MINIX 1
11 #define _SYSTEM 1 /* get OK and negative error codes */
12
13 #include <sys/types.h>
14 #include <errno.h>
15 #include <stddef.h>
16 #include <stdlib.h>
17 #include <string.h>
18
19 #include <ansi.h>
20 #include <minix/config.h>
21 #include <minix/type.h>
22
23 #include <minix/com.h>
24 #include <minix/const.h>
25 #include <minix/syslib.h>
26 #include <net/hton.h>
27 #include <net/gen/ether.h>
28 #include <net/gen/eth_hdr.h>
29 #include <net/gen/eth_io.h>
30 #include <net/gen/in.h>
31 #include <net/gen/ip_hdr.h>
32 #include <net/gen/ip_io.h>
33 #include <net/gen/icmp.h>
34 #include <net/gen/icmp_hdr.h>
35 #include <net/gen/oneCsum.h>
36 #include <net/gen/route.h>
37 #include <net/gen/tcp.h>
38 #include <net/gen/tcp_hdr.h>
39 #include <net/gen/tcp_io.h>
40 #include <net/gen/udp.h>
41 #include <net/gen/udp_hdr.h>
42 #include <net/gen/udp_io.h>
43 #include <sys/ioctl.h>
44
45 /* Ioctl's may contain size and type encoding. It pays to extract the type. */
46 #ifdef _IOCTYPE_MASK
47 #define IOCTYPE_MASK _IOCTYPE_MASK
48 #define IOCPARM_MASK _IOCPARM_MASK
49 #else
50 #define IOCTYPE_MASK 0xFFFF
51 #endif
52
53 #include "const.h"
54
55 #define PUBLIC
56 #define EXTERN extern
57 #define PRIVATE static
58 #define FORWARD static
59
60 #define INIT_PANIC() static char *ip_panic_warning_file= __FILE__
61
62 #define ip_panic(print_list) \
63 ( \
64 printf("panic at %s, %d: ", ip_panic_warning_file, __LINE__), \
65 printf print_list, \
66 printf("\n"), \
67 abort(), \
68 0 \
69 )
70
71 #define ip_warning(print_list) \
72 ( \
73 printf("warning at %s, %d: ", ip_panic_warning_file, \
74 __LINE__), \
75 printf print_list, \
76 printf("\n"), \
77 0 \
78 )
79
80 #if _ANSI
81 #define ARGS(x) x
82 #else /* _ANSI */
83 #define ARGS(x) ()
84 #endif /* _ANSI */
85
86 #endif /* INET__NW_TASK_H */
87
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.