mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Removal of the --enable-int64 config option.
This will now be always on. As such, uses of the USE_INT64 preprocessor definition have been cleaned out.
This commit is contained in:
parent
5cad4c8789
commit
13569aaab7
11 changed files with 2 additions and 66 deletions
|
@ -161,8 +161,6 @@ bro_int_t TCP_Endpoint::Size() const
|
|||
{
|
||||
bro_int_t size;
|
||||
|
||||
#ifdef USE_INT64
|
||||
|
||||
uint64 last_seq_64 = (uint64(last_seq_high) << 32) | last_seq;
|
||||
uint64 ack_seq_64 = (uint64(ack_seq_high) << 32) | ack_seq;
|
||||
if ( last_seq_64 > ack_seq_64 )
|
||||
|
@ -170,26 +168,6 @@ bro_int_t TCP_Endpoint::Size() const
|
|||
else
|
||||
size = ack_seq_64 - start_seq;
|
||||
|
||||
#else
|
||||
|
||||
if ( seq_delta(last_seq, ack_seq) > 0 || ack_seq == start_seq + 1 )
|
||||
// Either last_seq corresponds to more data sent than we've
|
||||
// seen ack'd, or we haven't seen any data ack'd (in which
|
||||
// case we should trust last_seq anyway). This last test
|
||||
// matters for the case in which the connection has
|
||||
// transferred > 2 GB of data, in which case we will find
|
||||
// seq_delta(last_seq, ack_seq) < 0 even if ack_seq
|
||||
// corresponds to no data transferred.
|
||||
size = last_seq - start_seq;
|
||||
|
||||
else
|
||||
// It could be that ack_seq > last_seq, if we've seen an
|
||||
// ack for the connection (say in a FIN) without seeing
|
||||
// the corresponding data.
|
||||
size = ack_seq - start_seq;
|
||||
|
||||
#endif
|
||||
|
||||
// Don't include SYN octet in sequence space. For partial connections
|
||||
// (no SYN seen), we're still careful to adjust start_seq as though
|
||||
// there was an initial SYN octet, because if we don't then the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue