File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / coova-chilli / src / garden.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 22:48:25 2012 UTC (12 years, 10 months ago) by misho
Branches: coova-chilli, MAIN
CVS tags: v1_0_12, HEAD
coova-chilli

/* 
 * Copyright (c) 2006-2007 David Bird <david@coova.com>
 *
 * The contents of this file may be used under the terms of the GNU
 * General Public License Version 2, provided that the above copyright
 * notice and this permission notice is included in all copies or
 * substantial portions of the software.
 *
 */

#ifndef _GARDEN_H
#define _GARDEN_H

typedef struct pass_through_t {
  struct in_addr host;              /* IP or Network */
  struct in_addr mask;              /* Netmask */
  uint8_t proto;                       /* TCP, UDP, or ICMP */
  uint16_t port;                       /* TCP or UDP Port */
} pass_through;

int pass_through_add(pass_through *ptlist, size_t ptlen, size_t *ptcnt, pass_through *pt);
int pass_throughs_from_string(pass_through *ptlist, size_t ptlen, size_t *ptcnt, char *s);

#endif

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