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

Diff of /pengfork/src/tun/openbsd/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"  #ifdef HAVE_CONFIG_H
24    # include "config.h"
25    #endif
26    
27  #include <unistd.h>  #if STDC_HEADERS
28  #include <fcntl.h>  # include <stdlib.h>
29  #include <stdlib.h>  # include <stddef.h>
30  #include <stdio.h>  #else
31  #include <string.h>  # if HAVE_STDLIB_H
32  #include <syslog.h>  #  include <stdlib.h>
33    # endif
34    #endif
35    #if HAVE_STRING_H
36    # if !STDC_HEADERS && HAVE_MEMORY_H
37    #  include <memory.h>
38    # endif
39    # include <string.h>
40    #endif
41    #ifdef HAVE_UNISTD_H
42    # include <unistd.h>
43    #endif
44    #ifdef HAVE_FCNTL_H
45    # include <fcntl.h>
46    #endif
47    #ifdef HAVE_stdio_H
48    # include <stdio.h>
49    #endif
50    #ifdef HAVE_SYSLOG_H
51    # include <syslog.h>
52    #endif
53    
54  #include <sys/types.h>  #ifdef HAVE_SYS_TYPES_H
55  #include <sys/uio.h>  # include <sys/types.h>
56  #include <sys/socket.h>  #endif
57  #include <sys/ioctl.h>  #ifdef HAVE_SYS_UIO_H
58  #include <net/if_tun.h>  # include <sys/uio.h>
59    #endif
60    #ifdef HAVE_SYS_SOCKET_H
61    # include <sys/socket.h>
62    #endif
63    #ifdef HAVE_IOCTL_H
64    # include <sys/ioctl.h>
65    #endif
66    #ifdef HAVE_NET_IF_TUN_H
67    # include <net/if_tun.h>
68    #endif
69    
70  #include <netinet/in.h>  #ifdef HAVE_NETINET_IN_H
71  #include <netinet/in_systm.h>  # include <netinet/in.h>
72  #include <netinet/ip.h>  #endif
73    #ifdef HAVE_NETINET_IN_SYSTM_H
74    # include <netinet/in_systm.h>
75    #endif
76    #ifdef HAVE_NETINET_IP_H
77    # include <netinet/ip.h>
78    #endif
79    
80  #include "gettext.h"  #include "gettext.h"
81  #include "options.h"  #include "options.h"

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