Skip to content
Snippets Groups Projects
Commit c23e1ae9 authored by tho's avatar tho
Browse files

replaced tabs with spaces.

parent abb699cd
No related branches found
No related tags found
No related merge requests found
......@@ -39,21 +39,21 @@ prefix_ void senf::ppi::module::ForwardSwitch::onRequest()
}
prefix_ bool senf::ppi::module::ForwardSwitch::forward(){
return forward_;
return forward_;
}
prefix_ bool senf::ppi::module::ForwardSwitch::forward(bool state){
forward_ = state;
return state;
forward_ = state;
return state;
}
prefix_ bool senf::ppi::module::ForwardSwitch::stopForwarding(){
return forward(false);
return forward(false);
}
prefix_ bool senf::ppi::module::ForwardSwitch::startForwarding(){
return forward(true);
return forward(true);
}
#undef prefix_
......
......@@ -44,8 +44,8 @@ public:
bool stopForwarding();
bool startForwarding();
private:
void onRequest();
bool forward_;
void onRequest();
bool forward_;
};
......
......@@ -85,7 +85,7 @@ namespace senf {
SENF_PARSER_BITFIELD ( versionNumber, 4, unsigned ); // must be 1
SENF_PARSER_BITFIELD ( command, 4, unsigned );
enum Command { JOIN=1, LEAVE=2 };
enum Command { JOIN=1, LEAVE=2 };
SENF_PARSER_FIELD ( interval, UInt8Parser ); // should be 5
SENF_PARSER_FIELD ( sequenceNumber, UInt16Parser );
......@@ -96,16 +96,16 @@ namespace senf {
SENF_PARSER_FIELD ( tunnelProtocol, UInt8Parser );
SENF_PARSER_FIELD_RO ( fbipCount, UInt8Parser );
SENF_PARSER_PRIVATE_FIELD ( reserved1_, UInt8Parser ); //must be zero
SENF_PARSER_PRIVATE_FIELD ( reserved1_, UInt8Parser ); // must be zero
// Go back to fbipCount so the variant has access to that field
SENF_PARSER_GOTO( fbipCount );
SENF_PARSER_VARIANT ( fbipList_, ipVersion,
( ids(na, has_v4fbipList, init_v4fbipList,
key(4, DTCPIPv4AddressListParser)) )
( ids(na, has_v6fbipList, init_v6fbipList,
key(6, DTCPIPv6AddressListParser)) ) );
( ids(na, has_v4fbipList, init_v4fbipList,
key(4, DTCPIPv4AddressListParser)) )
( ids(na, has_v6fbipList, init_v6fbipList,
key(6, DTCPIPv6AddressListParser)) ) );
// We define the two variant accessors ourselves so we can directly return the vector and
// not the collection parser which contains the vector ...
......
......@@ -83,9 +83,9 @@ senf::ConnectedRawV6SocketProtocol::init_client(int const & protocol, INet6Socke
const
{
init_client(protocol);
if(address.boolean_test()){
//only connect if socket is not [::]:0, this results in an irreversible binding to the lo interface (linux 2.6.15)
clientHandle().connect(address);
if(address.boolean_test()) {
//only connect if socket is not [::]:0, this results in an irreversible binding to the lo interface (linux 2.6.15)
clientHandle().connect(address);
}
}
......
......@@ -549,7 +549,7 @@ p.commalist {
}
h4 {
font-size: 100%;
font-size: 100%;
margin-bottom: .4em;
}
......
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