get local MTU for Linux

This commit is contained in:
orignal 2014-10-31 14:17:52 -04:00
parent 0b77c9651b
commit a314feff33
2 changed files with 69 additions and 4 deletions

6
util.h
View file

@ -3,6 +3,7 @@
#include <map>
#include <string>
#include <boost/asio.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
@ -49,6 +50,11 @@ namespace util
std::string pass_;
};
}
namespace net
{
int GetMTU (const boost::asio::ip::address& localAddress);
}
}
}