projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for OS X utun interfaces.
[tinc]
/
src
/
linux
/
device.c
diff --git
a/src/linux/device.c
b/src/linux/device.c
index
66e790a
..
8d042d2
100644
(file)
--- a/
src/linux/device.c
+++ b/
src/linux/device.c
@@
-134,6
+134,9
@@
static bool setup_device(void) {
iface = xstrdup(strrchr(device, '/') ? strrchr(device, '/') + 1 : device);
}
iface = xstrdup(strrchr(device, '/') ? strrchr(device, '/') + 1 : device);
}
+ if(overwrite_mac && !ioctl(device_fd, SIOCGIFHWADDR, &ifr))
+ memcpy(mymac.x, ifr.ifr_hwaddr.sa_data, ETH_ALEN);
+
logger(LOG_INFO, "%s is a %s", device, device_info);
return true;
logger(LOG_INFO, "%s is a %s", device, device_info);
return true;