3 #include <netinet/in.h>
6 // test program for ipfwrdr.c
8 int main(int argc
, char * * argv
) {
9 openlog("testipfwrdrd", LOG_CONS
| LOG_PERROR
, LOG_USER
);
11 delete_redirect_rule("lo", 2222, IPPROTO_TCP
);
12 add_redirect_rule2("lo", 2222, "10.1.1.16", 4444, IPPROTO_TCP
, "miniupnpd");
13 get_redirect_rule("lo", 2222, IPPROTO_TCP
, NULL
, 0, NULL
, NULL
, 0, NULL
, NULL
);