<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/netinet/ip_fastfwd.c, branch release/5.5.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.5.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.5.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2005-08-29T18:51:01Z</updated>
<entry>
<title>MFC rev. 1.31 (correct layer 2 broad- and multicast handling).</title>
<updated>2005-08-29T18:51:01Z</updated>
<author>
<name>Andre Oppermann</name>
<email>andre@FreeBSD.org</email>
</author>
<published>2005-08-29T18:51:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f95050442786f740a05cf40120fb5d76162e6a0d'/>
<id>urn:sha1:f95050442786f740a05cf40120fb5d76162e6a0d</id>
<content type='text'>
PR:	kern/85052
</content>
</entry>
<entry>
<title>MFC 1.27:</title>
<updated>2005-03-31T17:03:45Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-03-31T17:03:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fd64f67dff89bdba7807253fca6f77348c1a8fdd'/>
<id>urn:sha1:fd64f67dff89bdba7807253fca6f77348c1a8fdd</id>
<content type='text'>
  - Don't free mbuf, passed to interface output method if the latter
    returns error. In this case mbuf has already been freed. [1]
  - Remove redundant declaration.

  PR:             kern/78893 [1]
  Submitted by:   Liang Yi [1]
  Reviewed by:    sam

Approved by:	re (kensmith)
</content>
</entry>
<entry>
<title>MFC rev 1.24 and 1.25: Fix two double free()'s in sanity checks.</title>
<updated>2005-03-02T19:54:22Z</updated>
<author>
<name>Andre Oppermann</name>
<email>andre@FreeBSD.org</email>
</author>
<published>2005-03-02T19:54:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=92e26966996510af4e7786e571780c98b5230d1f'/>
<id>urn:sha1:92e26966996510af4e7786e571780c98b5230d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC rev 1.23:</title>
<updated>2005-02-03T14:16:47Z</updated>
<author>
<name>Bruce M Simpson</name>
<email>bms@FreeBSD.org</email>
</author>
<published>2005-02-03T14:16:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=753c7007cc6a5a5a1918991a3ed378bb2c6193ba'/>
<id>urn:sha1:753c7007cc6a5a5a1918991a3ed378bb2c6193ba</id>
<content type='text'>
 When performing IP fast forwarding, immediately drop traffic which is
 destined for a blackhole route.

 This also means that blackhole routes do not need to be bound to lo(4)
 or disc(4) interfaces for the net.inet.ip.fastforwarding=1 case.

Submitted by:   james at towardex dot com
Sponsored by:   eXtensible Open Router Project &lt;URL:http://www.xorp.org/&gt;
</content>
</entry>
<entry>
<title>MFC: /*- and related license changes</title>
<updated>2005-01-31T23:27:04Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-31T23:27:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c9769f3ab5327a99909391e070c143e92ddc43ec'/>
<id>urn:sha1:c9769f3ab5327a99909391e070c143e92ddc43ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC pfil API change:</title>
<updated>2004-10-03T17:04:41Z</updated>
<author>
<name>Max Laier</name>
<email>mlaier@FreeBSD.org</email>
</author>
<published>2004-10-03T17:04:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e28dbfbc3750d9020eacc3c2afad68e4b3aeddec'/>
<id>urn:sha1:e28dbfbc3750d9020eacc3c2afad68e4b3aeddec</id>
<content type='text'>
  Add an additional struct inpcb * argument to pfil(9) in order to enable
  passing along socket information. This is required to work around a LOR
  with the socket code which results in an easy reproducible hard lockup
  with debug.mpsafenet=1. This commit does *not* fix the LOR, but enables us
  to do so later. The missing piece is to turn the filter locking into a
  leaf lock and will follow in a seperate (later) commit.

  Suggested by:           rwatson
  A lot of work by:       csjp
  LOR IDs:                14 - 17 (not fixed yet)

Approved by:	re (scottl)
</content>
</entry>
<entry>
<title>MFC: Make PFIL_HOOKS a permanent part of the kernel and remove the associated</title>
<updated>2004-09-22T19:23:39Z</updated>
<author>
<name>Andre Oppermann</name>
<email>andre@FreeBSD.org</email>
</author>
<published>2004-09-22T19:23:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=906924251e1dbc55317f31aede7ef99b04f3c13c'/>
<id>urn:sha1:906924251e1dbc55317f31aede7ef99b04f3c13c</id>
<content type='text'>
kernel compile option.

Approved by:	re (scottl)
</content>
</entry>
<entry>
<title>MFC 1.20: Fix ip_input() fallback for the destination modified cases.</title>
<updated>2004-09-16T17:57:04Z</updated>
<author>
<name>Andre Oppermann</name>
<email>andre@FreeBSD.org</email>
</author>
<published>2004-09-16T17:57:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e685a2b8dea2b9d3bd836bc299b8a722fd78c6eb'/>
<id>urn:sha1:e685a2b8dea2b9d3bd836bc299b8a722fd78c6eb</id>
<content type='text'>
Approved by:	re (scottl)
</content>
</entry>
<entry>
<title>Convert ipfw to use PFIL_HOOKS.  This is change is transparent to userland</title>
<updated>2004-08-17T22:05:54Z</updated>
<author>
<name>Andre Oppermann</name>
<email>andre@FreeBSD.org</email>
</author>
<published>2004-08-17T22:05:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9b932e9e048ade36fd50bad5eb8b9475b0a6082d'/>
<id>urn:sha1:9b932e9e048ade36fd50bad5eb8b9475b0a6082d</id>
<content type='text'>
and preserves the ipfw ABI.  The ipfw core packet inspection and filtering
functions have not been changed, only how ipfw is invoked is different.

However there are many changes how ipfw is and its add-on's are handled:

 In general ipfw is now called through the PFIL_HOOKS and most associated
 magic, that was in ip_input() or ip_output() previously, is now done in
 ipfw_check_[in|out]() in the ipfw PFIL handler.

 IPDIVERT is entirely handled within the ipfw PFIL handlers.  A packet to
 be diverted is checked if it is fragmented, if yes, ip_reass() gets in for
 reassembly.  If not, or all fragments arrived and the packet is complete,
 divert_packet is called directly.  For 'tee' no reassembly attempt is made
 and a copy of the packet is sent to the divert socket unmodified.  The
 original packet continues its way through ip_input/output().

 ipfw 'forward' is done via m_tag's.  The ipfw PFIL handlers tag the packet
 with the new destination sockaddr_in.  A check if the new destination is a
 local IP address is made and the m_flags are set appropriately.  ip_input()
 and ip_output() have some more work to do here.  For ip_input() the m_flags
 are checked and a packet for us is directly sent to the 'ours' section for
 further processing.  Destination changes on the input path are only tagged
 and the 'srcrt' flag to ip_forward() is set to disable destination checks
 and ICMP replies at this stage.  The tag is going to be handled on output.
 ip_output() again checks for m_flags and the 'ours' tag.  If found, the
 packet will be dropped back to the IP netisr where it is going to be picked
 up by ip_input() again and the directly sent to the 'ours' section.  When
 only the destination changes, the route's 'dst' is overwritten with the
 new destination from the forward m_tag.  Then it jumps back at the route
 lookup again and skips the firewall check because it has been marked with
 M_SKIP_FIREWALL.  ipfw 'forward' has to be compiled into the kernel with
 'option IPFIREWALL_FORWARD' to enable it.

 DUMMYNET is entirely handled within the ipfw PFIL handlers.  A packet for
 a dummynet pipe or queue is directly sent to dummynet_io().  Dummynet will
 then inject it back into ip_input/ip_output() after it has served its time.
 Dummynet packets are tagged and will continue from the next rule when they
 hit the ipfw PFIL handlers again after re-injection.

 BRIDGING and IPFW_ETHER are not changed yet and use ipfw_chk() directly as
 they did before.  Later this will be changed to dedicated ETHER PFIL_HOOKS.

More detailed changes to the code:

 conf/files
	Add netinet/ip_fw_pfil.c.

 conf/options
	Add IPFIREWALL_FORWARD option.

 modules/ipfw/Makefile
	Add ip_fw_pfil.c.

 net/bridge.c
	Disable PFIL_HOOKS if ipfw for bridging is active.  Bridging ipfw
	is still directly invoked to handle layer2 headers and packets would
	get a double ipfw when run through PFIL_HOOKS as well.

 netinet/ip_divert.c
	Removed divert_clone() function.  It is no longer used.

 netinet/ip_dummynet.[ch]
	Neither the route 'ro' nor the destination 'dst' need to be stored
	while in dummynet transit.  Structure members and associated macros
	are removed.

 netinet/ip_fastfwd.c
	Removed all direct ipfw handling code and replace it with the new
	'ipfw forward' handling code.

 netinet/ip_fw.h
	Removed 'ro' and 'dst' from struct ip_fw_args.

 netinet/ip_fw2.c
	(Re)moved some global variables and the module handling.

 netinet/ip_fw_pfil.c
	New file containing the ipfw PFIL handlers and module initialization.

 netinet/ip_input.c
	Removed all direct ipfw handling code and replace it with the new
	'ipfw forward' handling code.  ip_forward() does not longer require
	the 'next_hop' struct sockaddr_in argument.  Disable early checks
	if 'srcrt' is set.

 netinet/ip_output.c
	Removed all direct ipfw handling code and replace it with the new
	'ipfw forward' handling code.

 netinet/ip_var.h
	Add ip_reass() as general function.  (Used from ipfw PFIL handlers
	for IPDIVERT.)

 netinet/raw_ip.c
	Directly check if ipfw and dummynet control pointers are active.

 netinet/tcp_input.c
	Rework the 'ipfw forward' to local code to work with the new way of
	forward tags.

 netinet/tcp_sack.c
	Remove include 'opt_ipfw.h' which is not needed here.

 sys/mbuf.h
	Remove m_claim_next() macro which was exclusively for ipfw 'forward'
	and is no longer needed.

Approved by:	re (scottl)
</content>
</entry>
<entry>
<title>Make use of in_localip() function and replace previous direct LIST_FOREACH</title>
<updated>2004-08-11T12:32:10Z</updated>
<author>
<name>Andre Oppermann</name>
<email>andre@FreeBSD.org</email>
</author>
<published>2004-08-11T12:32:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=67d0b24ed18d4975feb8040cfeea53c1e1808ee9'/>
<id>urn:sha1:67d0b24ed18d4975feb8040cfeea53c1e1808ee9</id>
<content type='text'>
loops over INADDR_HASH.
</content>
</entry>
</feed>
