OSDN Git Service

(get_ifconf): Set MTU for loopback to more correct value.
authorcorinna <corinna>
Thu, 4 Jan 2007 10:48:57 +0000 (10:48 +0000)
committercorinna <corinna>
Thu, 4 Jan 2007 10:48:57 +0000 (10:48 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/net.cc

index 7acd568..80d012b 100644 (file)
@@ -1,5 +1,9 @@
 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
        for SIOCGIFFLAGS here.  Call get_ifconf instead.
        * net.cc (get_2k_ifconf): Clean up code to generate interface name.
index 83c634b..f70618d 100644 (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);