forked from semigodking/redsocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libc-compat.h
36 lines (31 loc) · 1.24 KB
/
libc-compat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef UUID_67C91670_FCCB_4855_BDF7_609F1EECB8B4
#define UUID_67C91670_FCCB_4855_BDF7_609F1EECB8B4
/* all these definitions, are included into bits/in.h from libc6-dev 2.15-0ubuntu10
* from Ubuntu 12.04 and is not included into libc6-dev 2.11.1-0ubuntu7.10 from
* Ubuntu 10.04.
* linux/in.h is not included directly because of lots of redefinitions,
* extracting single value from linux/in.h is not done because it looks like
* autotools reinvention */
#ifndef IP_ORIGDSTADDR
# warning Using hardcoded value for IP_ORIGDSTADDR as libc headers do not define it.
# define IP_ORIGDSTADDR 20
#endif
#ifndef IP_RECVORIGDSTADDR
# warning Using hardcoded value for IP_RECVORIGDSTADDR as libc headers do not define it.
# define IP_RECVORIGDSTADDR IP_ORIGDSTADDR
#endif
#ifndef IP_TRANSPARENT
# warning Using hardcoded value for IP_TRANSPARENT as libc headers do not define it.
# define IP_TRANSPARENT 19
#endif
#ifndef SOL_IP
# warning Using hardcoded value for SOL_IP as libc headers do not define it.
# define SOL_IP IPPROTO_IP
#endif
#ifdef __FreeBSD__
#ifndef INADDR_LOOPBACK
# warning Using hardcoded value for INADDR_LOOPBACK for FreeBSD.
# define INADDR_LOOPBACK 0x7F000001
#endif
#endif
#endif // 67C91670_FCCB_4855_BDF7_609F1EECB8B4