"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "daqs/daq_file.c" 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.

daq_file.c  (snort3-3.1.28.0):daq_file.c  (snort3-3.1.29.0)
skipping to change at line 130 skipping to change at line 130
if (!desc->data) if (!desc->data)
{ {
SET_ERROR(fc->modinst, "%s: Could not allocate %d bytes for a packet descriptor message buffer!", SET_ERROR(fc->modinst, "%s: Could not allocate %d bytes for a packet descriptor message buffer!",
__func__, fc->snaplen); __func__, fc->snaplen);
return DAQ_ERROR_NOMEM; return DAQ_ERROR_NOMEM;
} }
pool->info.mem_size += fc->snaplen; pool->info.mem_size += fc->snaplen;
/* Initialize non-zero invariant packet header fields. */ /* Initialize non-zero invariant packet header fields. */
DAQ_PktHdr_t *pkthdr = &desc->pkthdr; DAQ_PktHdr_t *pkthdr = &desc->pkthdr;
pkthdr->address_space_id = 0;
pkthdr->ingress_index = DAQ_PKTHDR_UNKNOWN; pkthdr->ingress_index = DAQ_PKTHDR_UNKNOWN;
pkthdr->ingress_group = DAQ_PKTHDR_UNKNOWN; pkthdr->ingress_group = DAQ_PKTHDR_UNKNOWN;
pkthdr->egress_index = DAQ_PKTHDR_UNKNOWN; pkthdr->egress_index = DAQ_PKTHDR_UNKNOWN;
pkthdr->egress_group = DAQ_PKTHDR_UNKNOWN; pkthdr->egress_group = DAQ_PKTHDR_UNKNOWN;
pkthdr->flags = 0;
/* Initialize non-zero invariant message header fields. */ /* Initialize non-zero invariant message header fields. */
DAQ_Msg_t *msg = &desc->msg; DAQ_Msg_t *msg = &desc->msg;
msg->owner = fc->modinst; msg->owner = fc->modinst;
msg->priv = desc; msg->priv = desc;
/* Place it on the free list */ /* Place it on the free list */
desc->next = pool->freelist; desc->next = pool->freelist;
pool->freelist = desc; pool->freelist = desc;
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

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