Re: pcap_inject over ethernet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can have a look at tcpreplay , a tool which is used to play the pcaps or captured packets to the ethernet interface .

On Mon, Feb 22, 2010 at 7:35 AM, Vasilis Liaskovitis <vliaskov@xxxxxxxxx> wrote:
Hi,

is it possible to capture Tx packets on an ethernet interface using
pcap_inject or pcap_sendpacket ? I've used pcap_dispatch succesfully
to capture Rx packets coming on the wire, but I have not been able to
send packets out using the above two libpcap function. So I see no
packets coming out of the SUT or packets coming in at the destination
system (using e.g. tcpdump or another sniffer). Has anyone been able
to use pcap_inject succesfully? If yes, could you share your kernel
config?

I have both PF_PACKET and PF_PACKET_MMAP enabled in my kernel
(2.6.32.3). The ethernet interface is not using bonding.

My question is basically the same question as this older post:
http://www.mail-archive.com/kernelnewbies@xxxxxxxxxxxx/msg08280.html

(The poster of this thread claims that bonded interface behaviour is
fine when sending packets. I have not experimented with bonding
interfaces)

thanks for any suggestions,

- Vasilis

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux