Re: FTP Masquerading - unable to finish ftp transfer

Emanuele Caratti (wiz@iol.it)
Mon, 18 Oct 1999 11:13:19 +0200


On Sun, Oct 17, 1999 at 11:09:29PM +0000, Kelly French wrote:

Hi!
> Here's a patch (hand pulled out of a larger patch of mine) which should
> fix things.
>
> - data = (char *)&th[1];
> + data = (char *)th + sizeof(struct tcphdr);

May be I'm missing something, but I think this should be like this:
data = (char *)(((__u32 *) tcp) + tcp->doff);

-- 
ciao,
    Emanuele

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/