Date: Thu, 7 Jan 2010 10:39:15 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netinet ip_divert.c ip_var.h raw_ip.c src/sys/netinet/ipfw ip_fw_private.h Message-ID: <201001071039.o07AdN7V044723@repoman.freebsd.org>
index | next in thread | raw e-mail
luigi 2010-01-07 10:39:15 UTC
FreeBSD src repository
Modified files:
sys/netinet ip_divert.c ip_var.h raw_ip.c
sys/netinet/ipfw ip_fw_private.h
Log:
SVN rev 201735 on 2010-01-07 10:39:15Z by luigi
Following up on a request from Ermal Luci to make
ip_divert work as a client of pf(4),
make ip_divert not depend on ipfw.
This is achieved by moving to ip_var.h the struct ipfw_rule_ref
(which is part of the mtag for all reinjected packets) and other
declarations of global variables, and moving to raw_ip.c global
variables for filter and divert hooks.
Note that names and locations could be made more generic
(ipfw_rule_ref is really a generic reference robust to reconfigurations;
the packet filter is not necessarily ipfw; filters and their clients
are not necessarily limited to ipv4), but _right now_ most
of this stuff works on ipfw and ipv4, so i don't feel like
doing a gratuitous renaming, at least for the time being.
Revision Changes Path
1.160 +20 -24 src/sys/netinet/ip_divert.c
1.117 +44 -3 src/sys/netinet/ip_var.h
1.10 +1 -47 src/sys/netinet/ipfw/ip_fw_private.h
1.226 +7 -3 src/sys/netinet/raw_ip.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001071039.o07AdN7V044723>
