Completes conversion of CONFIG_NET_BUFIZE to CONFIG_NET_ETH/SLIP_MTU

This commit is contained in:
Gregory Nutt
2014-11-16 09:22:38 -06:00
parent b9cd425bc2
commit 859748a94e
10 changed files with 56 additions and 36 deletions
+6 -2
View File
@@ -316,8 +316,12 @@ static int netdev_ifrioctl(FAR struct socket *psock, int cmd,
case SIOCGIFMTU: /* Get MTU size */
{
req->ifr_mtu = CONFIG_NET_BUFSIZE;
ret = OK;
dev = netdev_ifrdev(req);
if (dev)
{
req->ifr_mtu = NET_LL_MTU(dev);
ret = OK;
}
}
break;