Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2000 19:18:01 +0300
From:      Ruslan Ermilov <ru@sunbay.com>
To:        Ping Yuan <pyuan@ece.rice.edu>
Cc:        freebsd-net@freebsd.org
Subject:   Re: IP header.
Message-ID:  <20000929191801.D47327@sunbay.com>
In-Reply-To: <005c01c02a2e$f93387e0$42042a80@teddy.ece.rice.edu>; from pyuan@ece.rice.edu on Fri, Sep 29, 2000 at 11:04:39AM -0500
References:  <005c01c02a2e$f93387e0$42042a80@teddy.ece.rice.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 29, 2000 at 11:04:39AM -0500, Ping Yuan wrote:
> Hi,
> 
> I am now writing a traffic generator. I want to write something in the IP
> header of every packet before I send it out. Is this possible? If yes, how
> to implement it? If not, is there any other solutions?
> 
You can do that by constructing an IP packet with header and sending it to
raw IP socket with IP_HDRINCL socket option set.  See ip(4) page for details.


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		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 majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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