Re: tcpdump based packet generator
From: kamal kc (kamal_ckk_at_yahoo.com)
Date: 09/30/05
- Previous message: Jose M. Gonzalez: "Re: tcpdump based packet generator"
- In reply to: det_re: "tcpdump based packet generator"
- Next in thread: Nickolay Kritsky: "RE: tcpdump based packet generator"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Sep 2005 21:17:48 -0700 (PDT) To: det_re <det_re@yahoo.com>
--- 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
_______________________________________________
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"
- Previous message: Jose M. Gonzalez: "Re: tcpdump based packet generator"
- In reply to: det_re: "tcpdump based packet generator"
- Next in thread: Nickolay Kritsky: "RE: tcpdump based packet generator"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|