<h3>Contribution description</h3>
<p>This adds a function to <code>netif</code> that allows to search an interface by name, using a buffer and length (like the one provided by the <a href="http://doc.riot-os.org/group__sys__uri__parser.html" rel="nofollow">URI parser</a>), instead a null-terminated string. <code>tests/gnrc_netif</code> has been extended accordingly.</p>
<h3>Testing procedure</h3>
<p><code>tests/gnrc_netif</code> should pass.</p>
<h3>Issues/PRs references</h3>
<p>Split from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="841042636" data-permission-text="Title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/16233" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/16233/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/16233">#16233</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/16709'>https://github.com/RIOT-OS/RIOT/pull/16709</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>sys/net/netif: add netif_get_by_name_buffer function</li>
  <li>tests/gnrc_netif: add test for netif_get_by_name_buffer</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16709/files#diff-6a4a62c8dec6704d2e55283dd52f2305e1f7472c26707922c78701889d6cf04d">sys/include/net/netif.h</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16709/files#diff-58757c30840aeee756309b3c604a8ac3c243a412cd30c79fef59f8454782b434">sys/net/netif/netif.c</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16709/files#diff-b734a9d2befddd51db825ef99ceee90f617feaf426bc4d674da26b493b8c7346">tests/gnrc_netif/main.c</a>
    (13)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16709.patch'>https://github.com/RIOT-OS/RIOT/pull/16709.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16709.diff'>https://github.com/RIOT-OS/RIOT/pull/16709.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16709">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYAFPIBBCJ2R2I7CMWLT3FCB3ANCNFSM5BRGXEEA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABE7WYBTA45CN3SFX3LZAKDT3FCB3A5CNFSM5BRGXEEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OKAECRQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16709",
"url": "https://github.com/RIOT-OS/RIOT/pull/16709",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>