<h3>Contribution description</h3>
<p>Support for option <code>NETOPT_LINK_CONNECTED</code> added to <code>esp_eth_netdev::_get</code>.</p>
<h3>Testing procedure</h3>
<p>Compile and flash <code>examples/gnrc_networking</code> to an ESP32 board with Ethernet interface, e.g.,</p>
<pre><code>USEMODULE="esp_eth" make BOARD=esp32-olimex-evb -C examples/gnrc_networking flash
</code></pre>
<p>Use the <code>ifconfig</code> command before connecting the cable. In this state you should see something like:</p>
<pre><code>Iface  7  HWaddr: 30:AE:A4:47:4C:CF  Link: down 
</code></pre>
<p>After you have connected the cable and the link is up, this output should change to:</p>
<pre><code>Iface  7  HWaddr: 30:AE:A4:47:4C:CF  Link: up 
</code></pre>

<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/10760'>https://github.com/RIOT-OS/RIOT/pull/10760</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>cpu/esp32: add NETOPT_LINK_CONNECTED in esp_eth</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/10760/files#diff-0">cpu/esp32/esp-eth/esp_eth_netdev.c</a>
    (7)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/10760.patch'>https://github.com/RIOT-OS/RIOT/pull/10760.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/10760.diff'>https://github.com/RIOT-OS/RIOT/pull/10760.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/10760">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YKrkBOuM32CVQetMpih-DBsQKHmeks5vCytLgaJpZM4Z9Jr0">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YB_eSrVIPILHEe1p8QPJb8yeNhBAks5vCytLgaJpZM4Z9Jr0.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/RIOT-OS/RIOT","title":"RIOT-OS/RIOT","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/RIOT-OS/RIOT"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"cpu/esp32: support of NETOPT_LINK_CONNECTED in esp_eth_netdev (#10760)"}],"action":{"name":"View Pull Request","url":"https://github.com/RIOT-OS/RIOT/pull/10760"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/10760",
"url": "https://github.com/RIOT-OS/RIOT/pull/10760",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>