zeek/testing/btest/scripts/base
Arne Welzel 377fd711bd HTTP: Implement FlipRoles()
When Zeek flips roles of a HTTP connection subsequent to the HTTP analyzer
being attached, that analyzer would not update its own ContentLine analyzer
state, resulting in the wrong ContentLine analyzer being switched into
plain delivery mode.

In debug builds, this would result in assertion failures, in production
builds, the HTTP analyzer would receive HTTP bodies as individual header
lines, or conversely, individual header lines would be delivered as a
large chunk from the ContentLine analyzer.

PCAPs were generated locally using tcprewrite to select well-known-http ports
for both endpoints, then editcap to drop the first SYN packet.

Kudos to @JordanBarnartt for keeping at it.

Closes #3789
2024-07-04 11:38:33 +02:00
..
files Merge branch 'files_pe_timestamp_sync' of https://github.com/mvhensbergen/zeek 2024-05-29 14:16:31 +01:00
frameworks Restore label_names field in MetricOpts record 2024-06-04 14:14:58 -07:00
misc Parse and store localversion string 2024-04-17 14:17:22 -07:00
protocols HTTP: Implement FlipRoles() 2024-07-04 11:38:33 +02:00
utils Restore label_names field in MetricOpts record 2024-06-04 14:14:58 -07:00