"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/side_channel/side_channel.cc" between
snort3-3.1.28.0.tar.gz and snort3-3.1.29.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

side_channel.cc  (snort3-3.1.28.0):side_channel.cc  (snort3-3.1.29.0)
skipping to change at line 248 skipping to change at line 248
void SideChannel::unregister_receive_handler() void SideChannel::unregister_receive_handler()
{ {
receive_handler = nullptr; receive_handler = nullptr;
} }
SCMessage* SideChannel::alloc_transmit_message(uint32_t content_length) SCMessage* SideChannel::alloc_transmit_message(uint32_t content_length)
{ {
SCMessage* msg = new SCMessage; SCMessage* msg = new SCMessage;
msg->handle = connector_transmit->alloc_message((content_length + sizeof(SCM sgHdr)), msg->handle = connector_transmit->alloc_message((content_length + sizeof(SCM sgHdr)),
(const uint8_t**)&(msg->hdr)); const_cast<const uint8_t**>(reinterpret_cast<uint8_t**>(&msg->hdr)));
assert(msg->handle); assert(msg->handle);
msg->sc = this; msg->sc = this;
msg->connector = connector_transmit; msg->connector = connector_transmit;
msg->content_length = content_length; msg->content_length = content_length;
msg->content = (uint8_t*)msg->hdr + sizeof(SCMsgHdr); msg->content = (uint8_t*)msg->hdr + sizeof(SCMsgHdr);
msg->hdr->port = default_port; msg->hdr->port = default_port;
return msg; return msg;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)