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