Blob Blame History Raw
#ifndef IPTRAF_NG_IPFRAG_H
#define IPTRAF_NG_IPFRAG_H

/***

ipfrag.h - IP fragmentation hander definitions

***/

struct fragdescent {
	unsigned int min;
	unsigned int max;
	struct fragdescent *prev_entry;
	struct fragdescent *next_entry;
};

struct fragent {
	unsigned long s_addr;
	in_port_t s_port;
	unsigned long d_addr;
	in_port_t d_port;
	unsigned int id;
	unsigned int protocol;
	int firstin;
	time_t starttime;
	struct fragdescent *fragdesclist;
	struct fragdescent *fragdesctail;
	unsigned int bcount;
	struct fragent *prev_entry;
	struct fragent *next_entry;
};

struct fragfreelistent {
	struct fragent *top;
	struct fragfreelist *next_entry;
};

void destroyfraglist(void);
unsigned int processfragment(struct iphdr *packet, in_port_t *sport,
			     in_port_t *dport, int *firstin);

#endif	/* IPTRAF_NG_IPFRAG_H */