"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/preprocessors/spp_sfportscan.c" between
snort-2.9.16.1.tar.gz and snort-2.9.17.tar.gz

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

spp_sfportscan.c  (snort-2.9.16.1):spp_sfportscan.c  (snort-2.9.17)
skipping to change at line 442 skipping to change at line 442
if (!IsIP(p)) if (!IsIP(p))
return -1; return -1;
if ( !ps_pkt->reverse_pkt ) if ( !ps_pkt->reverse_pkt )
flags |= ENC_FLAG_FWD; flags |= ENC_FLAG_FWD;
if (p != g_tmp_pkt) if (p != g_tmp_pkt)
{ {
#if defined(HAVE_DAQ_ADDRESS_SPACE_ID) && defined(DAQ_VERSION) && DAQ_VERSION > 6 #if defined(HAVE_DAQ_ADDRESS_SPACE_ID) && defined(DAQ_VERSION) && DAQ_VERSION > 6
DAQ_PktHdr_t phdr; DAQ_PktHdr_t phdr;
memcpy(&phdr, &p->pkth, sizeof(p->pkth)); memcpy(&phdr, &p->pkth, sizeof(*p->pkth));
if (p->pkth->flags & DAQ_PKT_FLAG_REAL_ADDRESSES) if (p->pkth->flags & DAQ_PKT_FLAG_REAL_ADDRESSES)
{ {
phdr.flags &= ~(DAQ_PKT_FLAG_REAL_SIP_V6 | DAQ_PKT_FLAG_REAL_DIP_V6); phdr.flags &= ~(DAQ_PKT_FLAG_REAL_SIP_V6 | DAQ_PKT_FLAG_REAL_DIP_V6);
if (flags & ENC_FLAG_FWD) if (flags & ENC_FLAG_FWD)
{ {
phdr.flags |= phdr.flags & (DAQ_PKT_FLAG_REAL_SIP_V6 | DAQ_PKT_FLAG_RE AL_DIP_V6); phdr.flags |= phdr.flags & (DAQ_PKT_FLAG_REAL_SIP_V6 | DAQ_PKT_FLAG_RE AL_DIP_V6);
phdr.real_sIP = p->pkth->real_sIP; phdr.real_sIP = p->pkth->real_sIP;
phdr.real_dIP = p->pkth->real_dIP; phdr.real_dIP = p->pkth->real_dIP;
} }
else else
 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)