]> sourceware.org Git - newlib-cygwin.git/commitdiff
* net.cc (get_2k_ifconf): Create interface entries for tokenring cards.
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 9 Feb 2002 09:01:18 +0000 (09:01 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 9 Feb 2002 09:01:18 +0000 (09:01 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/net.cc

index 10e3df7c185cacee166260d1aae3278b844082b5..4529c6828455f73dccc2b0e50fe4d55665045087 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-06  Alexander Gottwald <Alexander.Gottwald@s1999.tuchemnitz.de>
+
+       * net.cc (get_2k_ifconf): Create interface entries for tokenring cards.
+
 2002-02-08  Corinna Vinschen  <corinna@vinschen.de>
 
        * dtable.cc (dtable::dup2): Store fd for fhandler_socket.
index 2f8ce8b1cec39dcaf00d3763e88ca70bdee89680..9f24d719c1c9f44fde2f561b8ab6e34597ac724b 100644 (file)
@@ -1659,7 +1659,7 @@ static void
 get_2k_ifconf (struct ifconf *ifc, int what)
 {
   int cnt = 0;
-  char eth[2] = "/", ppp[2] = "/", slp[2] = "/", sub[2] = "0";
+  char eth[2] = "/", ppp[2] = "/", slp[2] = "/", sub[2] = "0", tok[2] = "/";
 
   /* Union maps buffer to correct struct */
   struct ifreq *ifr = ifc->ifc_req;
@@ -1692,6 +1692,11 @@ get_2k_ifconf (struct ifconf *ifc, int what)
                  /* Setup the interface name */
                  switch (ift->table[if_cnt].dwType)
                    {
+                     case MIB_IF_TYPE_TOKENRING:
+                       ++*tok;
+                       strcpy (ifr->ifr_name, "tok");
+                       strcat (ifr->ifr_name, tok);
+                       break;
                      case MIB_IF_TYPE_ETHERNET:
                        if (*sub == '0')
                          ++*eth;
This page took 0.033576 seconds and 5 git commands to generate.