Browse Source

Fix potential bug in controller config request.

pull/1/head
Adam Ierymenko 11 years ago
parent
commit
07ea4fd4f9
  1. 2
      node/Network.cpp
  2. 3
      node/Switch.hpp

2
node/Network.cpp

@ -264,7 +264,7 @@ void Network::requestConfiguration()
outp.append((uint64_t)_config->revision());
else outp.append((uint64_t)0);
}
RR->sw->send(outp,true,_id);
RR->sw->send(outp,true,0);
}
bool Network::validateAndAddMembershipCertificate(const CertificateOfMembership &cert)

3
node/Switch.hpp

@ -110,7 +110,8 @@ public:
* won't be encrypted right. (This is not used for relaying.)
*
* The network ID should only be specified for frames and other actual
* network traffic.
* network traffic. Other traffic such as controller requests and regular
* protocol messages should specify zero.
*
* @param packet Packet to send
* @param encrypt Encrypt packet payload? (always true except for HELLO)

Loading…
Cancel
Save