#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | MIP_DIAG_INC(counter, amount) (void)amount |
#define | MIP_DIAG_ZERO(counter) (void)0 |
Typedefs | |
typedef int_least16_t | remaining_count |
typedef timestamp_type | timeout_type |
typedef uint64_t | timestamp_type |
Type used for packet timestamps and timeouts. More... | |
#define MIP_DIAG_INC | ( | counter, | |
amount | |||
) | (void)amount |
Definition at line 48 of file mip_types.h.
#define MIP_DIAG_ZERO | ( | counter | ) | (void)0 |
Definition at line 50 of file mip_types.h.
typedef int_least16_t remaining_count |
Definition at line 16 of file mip_types.h.
typedef timestamp_type timeout_type |
Definition at line 35 of file mip_types.h.
typedef uint64_t timestamp_type |
Type used for packet timestamps and timeouts.
Timestamps must be monotonic except for overflow at the maximum value back to 0. The units can be anything, but typically are milliseconds. Choose a long enough unit so that consecutive calls to the parser will not exceed half of the maximum value for this type. For milliseconds, the time to overflow is approximately 50 days, so the parser should be invoked at least every 25 days. Failure to observe this requirement may result in false timeouts or delays in getting parsed packets.
Definition at line 32 of file mip_types.h.