Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2001 09:25:02 +0200
From:      shupilov <shupilov@tb.by>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re[2]: NATD libalias bug or feature?
Message-ID:  <187150446680.20011219092502@tb.by>
In-Reply-To: <20011218181730.A87437@sunbay.com>
References:  <997578317.20011218173334@mail.ru> <20011218181730.A87437@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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