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__)
14 extern void error(int fd
, int errorno
, const char *fmt
, ...);
15 extern int getline(char **line
, size_t *length
, FILE *stream
);