Date: Mon, 10 Mar 2003 17:28:04 -0800 (PST) From: Neelkanth Natu <neelnatu@yahoo.com> To: Ferruccio Vitale <freebsd@cs.tin.it>, freebsd-hackers@freebsd.org Subject: Re: divert socket Message-ID: <20030311012804.84570.qmail@web14201.mail.yahoo.com> In-Reply-To: <20030310092032.2fc71b8d.freebsd@cs.tin.it>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Ferruccio Vitale <freebsd@cs.tin.it> wrote: > > I try to explain better my problem: when my daemon tries to read from this socket, recv tells me > it read 68 bytes, for example, which is about message size at application layer, but what I read > is not I expect (string without sense). Is there a particular way to read from a raw socket or a > divert socket? Take a look at the tcpmssd code in the ports/net collection. In a nutshell, the data that is read from the divert socket contains the IP header, typically followed by the TCP/UDP header, followed by the application data. http://www.freebsd.org/cgi/pds.cgi?ports/net/tcpmssd http://www.freebsd.org/cgi/url.cgi?ports/net/tcpmssd/pkg-descr best Neel > > Ferruccio > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ 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?20030311012804.84570.qmail>