Skip to content
Snippets Groups Projects
Commit 1a7bcb65 authored by dw6's avatar dw6
Browse files

formatting

parent 4da8dd90
No related branches found
No related tags found
No related merge requests found
...@@ -67,13 +67,13 @@ prefix_ std::string senf::TapSocketProtocol::init_client(std::string const & int ...@@ -67,13 +67,13 @@ prefix_ std::string senf::TapSocketProtocol::init_client(std::string const & int
prefix_ unsigned senf::TapSocketProtocol::available() prefix_ unsigned senf::TapSocketProtocol::available()
const const
{ {
if (! fh().readable()) if (!fh().readable())
return 0; return 0;
ssize_t l = ::recv(fd(),0,0,MSG_PEEK | MSG_TRUNC); ssize_t l = ::recv(fd(), 0, 0, MSG_PEEK | MSG_TRUNC);
if (l < 0) if (l < 0)
//SENF_THROW_SYSTEM_EXCEPTION(""); //SENF_THROW_SYSTEM_EXCEPTION("");
return 1588; return 1588;
return l; return l;
} }
/* /*
...@@ -98,17 +98,17 @@ prefix_ bool senf::TapSocketProtocol::eof() ...@@ -98,17 +98,17 @@ prefix_ bool senf::TapSocketProtocol::eof()
} }
prefix_ unsigned int senf::TapSocketProtocol::ifaceIndex() prefix_ unsigned int senf::TapSocketProtocol::ifaceIndex()
const const
{ {
return ifaceIndex_; return ifaceIndex_;
} }
prefix_ std::string senf::TapSocketProtocol::ifaceName() prefix_ std::string senf::TapSocketProtocol::ifaceName()
const const
{ {
char buf[IF_NAMESIZE]; char buf[IF_NAMESIZE];
if_indextoname(ifaceIndex_, buf); if_indextoname(ifaceIndex_, buf);
return std::string(buf); return std::string(buf);
} }
///////////////////////////////cc.e//////////////////////////////////////// ///////////////////////////////cc.e////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment