flow-timeout: set app-layer EOF flag

pull/5234/head
Victor Julien 5 years ago
parent ecd7862c36
commit a9f2540203

@ -248,6 +248,16 @@ static inline Packet *FlowForceReassemblyPseudoPacketSetup(Packet *p,
memset(&p->ts, 0, sizeof(struct timeval)); memset(&p->ts, 0, sizeof(struct timeval));
TimeGet(&p->ts); TimeGet(&p->ts);
if (direction == 0) {
if (f->alparser && !STREAM_HAS_SEEN_DATA(&ssn->client)) {
AppLayerParserStateSetFlag(f->alparser, APP_LAYER_PARSER_EOF_TS);
}
} else {
if (f->alparser && !STREAM_HAS_SEEN_DATA(&ssn->server)) {
AppLayerParserStateSetFlag(f->alparser, APP_LAYER_PARSER_EOF_TC);
}
}
return p; return p;
error: error:

Loading…
Cancel
Save