Bring in efibootmgr(8) from FreeBSD.
[dragonfly.git] / usr.sbin / ftp-proxy / filter.h
1 /*      $OpenBSD: filter.h,v 1.4 2007/08/01 09:31:41 henning 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 "ftp-proxy"
20
21 int add_filter(u_int32_t, u_int8_t, struct sockaddr *, struct sockaddr *,
22     u_int16_t);
23 int add_nat(u_int32_t, struct sockaddr *, struct sockaddr *, u_int16_t,
24     struct sockaddr *, u_int16_t, u_int16_t);
25 int add_rdr(u_int32_t, struct sockaddr *, struct sockaddr *, u_int16_t,
26     struct sockaddr *, u_int16_t);
27 int do_commit(void);
28 int do_rollback(void);
29 void init_filter(char *, char *, int);
30 int prepare_commit(u_int32_t);
31 int server_lookup(struct sockaddr *, struct sockaddr *, struct sockaddr *);