tcpdump based packet generator

kamal kc kamal_ckk at yahoo.com
Thu Sep 29 21:17:49 PDT 2005


--- det_re <det_re at 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 at freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to
> "freebsd-net-unsubscribe at freebsd.org"
> 



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


More information about the freebsd-net mailing list