From owner-cvs-all  Thu Jan  3  1: 0:17 2002
Delivered-To: cvs-all@freebsd.org
Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39])
	by hub.freebsd.org (Postfix) with ESMTP
	id 937A237B419; Thu,  3 Jan 2002 01:00:11 -0800 (PST)
Received: from InterJet.elischer.org ([12.232.206.8])
          by rwcrmhc53.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020103090011.KHYG20122.rwcrmhc53.attbi.com@InterJet.elischer.org>;
          Thu, 3 Jan 2002 09:00:11 +0000
Received: from localhost (localhost.elischer.org [127.0.0.1])
	by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id AAA22299;
	Thu, 3 Jan 2002 00:56:06 -0800 (PST)
Date: Thu, 3 Jan 2002 00:56:05 -0800 (PST)
From: Julian Elischer <julian@elischer.org>
To: Robert Watson <rwatson@FreeBSD.org>
Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject: Re: cvs commit: src/sbin/ipfw ipfw.8
In-Reply-To: <200201030100.g0310NQ98239@freefall.freebsd.org>
Message-ID: <Pine.BSF.4.21.0201030054260.22265-100000@InterJet.elischer.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
List-ID: <cvs-all.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20cvs-all>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20cvs-all>
X-Loop: FreeBSD.ORG

However this is NOT TRUE if you use the same sockaddr
because the source address is encoded into the 
8 bytes after the address.

(This is documented in the divert man page I believe)

you can also SET the source address by encoding the bytes there yourself.
I believe NATD keeps this information but I may be wrong.


On Wed, 2 Jan 2002, Robert Watson wrote:

> rwatson     2002/01/02 17:00:23 PST
> 
>   Modified files:
>     sbin/ipfw            ipfw.8 
>   Log:
>   o Note that packets diverted using a 'divert' socket, and then
>     reinserted by a userland process, will lose a number of packet
>     attributes, including their source interface.  This may affect
>     the behavior of later rules, and while not strictly a BUG, may
>     cause unexpected behavior if not clearly documented.  A similar
>     note for natd(8) might be desirable.
>   
>   Revision  Changes    Path
>   1.100     +9 -0      src/sbin/ipfw/ipfw.8
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message