* [HOWTO?] packet: tx-only socket / binding to "nothing"?
@ 2019-07-26 15:45 David Lamparter
0 siblings, 0 replies; only message in thread
From: David Lamparter @ 2019-07-26 15:45 UTC (permalink / raw)
To: netdev
Hi netdev,
quick question: is there a recommended setup to get a send-only packet
socket? I've been reading net/packet/af_packet.c up and down and don't
see an explicit way, so I ended up binding to ("lo", ETH_P_LOOP)
instead. (Nothing special about ETH_P_LOOP, I just grabbed a random
value that looked like it might never happen.)
Cheers,
-David
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-26 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-26 15:45 [HOWTO?] packet: tx-only socket / binding to "nothing"? David Lamparter
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).