1 /* $OpenBSD: filter.h,v 1.1.1.1 2012/07/11 11:43:27 dlg Exp $ */ 2 3 /* 4 * Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 #define FTP_PROXY_ANCHOR "tftp-proxy" 20 21 int add_filter(u_int32_t, u_int8_t, struct sockaddr *, struct sockaddr *, 22 u_int16_t, u_int8_t); 23 int add_rdr(u_int32_t, struct sockaddr *, struct sockaddr *, u_int16_t, 24 struct sockaddr *, u_int16_t, u_int8_t); 25 int do_commit(void); 26 int do_rollback(void); 27 void init_filter(char *, int); 28 int prepare_commit(u_int32_t); 29