Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2005 21:17:48 -0700 (PDT)
From:      kamal kc <kamal_ckk@yahoo.com>
To:        det_re <det_re@yahoo.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: tcpdump based packet generator
Message-ID:  <20050930041748.28107.qmail@web35706.mail.mud.yahoo.com>
In-Reply-To: <20050930035306.20197.qmail@web60118.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--- det_re <det_re@yahoo.com> wrote:
> has anyone seen or implemented packet generator
> capable of reading tcpdump trace file and resend the
> packets back into the wire through bpf in freebsd
> box?

if you are talking about capturing packets by
writing a program then you could use libpcap.a 
that provides an abstraction for the underlying
bpf.

man pcap would be a good help. 

sending custom packets can be done using raw sockets
(SOCK_RAW).

you can use IP_HDRINCL for including your custom 
ip header


>  
> 
> 
> 
> 		
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> _______________________________________________
> freebsd-net@freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to
> "freebsd-net-unsubscribe@freebsd.org"
> 



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



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