(get_ifconf): Set MTU for loopback to more correct value.

This commit is contained in:
Corinna Vinschen 2007-01-04 10:48:57 +00:00
parent bcdf742178
commit 0a9e977f62
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2007-01-04 Corinna Vinschen <corinna@vinschen.de>
(get_ifconf): Set MTU for loopback to more correct value.
2007-01-04 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::ioctl): Don't fake results

View File

@ -1744,8 +1744,8 @@ get_ifconf (struct ifconf *ifc, int what)
ifr->ifr_metric = 1;
break;
case SIOCGIFMTU:
/* Default value for loopback on Linux 2.6 kernel. */
ifr->ifr_mtu = 16436;
/* Default value for MS TCP Loopback interface. */
ifr->ifr_mtu = 1520;
break;
default:
set_errno (EINVAL);