~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support elliptic curve key exchange.
[tripe]
/
tun-linux.c
diff --git
a/tun-linux.c
b/tun-linux.c
index
5ffd0ad
..
84dca60
100644
(file)
--- a/
tun-linux.c
+++ b/
tun-linux.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: tun-linux.c,v 1.
1 2003/04/06 10:25:17
mdw Exp $
+ * $Id: tun-linux.c,v 1.
2 2003/11/29 23:49:32
mdw Exp $
*
* Tunnel interface based on Linux TUN/TAP driver
*
*
* Tunnel interface based on Linux TUN/TAP driver
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: tun-linux.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: tun-linux.c,v $
+ * Revision 1.2 2003/11/29 23:49:32 mdw
+ * Debianization.
+ *
* Revision 1.1 2003/04/06 10:25:17 mdw
* Support Linux TUN/TAP device. Fix some bugs.
*
* Revision 1.1 2003/04/06 10:25:17 mdw
* Support Linux TUN/TAP device. Fix some bugs.
*
@@
-113,7
+116,7
@@
int tun_create(tunnel *t, peer *p)
}
fdflags(fd, O_NONBLOCK, O_NONBLOCK, FD_CLOEXEC, FD_CLOEXEC);
iff.ifr_name[0] = 0;
}
fdflags(fd, O_NONBLOCK, O_NONBLOCK, FD_CLOEXEC, FD_CLOEXEC);
iff.ifr_name[0] = 0;
- iff.ifr_flags = IFF_TUN
| IFF_NO_PI
;
+ iff.ifr_flags = IFF_TUN;
if ((f = ioctl(fd, TUNSETIFF, &iff)) < 0) {
a_warn("couldn't set configure new TUN/TAP interface: %s",
strerror(errno));
if ((f = ioctl(fd, TUNSETIFF, &iff)) < 0) {
a_warn("couldn't set configure new TUN/TAP interface: %s",
strerror(errno));