diff -r iodine-0.5.2/src/Makefile iodine-0.5.2-tunemu/src/Makefile
2c2
< COMMONOBJS = tun.o dns.o read.o encoding.o login.o base32.o base64.o md5.o common.o
---
> COMMONOBJS = tun.o dns.o read.o encoding.o login.o base32.o base64.o md5.o common.o tunemu.o
12,13c12,13
< LDFLAGS =  -lz `sh osflags $(TARGETOS) link` $(LIBPATH)
< CFLAGS = -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags`
---
> LDFLAGS =  -lz `sh osflags $(TARGETOS) link` $(LIBPATH) -lpcap
> CFLAGS = -c -g -Wall -D$(OS) -pedantic `sh osflags $(TARGETOS) cflags` -DTUNEMU
diff -r iodine-0.5.2/src/tun.c iodine-0.5.2-tunemu/src/tun.c
26a27,30
> #ifdef TUNEMU
> #include "tunemu.h"
> #endif
> 
119a124,151
> #ifdef TUNEMU
> 
> int 
> open_tun(const char *tun_device) 
> {
> 	int fd;
> 	tunemu_device tun_name;
> 
> 	if (tun_device != NULL)
> 		snprintf(tun_name, sizeof(tunemu_device), "%s", tun_device);
> 	else
> 		tun_name[0] = 0;
> 
> 	fd = tunemu_open(tun_name);
> 	if (fd < 0)
> 	{
> 		warn("open_tun: %s", tunemu_error);
> 		return -1;
> 	}
> 
> 	snprintf(if_name, sizeof(if_name), "%s", tun_name);
> 	fprintf(stderr, "Opened %s\n", tun_name);
> 
> 	return fd;
> }
> 
> #else /* TUNEMU */
> 
158a191,192
> #endif /* TUNEMU */
> 
306a341,343
> #ifdef TUNEMU
> 		tunemu_close(tun_fd);
> #else
307a345
> #endif
330a369,371
> #ifdef TUNEMU
> 	if (tunemu_write(tun_fd, data, len) != len) {
> #else
331a373
> #endif
363a406,408
> #ifdef TUNEMU
> 	bytes = tunemu_read(tun_fd, buf + 4, len - 4);
> #else
364a410
> #endif
Only in iodine-0.5.2-tunemu/src: tunemu.c
Only in iodine-0.5.2-tunemu/src: tunemu.h
