On Wed, Dec 19, 2001 at 09:25:02AM +0200, shupilov wrote: > 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? > It's only necessary if you use the "encode_ip_hdr" type of proxying.
Cheers, -- Ruslan Ermilov Oracle Developer/DBA, [EMAIL PROTECTED] Sunbay Software AG, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message