diff options
author | julian <julian@FreeBSD.org> | 1998-07-06 03:20:19 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1998-07-06 03:20:19 +0000 |
commit | 22a5d80812f1c709917ff24ff791b1f952f8d6f7 (patch) | |
tree | bcc03ee3bb48fe95754fcda4fea765a7925f1343 /sys/netinet/in.h | |
parent | 04d286f6479d77492b97067c0d09e9c982b707c0 (diff) | |
download | FreeBSD-src-22a5d80812f1c709917ff24ff791b1f952f8d6f7.zip FreeBSD-src-22a5d80812f1c709917ff24ff791b1f952f8d6f7.tar.gz |
Support for IPFW based transparent forwarding.
Any packet that can be matched by a ipfw rule can be redirected
transparently to another port or machine. Redirection to another port
mostly makes sense with tcp, where a session can be set up
between a proxy and an unsuspecting client. Redirection to another machine
requires that the other machine also be expecting to receive the forwarded
packets, as their headers will not have been modified.
/sbin/ipfw must be recompiled!!!
Reviewed by: Peter Wemm <peter@freebsd.org>
Submitted by: Chrisy Luke <chrisy@flix.net>
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r-- | sys/netinet/in.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h index bb6562c..1450185 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in.h 8.3 (Berkeley) 1/3/94 - * $Id: in.h,v 1.34 1998/06/06 19:39:08 julian Exp $ + * $Id: in.h,v 1.35 1998/06/06 20:45:25 julian Exp $ */ #ifndef _NETINET_IN_H_ @@ -431,7 +431,7 @@ char *inet_ntoa __P((struct in_addr)); /* in libkern */ /* Firewall hooks */ struct ip; -typedef int ip_fw_chk_t __P((struct ip**, int, struct ifnet*, u_int16_t*, struct mbuf**)); +typedef int ip_fw_chk_t __P((struct ip**, int, struct ifnet*, u_int16_t*, struct mbuf**, struct sockaddr_in**)); typedef int ip_fw_ctl_t __P((int, struct mbuf**)); extern ip_fw_chk_t *ip_fw_chk_ptr; extern ip_fw_ctl_t *ip_fw_ctl_ptr; |