<div dir="ltr">Hi,<div><br></div><div>I have observed a weird behaviour while setting the <span style="font-family:monospace,monospace;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">BIOCSRTIMEOUT </span><span style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font face="arial, helvetica, sans-serif">for a bpf. </font></span><br><div><br></div><div>When setting it to low values (less than a second) as it can be seen below the bpf is actually blocking instead of waiting and continuing.</div><div><br></div><div><font face="monospace, monospace">struct timeval timeout;</font></div><div><div><font face="monospace, monospace">timeout.tv_sec =  0;</font></div><div><font face="monospace, monospace">timeout.tv_usec = 1;</font></div><div><font face="monospace, monospace">if (ioctl(*bpf, BIOCSRTIMEOUT, &timeout) == -1) {</font></div><div><font face="monospace, monospace">  perror("BIOCSRTIMEOUT");</font></div><div><font face="monospace, monospace">  return 0;</font></div><div><font face="monospace, monospace">}</font></div></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">This was working with the libbsd 4.11 branch. Is this a known bug?</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">In addition the bpf is not receiving/reading anything incoming while with wireshark I can confirm that there are things on the wire and the bpf is in promiscuous</font><span style="font-family:arial,helvetica,sans-serif"> mode. Still this was working on the 4.11 branch. Any idea on how to debug this?</span></div><div><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div><font face="arial, helvetica, sans-serif">Thanks in advance.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Cheers,</font></div><div><font face="arial, helvetica, sans-serif">Niko</font></div></div>