Ticket #50 (closed Patch: Solved)
Error in TCP data length calculation
| Reported by: | lothar@… | Owned by: | vern |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Bro | Version: | 1.5.2 |
| Keywords: | Cc: |
Description
Hi all,
I tried to access the field tcp_hdr::dl in one of my bro scripts in
order to obtain the TCP payload length. But all the values calculated by
bro seemed to be way too big.
This is due to a missing ntohs() call on the total length field in the
IP-Header in Session.cc. I attached a patch against bro-1.4 that should
fix the problem.
Best regards,
Lothar
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
