diff options
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_bsd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 2a9f677c7..d39d2aded 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -153,7 +153,11 @@ static void initialize_tun(int tun_id) char local_mac[sizeof(LOCAL_MAC)]; snprintf_check(local_mac, sizeof(local_mac), LOCAL_MAC); +#if GOOS_openbsd + execute_command(1, "ifconfig %s lladdr %s", tun_iface, local_mac); +#else execute_command(1, "ifconfig %s ether %s", tun_iface, local_mac); +#endif char local_ipv4[sizeof(LOCAL_IPV4)]; snprintf_check(local_ipv4, sizeof(local_ipv4), LOCAL_IPV4, tun_id); |
