1#ifndef NMSG_BASE_IPREASM_H
2#define NMSG_BASE_IPREASM_H
77 struct timespec timeout;
78 enum entry_state state;
79 enum reasm_proto protocol;
88struct reasm_ip *reasm_ip_new(
void);
89void reasm_ip_free(
struct reasm_ip *reasm);
102bool reasm_ip_next(
struct reasm_ip *reasm,
const uint8_t *packet,
unsigned len,
103 const struct timespec *timestamp,
struct reasm_ip_entry **out_entry);
117struct reasm_frag_entry *reasm_parse_packet(
const uint8_t *packet,
unsigned len,
118 const struct timespec *ts,
119 enum reasm_proto *protocol,
union reasm_id *
id,
120 unsigned *hash,
bool *last_frag);
125bool reasm_ip_set_timeout(
struct reasm_ip *reasm,
const struct timespec *timeout);
130unsigned reasm_ip_waiting(
const struct reasm_ip *reasm);
131unsigned reasm_ip_max_waiting(
const struct reasm_ip *reasm);
132unsigned reasm_ip_timed_out(
const struct reasm_ip *reasm);
133unsigned reasm_ip_dropped_frags(
const struct reasm_ip *reasm);
148 uint8_t *out_packet,
size_t *output_len);