7 #ifndef COMMONRDR_H_INCLUDED 8 #define COMMONRDR_H_INCLUDED 30 char * iaddr,
int iaddrlen,
unsigned short * iport,
31 char * desc,
int desclen,
32 char * rhost,
int rhostlen,
33 unsigned int * timestamp,
34 u_int64_t * packets, u_int64_t * bytes);
42 char * ifname,
unsigned short * eport,
43 char * iaddr,
int iaddrlen,
unsigned short * iport,
44 int * proto,
char * desc,
int desclen,
45 char * rhost,
int rhostlen,
46 unsigned int * timestamp,
47 u_int64_t * packets, u_int64_t * bytes);
53 int proto,
unsigned int * number);
58 unsigned short iport,
const char * desc,
59 unsigned int timestamp);
64 unsigned short eport,
int proto,
65 const char * desc,
unsigned int timestamp);
int update_portmapping_desc_timestamp(const char *ifname, unsigned short eport, int proto, const char *desc, unsigned int timestamp)
int get_redirect_rule(const char *ifname, unsigned short eport, int proto, char *iaddr, int iaddrlen, unsigned short *iport, char *desc, int desclen, char *rhost, int rhostlen, unsigned int *timestamp, u_int64_t *packets, u_int64_t *bytes)
int get_redirect_rule_by_index(int index, char *ifname, unsigned short *eport, char *iaddr, int iaddrlen, unsigned short *iport, int *proto, char *desc, int desclen, char *rhost, int rhostlen, unsigned int *timestamp, u_int64_t *packets, u_int64_t *bytes)
int update_portmapping(const char *ifname, unsigned short eport, int proto, unsigned short iport, const char *desc, unsigned int timestamp)
void shutdown_redirect(void)
unsigned short * get_portmappings_in_range(unsigned short startport, unsigned short endport, int proto, unsigned int *number)