<p>Did the rebase here: <a href="https://github.com/maribu/RIOT/tree/max_pdu_size">https://github.com/maribu/RIOT/tree/max_pdu_size</a> (and also changed the new user and already squashed there).</p>
<p>This was the new user of <code>NETOPT_MAX_PACKET_SIZE</code> is PR <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="405767105" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/10923" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/10923/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/10923">#10923</a> btw:</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/sys/shell/commands/sc_gnrc_netif.c b/sys/shell/commands/sc_gnrc_netif.c</span>
index b72c3caa8..d9777589f 100644
<span class="pl-md">--- a/sys/shell/commands/sc_gnrc_netif.c</span>
<span class="pl-mi1">+++ b/sys/shell/commands/sc_gnrc_netif.c</span>
<span class="pl-mdr">@@ -505,7 +505,7 @@</span> static void _netif_list(kernel_pid_t iface)
                                    line_thresh);
     line_thresh = _netif_list_flag(iface, NETOPT_CHANNEL_HOP, "CHAN_HOP",
                                    line_thresh);
<span class="pl-md"><span class="pl-md">-</span>    res = gnrc_netapi_get(iface, NETOPT_MAX_PACKET_SIZE, 0, &u16, sizeof(u16));</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>    res = gnrc_netapi_get(iface, NETOPT_MAX_PDU_SIZE, 0, &u16, sizeof(u16));</span>
     if (res > 0) {
         printf("L2-PDU:%" PRIu16 " ", u16);
         line_thresh++;</pre></div>

<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/10905#issuecomment-464849942">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YP14F-ugnlAbyy-Zf4F_R7BzNp5_ks5vOv3CgaJpZM4aZ-o5">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YHCbm3rqFEmotGKD6fhKLyX15P8gks5vOv3CgaJpZM4aZ-o5.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":"PERSON","message":"@maribu in #10905: Did the rebase here: https://github.com/maribu/RIOT/tree/max_pdu_size (and also changed the new user and already squashed there).\r\n\r\nThis was the new user of `NETOPT_MAX_PACKET_SIZE` is PR https://github.com/RIOT-OS/RIOT/pull/10923 btw:\r\n\r\n``` diff\r\ndiff --git a/sys/shell/commands/sc_gnrc_netif.c b/sys/shell/commands/sc_gnrc_netif.c\r\nindex b72c3caa8..d9777589f 100644\r\n--- a/sys/shell/commands/sc_gnrc_netif.c\r\n+++ b/sys/shell/commands/sc_gnrc_netif.c\r\n@@ -505,7 +505,7 @@ static void _netif_list(kernel_pid_t iface)\r\n                                    line_thresh);\r\n     line_thresh = _netif_list_flag(iface, NETOPT_CHANNEL_HOP, \"CHAN_HOP\",\r\n                                    line_thresh);\r\n-    res = gnrc_netapi_get(iface, NETOPT_MAX_PACKET_SIZE, 0, \u0026u16, sizeof(u16));\r\n+    res = gnrc_netapi_get(iface, NETOPT_MAX_PDU_SIZE, 0, \u0026u16, sizeof(u16));\r\n     if (res \u003e 0) {\r\n         printf(\"L2-PDU:%\" PRIu16 \" \", u16);\r\n         line_thresh++;\r\n```"}],"action":{"name":"View Pull Request","url":"https://github.com/RIOT-OS/RIOT/pull/10905#issuecomment-464849942"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/10905#issuecomment-464849942",
"url": "https://github.com/RIOT-OS/RIOT/pull/10905#issuecomment-464849942",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>