7 #ifndef IPFRDR_H_INCLUDED 8 #define IPFRDR_H_INCLUDED 10 #include "../commonrdr.h" 14 const char * iaddr,
unsigned short iport,
int proto,
15 const char * desc,
unsigned int timestamp);
18 add_filter_rule2(
const char * ifname,
const char * rhost,
const char * iaddr,
19 unsigned short eport,
unsigned short iport,
20 int proto,
const char * desc);
29 char * iaddr,
int iaddrlen,
unsigned short * iport,
30 char * desc,
int desclen,
31 u_int64_t * packets, u_int64_t * bytes);
35 char * ifname,
unsigned short * eport,
36 char * iaddr,
int iaddrlen,
unsigned short * iport,
37 int * proto,
char * desc,
int desclen,
38 u_int64_t * packets, u_int64_t * bytes);
int add_redirect_rule2(const char *ifname, const char *rhost, unsigned short eport, const char *iaddr, unsigned short iport, 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 add_filter_rule2(const char *ifname, const char *rhost, const char *iaddr, unsigned short eport, unsigned short iport, int proto, const char *desc)
int clear_redirect_rules(void)
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 delete_filter_rule(const char *ifname, unsigned short eport, int proto)
int delete_redirect_rule(const char *ifname, unsigned short eport, int proto)