import of 0.2-rm+zomb-pre8
[vpnc.git] / sysdep.h
blob80256686d84c8fccc037e3743331f481be1585c8
1 #ifndef __TUN_DEV_H__
2 #define __TUN_DEV_H__
4 #include <netinet/in.h>
6 int tun_open(char *dev);
7 int tun_close(int fd, char *dev);
8 int tun_write(int fd, char *buf, int len);
9 int tun_read(int fd, char *buf, int len);
11 #if defined(__linux__)
12 #include <error.h>
13 #else
14 extern void error(int fd, int errorno, const char *fmt, ...);
15 extern int getline(char **line, size_t *length, FILE *stream);
16 #endif
18 #endif