Re: bind() and PACKET_MULTICAST

2021-04-08 Thread Tom Cook
Never mind. In case anyone was wondering, PACKET_ADD_MEMBERSHIP is a SOL_PACKET option, not SOL_SOCKET. Only took me two days to spot! On Tue, Apr 6, 2021 at 8:13 PM Tom Cook wrote: > > Can someone please suggest why the code below doesn't do as expected? > I expect it to bind an AF_PACKET sock

bind() and PACKET_MULTICAST

2021-04-06 Thread Tom Cook
Can someone please suggest why the code below doesn't do as expected? I expect it to bind an AF_PACKET socket to an interface and receive packets with ethertype 0x5eeb that arrive at multicast MAC address 77:68:76:68:76:69 on that interface. In practice, nothing arrives. If I comment out the call