Annotation of embedaddon/miniupnpd/ipf/testipfrdr.c, revision 1.1

1.1     ! misho       1: /* $Id: testipfrdr.c,v 1.3 2007/10/01 16:21:23 nanard Exp $ */
        !             2: 
        !             3: #include <stdio.h>
        !             4: #include <syslog.h>
        !             5: #include <netinet/in.h>
        !             6: #include "ipfrdr.h"
        !             7: 
        !             8: extern void
        !             9: test_list_nat_rules();
        !            10: /* test program for ipfrdr.c */
        !            11: 
        !            12: int
        !            13: main(int argc, char * * argv)
        !            14: {
        !            15:        openlog("testipfrdrd", LOG_CONS|LOG_PERROR, LOG_USER);
        !            16:        printf("List nat rules :\n");
        !            17:        test_list_nat_rules();
        !            18:        printf("Add redirection !\n");
        !            19:        add_redirect_rule2("ep0", 12345, "1.2.3.4", 54321, IPPROTO_UDP,
        !            20:                           "redirection description");
        !            21:        printf("List nat rules :\n");
        !            22:        test_list_nat_rules();
        !            23:        return 0;
        !            24: }
        !            25: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>