/[pengfork]/pengfork/src/tun/linux/tun.c
ViewVC logotype

Diff of /pengfork/src/tun/linux/tun.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by chupa, Thu Dec 5 00:12:16 2002 UTC revision 1.6 by chupa, Fri Dec 6 23:05:30 2002 UTC
# Line 20  Line 20 
20   *                   *                
21   */   */
22    
23  #include "config.h"  #if HAVE_CONFIG_H
24    # include "config.h"
25  #include <stdlib.h>  #endif
26  #include <stdio.h>  
27  #include <string.h>  #if STDC_HEADERS
28  #include <fcntl.h>  # include <stdlib.h>
29  #include <unistd.h>  # include <stddef.h>
30  #include <errno.h>  #else
31  #include <sys/time.h>  # if HAVE_STDLIB_H
32  #include <sys/types.h>  #  include <stdlib.h>
33  #include <sys/ioctl.h>  # endif
34  #include <net/if.h>  #endif
35  #include <netinet/ip.h>  #if HAVE_STRING_H
36    # if !STDC_HEADERS && HAVE_MEMORY_H
37  #include <linux/if_tun.h>  #  include <memory.h>
38    # endif
39    # include <string.h>
40    #endif
41    #if TIME_WITH_SYS_TIME
42    # include <sys/time.h>
43    # include <time.h>
44    #else
45    # if HAVE_SYS_TIME_H
46    #  include <sys/time.h>
47    # else
48    #  include <time.h>
49    # endif
50    #endif
51    #if HAVE_STDIO_H
52    # include <stdio.h>
53    #endif
54    #if HAVE_FCNTL_H
55    # include <fcntl.h>
56    #endif
57    #if HAVE_UNISTD_H
58    # include <unistd.h>
59    #endif
60    #if HAVE_ERRNO_H
61    # include <errno.h>
62    #endif
63    #if HAVE_SYS_TYPES_H
64    # include <sys/types.h>
65    #endif
66    #if HAVE_SYS_IOCTL_H
67    # include <sys/ioctl.h>
68    #endif
69    #if HAVE_NET_IF_H
70    # include <net/if.h>
71    #endif
72    #if HAVE_NETINET_IP_H
73    # include <netinet/ip.h>
74    #endif
75    
76    #if HAVE_LINUX_IF_TUN_H
77    # include <linux/if_tun.h>
78    #endif
79    
80  #include "gettext.h"  #include "gettext.h"
81  #include "tun/tun.h"  #include "tun/tun.h"
# Line 89  tun_open_old () Line 130  tun_open_old ()
130  }  }
131    
132  #ifdef HAVE_LINUX_IF_TUN_H      /* New driver support */  #ifdef HAVE_LINUX_IF_TUN_H      /* New driver support */
133  #include <linux/if_tun.h>  #if HAVE_LINUX_IF_TUN_H
134    # include <linux/if_tun.h>
135    #endif
136    
137  /* pre 2.4.6 compatibility */  /* pre 2.4.6 compatibility */
138  #define OTUNSETNOCSUM  (('T'<< 8) | 200)  #define OTUNSETNOCSUM  (('T'<< 8) | 200)

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26