Skip to contentSkip to conversation

packet: tx-only socket / binding to "nothing"?

HOWTO? David Lamparter 1 participant 1 message Jul 26, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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