Re: [tcpdump-workers] Rx packets are not captured on physical

2009-06-23 Thread Aaron Turner
On Mon, Jun 22, 2009 at 11:06 PM, Lakshmana Reddy wrote: > Aaron, > > Thanks for the pointer.. > I did further investigation and figured that the PF_PACKET socket does not > capture the Rx packets , it always captures the Rx packets.. > I did a try a small socket program to sniff the packets belo

Re: [tcpdump-workers] Rx packets are not captured on physical

2009-06-22 Thread Lakshmana Reddy
Aaron, Thanks for the pointer.. I did further investigation and figured that the PF_PACKET socket does not capture the Rx packets , it always captures the Rx packets.. I did a try a small socket program to sniff the packets below is the code snippet.. - ... if ( (sock=socket

Re: [tcpdump-workers] Rx packets are not captured on physical interface when bonded.

2009-06-19 Thread Guy Harris
On Jun 18, 2009, at 11:30 PM, Lakshmana Reddy wrote: I walked through the tcpdump/pcap code to see what going on.. so far my understanding is that the pcap_loop(), to capture the packets on the given device invokes the recvfrom() sys call to get the raw packets from the kernel and parses th

Re: [tcpdump-workers] Rx packets are not captured on physical

2009-06-19 Thread Aaron Turner
On Thu, Jun 18, 2009 at 11:30 PM, Lakshmana Reddy wrote: [snip] > I walked through the tcpdump/pcap code to see what going on.. so far my > understanding is that the pcap_loop(), to capture the packets on the given > device invokes the recvfrom() sys call to get the raw packets from the > kernel

[tcpdump-workers] Rx packets are not captured on physical interface when bonded.

2009-06-19 Thread Lakshmana Reddy
Hi, I'm new to tcpdump, so please bear with any obvious questions. I am trying to capture packets on bonding interface "veth0" in Linux 2.6.23. I could capture the packets on both the direction on "veth0" (virtual/bonded) interface but at the physical interface under this bonded interface ONLY tr