TTCN-3 test port for attaching AF_PACKET sockets from Eclipse TITAN
Go to file
Harald Welte cd698095c7 guard against race between socket(AF_PACKET) and bind()
An AF_PACKET socket will immediately receive packets of _all_ interfaces
until it is bound to one specific interface.  This introduces a race
condition between the socket() and the bind() syscall.

Let's use the ifindex passed for each packet in recvmsg() to drop
any packets received for other interfaces.

Change-Id: Icd0b23eb1d6f75ca3a05e5dd1a569fa389903fdf
2020-12-10 21:55:10 +01:00
src guard against race between socket(AF_PACKET) and bind() 2020-12-10 21:55:10 +01:00
.gitignore add .gitgnore 2020-09-11 16:23:27 +02:00