Home | History | Annotate | Line # | Download | only in ftp-proxy
      1  1.2  yamt /*	$NetBSD: ipf.h,v 1.2 2008/06/18 09:06:26 yamt Exp $ */
      2  1.2  yamt /*	$OpenBSD: filter.h,v 1.4 2007/08/01 09:31:41 henning Exp $ */
      3  1.2  yamt 
      4  1.2  yamt /*
      5  1.2  yamt  * Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd (at) sentia.nl>
      6  1.2  yamt  *
      7  1.2  yamt  * Permission to use, copy, modify, and distribute this software for any
      8  1.2  yamt  * purpose with or without fee is hereby granted, provided that the above
      9  1.2  yamt  * copyright notice and this permission notice appear in all copies.
     10  1.2  yamt  *
     11  1.2  yamt  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
     12  1.2  yamt  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     13  1.2  yamt  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     14  1.2  yamt  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     15  1.2  yamt  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     16  1.2  yamt  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     17  1.2  yamt  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     18  1.2  yamt  */
     19  1.2  yamt 
     20  1.2  yamt extern int ipf_enabled;
     21  1.2  yamt extern const char *netif;
     22  1.2  yamt 
     23  1.2  yamt int ipf_add_filter(u_int32_t, u_int8_t, struct sockaddr *, struct sockaddr *,
     24  1.2  yamt     u_int16_t);
     25  1.2  yamt int ipf_add_nat(u_int32_t, struct sockaddr *, struct sockaddr *, u_int16_t,
     26  1.2  yamt     struct sockaddr *, u_int16_t, u_int16_t);
     27  1.2  yamt int ipf_add_rdr(u_int32_t, struct sockaddr *, struct sockaddr *, u_int16_t,
     28  1.2  yamt     struct sockaddr *, u_int16_t);
     29  1.2  yamt int ipf_do_commit(void);
     30  1.2  yamt int ipf_do_rollback(void);
     31  1.2  yamt void ipf_init_filter(char *, char *, int);
     32  1.2  yamt int ipf_prepare_commit(u_int32_t);
     33  1.2  yamt int ipf_server_lookup(struct sockaddr *, struct sockaddr *, struct sockaddr *);
     34