#include <netinet/in.h> /* struct in_addr */

#define DEFAULT_GRAPH	0	/* turn off graphing by default */

struct mainconf {
	struct globalconfig global;
	struct rulenode rules;
}

struct globalconfig {
	int graph;
	char *filter;
}

struct rulenode {
	struct rulenode *next;
	struct addrnode *source;
	struct addrnode *dest;
	struct protonode *proto;
}

struct addrnode {
	struct addrnode *next;
	struct in_addr addr; 
}

struct protonode {
	struct protonode *next;
	int nr; /* protocol number */
	struct protoextra *extra; /* port/icmptype/whatever */
}

struct protoextra {
	unsigned short sport;
	unsigned short dport;
	int icmptype; /* FIXME: integer? */
}

