From 7612c2bf5d55b5234a93ccac09448c6992f4198d Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Thu, 23 Aug 2018 04:39:13 +0200 Subject: [PATCH] Cedar: fix compilation on FreeBSD, broken by #337 --- src/Cedar/Client.c | 2 +- src/Cedar/VLanUnix.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c index 6ec024ee..86f0e126 100644 --- a/src/Cedar/Client.c +++ b/src/Cedar/Client.c @@ -9758,7 +9758,7 @@ bool CiReadSettingFromCfg(CLIENT *c, FOLDER *root) UNIX_VLAN *uv; // Create a Tap for MacOS X - if (UnixVLanCreate(CLIENT_MACOS_TAP_NAME, NULL) == false) + if (UnixVLanCreate(CLIENT_MACOS_TAP_NAME, NULL, !c->Config.NicDownOnDisconnect) == false) { // Fail (abort) CLog(c, "LC_TAP_NOT_FOUND"); diff --git a/src/Cedar/VLanUnix.c b/src/Cedar/VLanUnix.c index 9de2f629..c7e1c99e 100644 --- a/src/Cedar/VLanUnix.c +++ b/src/Cedar/VLanUnix.c @@ -672,11 +672,11 @@ void UnixCloseTapDevice(int fd) { } -int UnixCreateTapDeviceEx(char *name, char *prefix, UCHAR *mac_address) +int UnixCreateTapDeviceEx(char *name, char *prefix, UCHAR *mac_address, bool create_up) { return -1; } -int UnixCreateTapDevice(char *name, UCHAR *mac_address) +int UnixCreateTapDevice(char *name, UCHAR *mac_address, bool create_up) { return -1; }