mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 13:10:31 -04:00
The difference between the old and the new distfiles are a lot of CVS ids in comments, and the config.in.h being regenerated with a newer version of autoheader. (Which we do not care about here because we use autoreconf anyway.) While there, also put up a copy in MASTER_SITE_LOCAL. - Remove expiration, I'll fix it up as best as I can if it breaks. - General cleanup of the Makefile - Fix of a manpage symlink (reason for PORTREVISION bump) - Document what the patches are for. (and regen when needed.)
26 lines
664 B
C
26 lines
664 B
C
Part of extended mode being an argument and not a compile time decision.
|
|
|
|
--- freebsd/tun_dev.c.orig 2016-10-01 21:46:01 UTC
|
|
+++ freebsd/tun_dev.c
|
|
@@ -35,6 +35,8 @@
|
|
#include "vtun.h"
|
|
#include "lib.h"
|
|
|
|
+extern int extended_mode;
|
|
+
|
|
/*
|
|
* Allocate TUN device, returns opened fd.
|
|
* Stores dev name in the first arg(must be large enough).
|
|
@@ -58,10 +60,8 @@ int tun_open(char *dev)
|
|
}
|
|
}
|
|
if( fd > -1 ){
|
|
- i=0;
|
|
- /* Disable extended modes */
|
|
- ioctl(fd, TUNSLMODE, &i);
|
|
- ioctl(fd, TUNSIFHEAD, &i);
|
|
+ ioctl(fd, TUNSLMODE, &extended_mode);
|
|
+ ioctl(fd, TUNSIFHEAD, &extended_mode);
|
|
}
|
|
return fd;
|
|
}
|