From owner-freebsd-hackers Tue Dec 18 23:25:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from www.technobank.com.by (www.tb.by [212.98.163.83]) by hub.freebsd.org (Postfix) with ESMTP id 7C99237B419; Tue, 18 Dec 2001 23:25:43 -0800 (PST) Received: from 10.20.1.109 ([10.20.2.4]) by www.technobank.com.by (Lotus Domino Release 5.0.4) with ESMTP id 2001121909232041:414 ; Wed, 19 Dec 2001 09:23:20 +0200 Date: Wed, 19 Dec 2001 09:25:02 +0200 From: shupilov X-Mailer: The Bat! (v1.47 Halloween Edition) Personal Reply-To: shupilov Organization: tb X-Priority: 3 (Normal) Message-ID: <187150446680.20011219092502@tb.by> Subject: Re[2]: NATD libalias bug or feature? In-reply-To: <20011218181730.A87437@sunbay.com> References: <997578317.20011218173334@mail.ru> <20011218181730.A87437@sunbay.com> Mime-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on WEB/TBK(Release 5.0.4 |June 8, 2000) at 19.12.2001 09:23:20, Serialize by Router on WEB/TBK(Release 5.0.4 |June 8, 2000) at 19.12.2001 09:23:39, Serialize complete at 19.12.2001 09:23:39 To: Ruslan Ermilov Cc: freebsd-hackers@FreeBSD.ORG Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 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 Hello everybody, Tuesday, December 18, 2001, 6:17:30 PM, you wrote: RE> 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)); RE> [...] RE> Committed, thanks! I'm using FreeBSD 4.2 REL as a natd transparent proxy. I looked through the /usr/src/lib/libalias/alias.c and of course I ain't got than string tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2)); in the source code. Should I correct that one or it is not necessary? -- Best regards, shupilov mailto:shupilov@tb.by To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message