Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-02-09 12:01:18 +0300
committerCorinna Vinschen <corinna@vinschen.de>2002-02-09 12:01:18 +0300
commitd0672acc75f1101ed426b4a33426391a8073d9d1 (patch)
treebb43b122d2edca90528b2f6902d014b106b82703 /winsup/cygwin
parent3e790816ce84b6e78348badc436d4f6d6859f716 (diff)
* net.cc (get_2k_ifconf): Create interface entries for tokenring cards.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/net.cc7
2 files changed, 10 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 10e3df7c1..4529c6828 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 2f8ce8b1c..9f24d719c 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -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;