From owner-freebsd-hackers Tue Dec 18 8:18:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 05FBD37B417 for ; Tue, 18 Dec 2001 08:18:05 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fBIGHUU98449; Tue, 18 Dec 2001 18:17:30 +0200 (EET) (envelope-from ru) Date: Tue, 18 Dec 2001 18:17:30 +0200 From: Ruslan Ermilov To: aka50 Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: NATD libalias bug or feature? Message-ID: <20011218181730.A87437@sunbay.com> References: <997578317.20011218173334@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <997578317.20011218173334@mail.ru> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Dec 18, 2001 at 05:33:34PM +0300, aka50 wrote: > Hello freebsd-hackers, > > FreeBSD 4.3 RELEASE. > > I tried to use natd transparent proxing ability with encode_ip_hdr > type. I found strange behaviour in function TcpAliasOut() > (/usr/src/lib/libalias/alias.c). When packet modified by > ProxyModify() (/usr/src/lib/libalias/alias_proxy.c), code > doesn't recompute pointer to TCP header by calling > tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2)); [...] Committed, thanks! Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message