1*e0bfbfceSBjoern A. Zeeb /* $OpenBSD: filter.h,v 1.4 2007/08/01 09:31:41 henning Exp $ */ 267ecd4f3SMax Laier 367ecd4f3SMax Laier /* 467ecd4f3SMax Laier * Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl> 567ecd4f3SMax Laier * 667ecd4f3SMax Laier * Permission to use, copy, modify, and distribute this software for any 767ecd4f3SMax Laier * purpose with or without fee is hereby granted, provided that the above 867ecd4f3SMax Laier * copyright notice and this permission notice appear in all copies. 967ecd4f3SMax Laier * 1067ecd4f3SMax Laier * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 1167ecd4f3SMax Laier * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1267ecd4f3SMax Laier * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1367ecd4f3SMax Laier * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1467ecd4f3SMax Laier * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1567ecd4f3SMax Laier * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1667ecd4f3SMax Laier * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1767ecd4f3SMax Laier */ 1867ecd4f3SMax Laier 1967ecd4f3SMax Laier #define FTP_PROXY_ANCHOR "ftp-proxy" 2067ecd4f3SMax Laier 2167ecd4f3SMax Laier int add_filter(u_int32_t, u_int8_t, struct sockaddr *, struct sockaddr *, 2267ecd4f3SMax Laier u_int16_t); 2367ecd4f3SMax Laier int add_nat(u_int32_t, struct sockaddr *, struct sockaddr *, u_int16_t, 2467ecd4f3SMax Laier struct sockaddr *, u_int16_t, u_int16_t); 2567ecd4f3SMax Laier int add_rdr(u_int32_t, struct sockaddr *, struct sockaddr *, u_int16_t, 2667ecd4f3SMax Laier struct sockaddr *, u_int16_t); 2767ecd4f3SMax Laier int do_commit(void); 2867ecd4f3SMax Laier int do_rollback(void); 29*e0bfbfceSBjoern A. Zeeb void init_filter(const char *, const char *, int); 3067ecd4f3SMax Laier int prepare_commit(u_int32_t); 3167ecd4f3SMax Laier int server_lookup(struct sockaddr *, struct sockaddr *, struct sockaddr *); 32