<p>laforge <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/titan.TestPorts.AF_PACKET/+/21664">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">guard against race between socket(AF_PACKET) and bind()<br><br>An AF_PACKET socket will immediately receive packets of _all_ interfaces<br>until it is bound to one specific interface.  This introduces a race<br>condition between the socket() and the bind() syscall.<br><br>Let's use the ifindex passed for each packet in recvmsg() to drop<br>any packets received for other interfaces.<br><br>Change-Id: Icd0b23eb1d6f75ca3a05e5dd1a569fa389903fdf<br>---<br>M src/AF_PACKET_PT.cc<br>1 file changed, 10 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/titan.TestPorts.AF_PACKET refs/changes/64/21664/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/titan.TestPorts.AF_PACKET/+/21664">change 21664</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/titan.TestPorts.AF_PACKET/+/21664"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: titan.TestPorts.AF_PACKET </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Icd0b23eb1d6f75ca3a05e5dd1a569fa389903fdf </div>
<div style="display:none"> Gerrit-Change-Number: 21664 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>