Added netbsd, updated chlog
This commit is contained in:
parent
8e0db6ca54
commit
369c4db4df
|
@ -8,6 +8,8 @@ iodine - IP over DNS is now easy
|
||||||
CHANGES:
|
CHANGES:
|
||||||
|
|
||||||
xxxx-xx-xx: 0.3.2
|
xxxx-xx-xx: 0.3.2
|
||||||
|
- Support for NetBSD
|
||||||
|
- Name parsing routines rewritten, added regression tests
|
||||||
- New encoding, 25% more peak upstream throughput
|
- New encoding, 25% more peak upstream throughput
|
||||||
- New -l option to set local ip to listen to on server
|
- New -l option to set local ip to listen to on server
|
||||||
|
|
||||||
|
|
4
tun.c
4
tun.c
|
@ -142,7 +142,7 @@ close_tun(int tun_fd)
|
||||||
int
|
int
|
||||||
write_tun(int tun_fd, char *data, int len)
|
write_tun(int tun_fd, char *data, int len)
|
||||||
{
|
{
|
||||||
#if defined (FREEBSD) || defined (DARWIN)
|
#if defined (FREEBSD) || defined (DARWIN) || defined(NETBSD)
|
||||||
data += 4;
|
data += 4;
|
||||||
len -= 4;
|
len -= 4;
|
||||||
#else /* !FREEBSD/DARWIN */
|
#else /* !FREEBSD/DARWIN */
|
||||||
|
@ -169,7 +169,7 @@ write_tun(int tun_fd, char *data, int len)
|
||||||
int
|
int
|
||||||
read_tun(int tun_fd, char *buf, int len)
|
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
|
// FreeBSD has no header
|
||||||
return read(tun_fd, buf + 4, len - 4) + 4;
|
return read(tun_fd, buf + 4, len - 4) + 4;
|
||||||
#else /* !FREEBSD */
|
#else /* !FREEBSD */
|
||||||
|
|
Loading…
Reference in New Issue