netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* is PACKET_TX_RING expected to work on loopback?
@ 2011-10-06 18:37 nick black
  0 siblings, 0 replies; only message in thread
From: nick black @ 2011-10-06 18:37 UTC (permalink / raw)
  To: Vitali Lovitch, Johann Baudy, David Miller; +Cc: linux-net

Hey there. I'm developing an application which makes use of PACKET_TX_RING
(http://dank.qemfd.net/dankwiki/index.php/Omphalos), one mmap'd RX and TX
socket per interface. When I transmit on wireless/ethernet devices, the
packets flow out fine, and I get responses.

When I transmit on loopback, I can see the packets using tcpdump -i lo, 
send() returns 0, and the frame is set back to TP_STATUS_AVAILABLE.
Checksums are properly set and the packets appear well-formed in Wireshark.
I can't seem to read the packets, however; neither the intended DNS server
(verified via dnsmasq -d and strace) nor my own socat udp-listen process
seem to get the packets.

Is PACKET_TX_RING expected to work on loopback?

Thanks!

-- 
                                         nick black <nblack@nvidia.com>
"A main cause of the Roman Empire's fall was that–lacking zero–they had
       no way to indicate successful termination of their C programs."

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-06 19:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 18:37 is PACKET_TX_RING expected to work on loopback? nick black

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).