This fixes redmine bug #2057 by setting pseudopacket iface and vlan from
flow values, solving the problem of missing vlan/iface when psuedopacket
gets logged/alerted on.
p->flags |= PKT_STREAM_EOF;
p->flags |= PKT_HAS_FLOW;
p->flags |= PKT_PSEUDO_STREAM_END;
+ p->vlan_id[0] = f->vlan_id[0];
+ p->vlan_id[1] = f->vlan_id[1];
+ p->vlan_idx = f->vlan_idx;
+ p->livedev = (struct LiveDevice_ *)f->livedev;
if (f->flags & FLOW_NOPACKET_INSPECTION) {
DecodeSetNoPacketInspectionFlag(p);
FlowForceReassemblyForHash();
return;
}
-
np->flags |= PKT_HAS_FLOW;
np->flags |= PKT_IGNORE_CHECKSUM;
np->flags |= PKT_PSEUDO_DETECTLOG_FLUSH;
+ np->vlan_id[0] = f->vlan_id[0];
+ np->vlan_id[1] = f->vlan_id[1];
+ np->vlan_idx = f->vlan_idx;
+ np->livedev = (struct LiveDevice_ *)f->livedev;
if (f->flags & FLOW_NOPACKET_INSPECTION) {
DecodeSetNoPacketInspectionFlag(np);
StreamTcpSackRegisterTests ();
#endif /* UNITTESTS */
}
-