"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/stream/icmp/icmp_session.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.

icmp_session.cc  (snort3-3.1.28.0):icmp_session.cc  (snort3-3.1.29.0)
skipping to change at line 150 skipping to change at line 150
uint16_t vlan = (p->proto_bits & PROTO_BIT__VLAN) ? uint16_t vlan = (p->proto_bits & PROTO_BIT__VLAN) ?
layer::get_vlan_layer(p)->vid() : 0; layer::get_vlan_layer(p)->vid() : 0;
// FIXIT-L see FlowKey::init*() - call those instead // FIXIT-L see FlowKey::init*() - call those instead
// or do mpls differently for ip4 and ip6 // or do mpls differently for ip4 and ip6
const SnortConfig* sc = p->context->conf; const SnortConfig* sc = p->context->conf;
skey.init_vlan(sc, vlan); skey.init_vlan(sc, vlan);
skey.init_address_space(sc, 0); skey.init_address_space(sc, 0);
skey.init_mpls(sc, 0); skey.init_mpls(sc, 0);
skey.padding = skey.flags.padding_bits = 0;
skey.flags.group_used = p->is_inter_group_flow(); skey.flags.group_used = p->is_inter_group_flow();
skey.init_groups(p->pkth->ingress_group, p->pkth->egress_group, reversed); skey.init_groups(p->pkth->ingress_group, p->pkth->egress_group, reversed);
skey.flags.ubits = 0;
switch (p->type()) switch (p->type())
{ {
case PktType::TCP: case PktType::TCP:
/* Lookup a TCP session */ /* Lookup a TCP session */
ssn = Stream::get_flow(&skey); ssn = Stream::get_flow(&skey);
break; break;
case PktType::UDP: case PktType::UDP:
/* Lookup a UDP session */ /* Lookup a UDP session */
ssn = Stream::get_flow(&skey); ssn = Stream::get_flow(&skey);
 End of changes. 2 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)