1 | /* |
1 | /* |
2 | netcompat.h -- network compatibility header |
2 | netcompat.h -- network compatibility header |
|
|
3 | Copyright (C) 2003 Marc Lehmann <pcg@goof.com> |
3 | |
4 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
17 | */ |
18 | */ |
18 | |
19 | |
19 | #ifndef VPE_NETCOMPAT_H |
20 | #ifndef VPE_NETCOMPAT_H |
20 | #define VPE_NETCOMPAT_H |
21 | #define VPE_NETCOMPAT_H |
21 | |
22 | |
22 | #include "config.h" |
23 | #include <sys/types.h> |
23 | |
|
|
24 | #include <sys/socket.h> |
24 | #include <sys/socket.h> |
25 | #ifdef HAVE_NETINET_IN_H |
25 | #ifdef HAVE_NETINET_IN_H |
26 | # include <netinet/in.h> |
26 | # include <netinet/in.h> |
27 | #endif |
27 | #endif |
|
|
28 | #ifdef HAVE_ARPA_INET_H |
28 | #include <arpa/inet.h> |
29 | # include <arpa/inet.h> |
|
|
30 | #endif |
29 | #include <net/if.h> |
31 | #include <net/if.h> |
30 | #ifdef HAVE_NETINET_IN_SYSTM_H |
32 | #ifdef HAVE_NETINET_IN_SYSTM_H |
31 | # include <netinet/in_systm.h> |
33 | # include <netinet/in_systm.h> |
32 | #endif |
34 | #endif |
33 | #ifdef HAVE_NETINET_IP_H |
35 | #ifdef HAVE_NETINET_IP_H |
34 | # include <netinet/ip.h> |
36 | # include <netinet/ip.h> |
35 | #endif |
37 | #endif |
36 | |
38 | |
37 | #ifndef IPTOS_LOWCOST |
39 | #ifndef IPTOS_MINCOST |
38 | # define IPTOS_LOWCOST 0x02 |
40 | # define IPTOS_MINCOST 0x02 |
39 | #endif |
41 | #endif |
40 | #ifndef IPTOS_RELIABILITY |
42 | #ifndef IPTOS_RELIABILITY |
41 | # define IPTOS_RELIABILITY 0x04 |
43 | # define IPTOS_RELIABILITY 0x04 |
42 | #endif |
44 | #endif |
43 | #ifndef IPTOS_THROUGHPUT |
45 | #ifndef IPTOS_THROUGHPUT |