Re: [netsniff-ng] [PATCH] trafgen: fix packet socket initialization with multiple CPUs

2017-09-15 Thread Tobias Klauser
On 2017-09-13 at 17:54:52 +0200, Paolo Abeni wrote: > The commit 78c13b71e196 ("trafgen: Allow to generate packets > to output pcap file") introduced a regression when output is > a network device and multiple CPU are in use: the packet > socket is created before fork() and

[netsniff-ng] [PATCH] trafgen: fix packet socket initialization with multiple CPUs

2017-09-13 Thread Paolo Abeni
The commit 78c13b71e196 ("trafgen: Allow to generate packets to output pcap file") introduced a regression when output is a network device and multiple CPU are in use: the packet socket is created before fork() and thus the socket is shared among all the processes: all of them except the first