mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 12:05:47 +08:00
* net.cc (get_2k_ifconf): Create interface entries for tokenring cards.
This commit is contained in:
parent
3e790816ce
commit
d0672acc75
@ -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>
|
2002-02-08 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* dtable.cc (dtable::dup2): Store fd for fhandler_socket.
|
* dtable.cc (dtable::dup2): Store fd for fhandler_socket.
|
||||||
|
@ -1659,7 +1659,7 @@ static void
|
|||||||
get_2k_ifconf (struct ifconf *ifc, int what)
|
get_2k_ifconf (struct ifconf *ifc, int what)
|
||||||
{
|
{
|
||||||
int cnt = 0;
|
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 */
|
/* Union maps buffer to correct struct */
|
||||||
struct ifreq *ifr = ifc->ifc_req;
|
struct ifreq *ifr = ifc->ifc_req;
|
||||||
@ -1692,6 +1692,11 @@ get_2k_ifconf (struct ifconf *ifc, int what)
|
|||||||
/* Setup the interface name */
|
/* Setup the interface name */
|
||||||
switch (ift->table[if_cnt].dwType)
|
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:
|
case MIB_IF_TYPE_ETHERNET:
|
||||||
if (*sub == '0')
|
if (*sub == '0')
|
||||||
++*eth;
|
++*eth;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user