notes
This commit is contained in:
@@ -50,6 +50,8 @@ public:
|
||||
namespace epics {
|
||||
namespace pvAccess {
|
||||
|
||||
// these are byte offset in a CMD_SEARCH request message
|
||||
// used to mangle a buffer to support incremental construction. (ick!!!)
|
||||
const int ChannelSearchManager::DATA_COUNT_POSITION = PVA_MESSAGE_HEADER_SIZE + 4+1+3+16+2+1+4;
|
||||
const int ChannelSearchManager::CAST_POSITION = PVA_MESSAGE_HEADER_SIZE + 4;
|
||||
const int ChannelSearchManager::PAYLOAD_POSITION = 4;
|
||||
|
||||
@@ -283,6 +283,7 @@ void ServerSearchHandler::handleResponse(osiSockAddr* responseFrom,
|
||||
const int32 count = payloadBuffer->getShort() & 0xFFFF;
|
||||
|
||||
// TODO DoS attack?
|
||||
// You bet! With a reply address encoded in the request we don't even need a forged UDP header.
|
||||
const bool responseRequired = (QOS_REPLY_REQUIRED & qosCode) != 0;
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user