36 |
Modified by Jean-Charles Salzeber <jc@varspool.net> |
Modified by Jean-Charles Salzeber <jc@varspool.net> |
37 |
to fit penggy needs |
to fit penggy needs |
38 |
*/ |
*/ |
39 |
#include <string.h> |
#if HAVE_CONFIG_H |
40 |
#include <sys/types.h> |
# include "config.h" |
41 |
#include <sys/param.h> |
#endif |
42 |
|
|
43 |
|
#if HAVE_STRING_H |
44 |
|
# if !STDC_HEADERS && HAVE_MEMORY_H |
45 |
|
# include <memory.h> |
46 |
|
# endif |
47 |
|
# include <string.h> |
48 |
|
#endif |
49 |
|
#if HAVE_SYS_TYPES_H |
50 |
|
# include <sys/types.h> |
51 |
|
#endif |
52 |
|
#if HAVE_SYS_PARAM_H |
53 |
|
# include <sys/param.h> |
54 |
|
#endif |
55 |
|
|
56 |
#ifdef SVR4 |
#ifdef SVR4 |
57 |
#ifndef __GNUC__ |
# ifndef __GNUC__ |
58 |
#include <sys/byteorder.h> /* for ntohl, etc. */ |
# include <sys/byteorder.h> /* for ntohl, etc. */ |
59 |
#else |
# else |
60 |
/* make sure we don't get the gnu "fixed" one! */ |
/* make sure we don't get the gnu "fixed" one! */ |
61 |
#include "/usr/include/sys/byteorder.h" |
# include "/usr/include/sys/byteorder.h" |
62 |
#endif |
# endif |
63 |
#endif |
#endif |
64 |
|
|
65 |
#ifdef __osf__ |
#ifdef __osf__ |
66 |
#include <net/net_globals.h> |
# include <net/net_globals.h> |
67 |
|
#endif |
68 |
|
#if HAVE_NETINET_IN_H |
69 |
|
# include <netinet/in.h> |
70 |
#endif |
#endif |
|
#include <netinet/in.h> |
|
71 |
|
|
72 |
#ifdef AIX4 |
#ifdef AIX4 |
73 |
#define _NETINET_IN_SYSTM_H_ |
# define _NETINET_IN_SYSTM_H_ |
74 |
typedef u_long n_long; |
typedef u_long n_long; |
75 |
#else |
#else |
76 |
#include <netinet/in_systm.h> |
# include <netinet/in_systm.h> |
77 |
#endif |
#endif |
78 |
|
|
79 |
#include <netinet/ip.h> |
#if HAVE_NETINET_IN_H |
80 |
|
# include <netinet/ip.h> |
81 |
|
#endif |
82 |
#include "iptunnel/bsdtcp.h" |
#include "iptunnel/bsdtcp.h" |
83 |
|
|
84 |
#include <net/ppp_defs.h> |
#if HAVE_NET_PPP_DEFS_H |
85 |
|
# include <net/ppp_defs.h> |
86 |
|
#endif |
87 |
#include "iptunnel/vjcompress.h" |
#include "iptunnel/vjcompress.h" |
88 |
|
|
89 |
#ifndef VJ_NO_STATS |
#ifndef VJ_NO_STATS |