mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
FreeBSD builds!
This commit is contained in:
parent
1a02bcc9f5
commit
536bcf6505
6 changed files with 514 additions and 15 deletions
|
@ -28,24 +28,14 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "BSDEthernetTapFactory.hpp"
|
||||
#include "BSDEthernetTap.hpp"
|
||||
|
||||
#include "../node/Utils.hpp"
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
BSDEthernetTapFactory::BSDEthernetTapFactory()
|
||||
{
|
||||
struct stat stattmp;
|
||||
if (!stat("/sbin/ifconfig",&stattmp))
|
||||
_pathToIfconfig = "/sbin/ifconfig";
|
||||
else if (!stat("/usr/sbin/ifconfig",&stattmp))
|
||||
_pathToIfconfig = "/usr/sbin/ifconfig";
|
||||
else throw std::runtime_error("can't find ifconfig");
|
||||
}
|
||||
|
||||
BSDEthernetTapFactory::~BSDEthernetTapFactory()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue