1*48ed0d11Smikeb /* $OpenBSD: filter.h,v 1.7 2011/04/28 00:17:28 mikeb Exp $ */ 28bfc93fdScamield 33b53f69aScamield /* 43b53f69aScamield * Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl> 53b53f69aScamield * 63b53f69aScamield * Permission to use, copy, modify, and distribute this software for any 73b53f69aScamield * purpose with or without fee is hereby granted, provided that the above 83b53f69aScamield * copyright notice and this permission notice appear in all copies. 93b53f69aScamield * 103b53f69aScamield * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 113b53f69aScamield * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 123b53f69aScamield * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 133b53f69aScamield * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 143b53f69aScamield * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 153b53f69aScamield * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 163b53f69aScamield * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 173b53f69aScamield */ 183b53f69aScamield 193b53f69aScamield #define FTP_PROXY_ANCHOR "ftp-proxy" 203b53f69aScamield 2185ec68abSclaudio int add_nat(u_int32_t, struct sockaddr *, int, struct sockaddr *, u_int16_t, 223b53f69aScamield struct sockaddr *, u_int16_t, u_int16_t); 2385ec68abSclaudio int add_rdr(u_int32_t, struct sockaddr *, int, struct sockaddr *, u_int16_t, 2485ec68abSclaudio struct sockaddr *, u_int16_t, int); 253b53f69aScamield int do_commit(void); 263b53f69aScamield int do_rollback(void); 271a90e72aShenning void init_filter(char *, char *, int); 283b53f69aScamield int prepare_commit(u_int32_t); 29