Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 May 1997 10:30:29 +1000 (EST)
From:      Darren Reed <avalon@coombs.anu.edu.au>
To:        archie@whistle.com (Archie Cobbs)
Cc:        nnd@info.itfs.nsk.su, current@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: divert still broken?
Message-ID:  <199705060032.RAA00858@hub.freebsd.org>
In-Reply-To: <199705051812.LAA05845@bubba.whistle.com> from "Archie Cobbs" at May 5, 97 11:12:33 am

next in thread | previous in thread | raw e-mail | index | archive | help
In some mail from Archie Cobbs, sie said:
> 
>  - Simplify the ip_fw_chk() function call interface

well, the list of things which you must pass are:
* pointer to a pointer to an mbuf (ip_fw_chk() may want to modify it - e.g.
	  calls m_pullup)
* interface (m_rcvif is often NULL in ip_output, besides which setting it
	     in ip_output is semantically incorrect)
* value indicating whether it is being called from ip_input or ip_output

- that's the *must have* list.  Convienience parameters are:
* pointer to the IP header
* precomputed real IP header length (from ip_hl)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705060032.RAA00858>