Annotation of embedaddon/coova-chilli/src/garden.h, revision 1.1

1.1     ! misho       1: /* 
        !             2:  * Copyright (c) 2006-2007 David Bird <david@coova.com>
        !             3:  *
        !             4:  * The contents of this file may be used under the terms of the GNU
        !             5:  * General Public License Version 2, provided that the above copyright
        !             6:  * notice and this permission notice is included in all copies or
        !             7:  * substantial portions of the software.
        !             8:  *
        !             9:  */
        !            10: 
        !            11: #ifndef _GARDEN_H
        !            12: #define _GARDEN_H
        !            13: 
        !            14: typedef struct pass_through_t {
        !            15:   struct in_addr host;              /* IP or Network */
        !            16:   struct in_addr mask;              /* Netmask */
        !            17:   uint8_t proto;                       /* TCP, UDP, or ICMP */
        !            18:   uint16_t port;                       /* TCP or UDP Port */
        !            19: } pass_through;
        !            20: 
        !            21: int pass_through_add(pass_through *ptlist, size_t ptlen, size_t *ptcnt, pass_through *pt);
        !            22: int pass_throughs_from_string(pass_through *ptlist, size_t ptlen, size_t *ptcnt, char *s);
        !            23: 
        !            24: #endif

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