projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac685f1
)
Use SIOCGIFADDR on BSDs that support it.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 9 Apr 2016 16:40:09 +0000
(18:40 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 9 Apr 2016 16:40:09 +0000
(18:40 +0200)
src/bsd/device.c
patch
|
blob
|
history
diff --git
a/src/bsd/device.c
b/src/bsd/device.c
index
70e0b0b
..
653076b
100644
(file)
--- a/
src/bsd/device.c
+++ b/
src/bsd/device.c
@@
-203,6
+203,11
@@
static bool setup_device(void) {
#endif
}
+#ifdef SIOCGIFADDR
+ if(overwrite_mac)
+ ioctl(device_fd, SIOCGIFADDR, mymac.x);
+#endif
+
logger(LOG_INFO, "%s is a %s", device, device_info);
return true;