mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
HTTP: Add mechanism to instantiate Upgrade analyzer
When a HTTP upgrade request/reply is detected, lookup an analyzer tag from HTTP::upgrade_analyzers, or if nothing is found, attach PIA_TCP.
This commit is contained in:
parent
b5f9e5a3b1
commit
8ebd054abc
3 changed files with 59 additions and 15 deletions
|
@ -423,7 +423,6 @@ export {
|
|||
## The full list of TCP Option fields parsed from a TCP header.
|
||||
type OptionList: vector of Option;
|
||||
}
|
||||
module GLOBAL;
|
||||
|
||||
module Tunnel;
|
||||
export {
|
||||
|
@ -449,6 +448,16 @@ export {
|
|||
const max_changes_per_connection: count = 5 &redef;
|
||||
|
||||
} # end export
|
||||
|
||||
module HTTP;
|
||||
export {
|
||||
## Lookup table for Upgrade analyzers. First, a case sensitive lookup
|
||||
## is done using the client's Upgrade header. If no match is found,
|
||||
## the all lower-case value is used. If there's still no match Zeek
|
||||
## uses dynamic protocol detection for the upgraded to protocol instead.
|
||||
const upgrade_analyzers: table[string] of Analyzer::Tag &redef;
|
||||
}
|
||||
|
||||
module GLOBAL;
|
||||
|
||||
## A type alias for a vector of encapsulating "connections", i.e. for when
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue