projects
/
debian
/
uanytun.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.3.3
[debian/uanytun.git]
/
src
/
bsd
/
tun.c
diff --git
a/src/bsd/tun.c
b/src/bsd/tun.c
index
21d16a4
..
a995c35
100644
(file)
--- a/
src/bsd/tun.c
+++ b/
src/bsd/tun.c
@@
-15,7
+15,7
@@
* tunneling and relaying of packets of any protocol.
*
*
* tunneling and relaying of packets of any protocol.
*
*
- * Copyright (C) 2007-20
08
Christian Pointner <equinox@anytun.org>
+ * Copyright (C) 2007-20
10
Christian Pointner <equinox@anytun.org>
*
* This file is part of uAnytun.
*
*
* This file is part of uAnytun.
*
@@
-183,7
+183,7
@@
int tun_init_post(tun_device_t* dev)
return 0;
}
return 0;
}
-#elif defined(__GNUC__) &&
defined(__FreeBSD__
)
+#elif defined(__GNUC__) &&
(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
)
int tun_init_post(tun_device_t* dev)
{
int tun_init_post(tun_device_t* dev)
{
@@
-318,7
+318,7
@@
void tun_do_ifconfig(tun_device_t* dev)
if(dev->type_ == TYPE_TAP) {
#if defined(__GNUC__) && defined(__OpenBSD__)
end = "link0";
if(dev->type_ == TYPE_TAP) {
#if defined(__GNUC__) && defined(__OpenBSD__)
end = "link0";
-#elif defined(__GNUC__) &&
defined(__FreeBSD__
)
+#elif defined(__GNUC__) &&
(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
)
end = "up";
#elif defined(__GNUC__) && defined(__NetBSD__)
end = NULL;
end = "up";
#elif defined(__GNUC__) && defined(__NetBSD__)
end = NULL;