* 'patch-3' of https://github.com/aeppert/bro:
  Add version to HTTP::Info
This commit is contained in:
Robin Sommer 2016-01-15 10:35:21 -08:00
commit 9431ed3fe9
3 changed files with 17 additions and 1 deletions

12
CHANGES
View file

@ -1,4 +1,16 @@
2.4-236 | 2016-01-15 10:35:21 -0800
* Add HTTP version information to HTTP log file. (Aaron Eppert)
* Add NOTIFY as a valid SIP message, per RFC 3265. (Aaron Eppert)
* Let HTTP parser reject requests that don't have both URI and
version. (William Glodek)
* Fix crash when deleting non existing record member. Addresses
BIT-1519. (Johanna Amann)
2.4-228 | 2015-12-19 13:40:09 -0800 2.4-228 | 2015-12-19 13:40:09 -0800
* Updating BroControl submodule. * Updating BroControl submodule.

View file

@ -1 +1 @@
2.4-228 2.4-236

View file

@ -41,6 +41,8 @@ export {
## misspelled like the standard declares, but the name used here ## misspelled like the standard declares, but the name used here
## is "referrer" spelled correctly. ## is "referrer" spelled correctly.
referrer: string &log &optional; referrer: string &log &optional;
## Value of the version portion of the request.
version: string &log &optional;
## Value of the User-Agent header from the client. ## Value of the User-Agent header from the client.
user_agent: string &log &optional; user_agent: string &log &optional;
## Actual uncompressed content size of the data transferred from ## Actual uncompressed content size of the data transferred from
@ -222,6 +224,8 @@ event http_reply(c: connection, version: string, code: count, reason: string) &p
c$http$status_code = code; c$http$status_code = code;
c$http$status_msg = reason; c$http$status_msg = reason;
c$http$version = version;
if ( code_in_range(code, 100, 199) ) if ( code_in_range(code, 100, 199) )
{ {
c$http$info_code = code; c$http$info_code = code;