1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-25 14:36:05 +03:00

Added netbsd, updated chlog

This commit is contained in:
Erik Ekman 2006-08-25 15:34:20 +00:00
parent 8e0db6ca54
commit 369c4db4df
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@ iodine - IP over DNS is now easy
CHANGES:
xxxx-xx-xx: 0.3.2
- Support for NetBSD
- Name parsing routines rewritten, added regression tests
- New encoding, 25% more peak upstream throughput
- New -l option to set local ip to listen to on server

4
tun.c
View File

@ -142,7 +142,7 @@ close_tun(int tun_fd)
int
write_tun(int tun_fd, char *data, int len)
{
#if defined (FREEBSD) || defined (DARWIN)
#if defined (FREEBSD) || defined (DARWIN) || defined(NETBSD)
data += 4;
len -= 4;
#else /* !FREEBSD/DARWIN */
@ -169,7 +169,7 @@ write_tun(int tun_fd, char *data, int len)
int
read_tun(int tun_fd, char *buf, int len)
{
#if defined (FREEBSD) || defined (DARWIN)
#if defined (FREEBSD) || defined (DARWIN) || defined(NETBSD)
// FreeBSD has no header
return read(tun_fd, buf + 4, len - 4) + 4;
#else /* !FREEBSD */