diff options
author | julian <julian@FreeBSD.org> | 2006-08-17 22:49:50 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2006-08-17 22:49:50 +0000 |
commit | ff9e3178175b11cd7809c6ada10182a3554f2397 (patch) | |
tree | 13d3659c8c675327f2a39e3b2a6d78953ca0abc2 /sys/netinet/ip_fw.h | |
parent | 59cd950be143bf9ff3f67c3a051757216f0b9933 (diff) | |
download | FreeBSD-src-ff9e3178175b11cd7809c6ada10182a3554f2397.zip FreeBSD-src-ff9e3178175b11cd7809c6ada10182a3554f2397.tar.gz |
Allow ipfw to forward to a destination that is specified by a table.
for example:
fwd tablearg ip from any to table(1)
where table 1 has entries of the form:
1.1.1.0/24 10.2.3.4
208.23.2.0/24 router2
This allows trivial implementation of a secondary routing table implemented
in the firewall layer.
I expect more work (under discussion with Glebius) to follow this to clean
up some of the messy parts of ipfw related to tables.
Reviewed by: Glebius
MFC after: 1 month
Diffstat (limited to 'sys/netinet/ip_fw.h')
-rw-r--r-- | sys/netinet/ip_fw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h index 14ca1d5..086ce8e 100644 --- a/sys/netinet/ip_fw.h +++ b/sys/netinet/ip_fw.h @@ -521,6 +521,8 @@ struct ip_fw_args { struct inpcb *inp; struct _ip6dn_args dummypar; /* dummynet->ip6_output */ + struct sockaddr_in hopstore; /* store here if cannot use a pointer */ + }; /* |