[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190726154548.GC258193@eidolon.nox.tf>
Date: Fri, 26 Jul 2019 17:45:48 +0200
From: David Lamparter <equinox@...c24.net>
To: netdev@...r.kernel.org
Subject: [HOWTO?] packet: tx-only socket / binding to "nothing"?
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
Powered by blists - more mailing lists