tcpdump mailing list archives

Re: Feature request: add packet send function


From: Ryan Mooney <ryan () pcslink com>
Date: Fri, 7 Nov 2003 12:10:28 -1000


I know that on bpf platforms its as simple as changing the 
bpf open call to be read/write instead of read only.

You do have to build the "whole" packet (ethernet headers,
etc...), but if your messing around with that you should
know what your doing anyway..

It works quite well to :)


On Nov 6, 2003, at 8:33 PM, WANG Yong wrote:

      Feature request: add packet send function

In tcpdump, or libpcap?

If for tcpdump, then, as others have noted, you can use tcpreplay.

It might be useful to have a packet-send API in libpcap (given that the 
way it's done is platform-dependent) - libnet:

      http://www.packetfactory.net/projects/libnet/

supports that, but it might be useful to move that functionality into 
libpcap and have libnet use it (if available on the system on which 
you're compiling it) for the low-level packet sending.

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use 
mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe

-- 
-=-=-=-=-=-=-<>-=-=-=-=-=-<>-=-=-=-=-=-<>-=-=-=-=-=-<>-=-=-=-=-=-=-<
Ryan Mooney                                      ryan () pcslink com 
<-=-=-=-=-=-=-><-=-=-=-=-=-><-=-=-=-=-=-><-=-=-=-=-=-><-=-=-=-=-=-=-> 
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: