Skip to Content
[CAIDA - Cooperative Association for Internet Data Analysis logo]
The Cooperative Association for Internet Data Analysis
corsaro_interval Struct Reference

Structure representing the start or end of an interval. More...

Data Fields

uint32_t corsaro_magic
 The global corsaro magic number.
uint32_t magic
 The interval magic number.
uint16_t number
 The interval number (starts at 0)
uint32_t time
 The time this interval started/ended.

Detailed Description

Structure representing the start or end of an interval.

The start time represents the first second which this interval covers. I.e. start.time <= pkt.time for all pkt in the interval The end time represents the last second which this interval covers. I.e. end.time >= pkt.time for all pkt in the interval

If looking at the start and end interval records for a given interval, the interval duration will be:

end.time - start.time + 1

The +1 includes the final second in the time.

If corsaro is shutdown at any time other than an interval boundary, the end.time value will be the seconds component of the arrival time of the last observed packet.

Values are all in HOST byte order

Definition at line 149 of file corsaro_int.h.


Field Documentation

uint32_t corsaro_interval::corsaro_magic

The global corsaro magic number.

Definition at line 152 of file corsaro_int.h.

uint32_t corsaro_interval::magic

The interval magic number.

Definition at line 154 of file corsaro_int.h.

uint16_t corsaro_interval::number

The interval number (starts at 0)

Definition at line 156 of file corsaro_int.h.

Referenced by corsaro_io_print_interval_end(), corsaro_io_print_interval_start(), and corsaro_per_packet().

uint32_t corsaro_interval::time

The time this interval started/ended.

Definition at line 158 of file corsaro_int.h.

Referenced by corsaro_io_print_interval_end(), corsaro_io_print_interval_start(), and main().


The documentation for this struct was generated from the following file: