struct rule {
struct cls_rule cr;
- uint16_t idle_timeout;
- uint16_t hard_timeout;
- long long int used;
- long long int created;
+ uint16_t idle_timeout; /* In seconds from time of last use. */
+ uint16_t hard_timeout; /* In seconds from time of creation. */
+ long long int used; /* Last-used time (0 if never used). */
+ long long int created; /* Creation time. */
uint64_t packet_count; /* Packets from *expired* subrules. */
uint64_t byte_count; /* Bytes from *expired* subrules. */
- uint8_t tcp_flags;
- uint8_t ip_tos;
+ uint8_t tcp_flags; /* Bitwise-OR of all TCP flags seen. */
+ uint8_t ip_tos; /* Last-seen IP type-of-service. */
struct rule *super;
struct list list;