Re: how does xwin resolve ip addresses
Ok, problem resolved. After much digging around and non-help from 3Com I have sussed the damn thing out. When such a thing happens, either the ipconfig not returning the whole information or a 20106 error in the system log (doesn't seem to matter if it's talking about a different interface), the RRAS service is the damned culprit. So answer was disable the damn thing. Thanks to all that helped and many thanks to Ago, Chris _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
Re: how does xwin resolve ip addresses
Hi, At 3Com's behest I tried the card in another laptop that had another installation of the card: Yes the card works in another laptop, an xp home one on the same network. Also the ipconfig works on this machine as well. It looks therefore like a driver problem, either a bad installation on my part or some conflicting software. I will do the following : 1) re-install the software 2) check dll dependencies and versions between the two machines I'll reply with the results. , and I'll do the same here. Ago, I'll try these changes first because it looks much like a bad software installation and nothing to do with cygwin. Unless you'd like to try and get it working with this installation first, in which case I'll delay the changes. Chris _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
Re: how does xwin resolve ip addresses
Hi Ago, Tried it, but it made no difference. Chris _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
Re: how does xwin resolve ip addresses
An additional bit of information, IIS can use the ip address to serve web pages. ipconfig is still of course broken. Chris _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
Re: how does xwin resolve ip addresses
Chris Twiner wrote: Tried it, but it made no difference. Have you copied the cygwin1-net.dll to /bin/cygwin1.dll? After what the ls_netdev log showed, the change should report the interface. Can you please run ls_netdev again? bye ago NP: Project Pitchfork - We Are One -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: how does xwin resolve ip addresses
Alexander Gottwald wrote: Can you please run ls_netdev again? I've sync the ls_netdev source to use the same algorithm as the cygwin.dll. So please get the archive again. http://www.tu-chemnitz.de/~goal/xfree/ls_netdev.tar.gz bye ago NP: Project Pitchfork - Fear -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: how does xwin resolve ip addresses (fwd)
On Tue, 5 Nov 2002, Christopher Faylor wrote: complaint. It's a safe bet that I can't go a day without someone either complaining about spam or complaining about the spam blocker. Anyway, I've added the email address of your last blocked message to the sources.redhat.com global allow list. I've also redirected your last blocked email back to this mailing list. Thanks. Now, after I got some sleep, I feel better now :) bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: how does xwin resolve ip addresses
Bad luck. It seems the ip address is correctly setup, but there is no interface configured. Maybe reinstalling the drivers for the wireless card will help. I've searched the MSDN but there is no comment for the GetIfTable function that it would not report wireless interfaces. I'be build a new version, which queries the interface for each ip address. Can you please try it too? http://www-usercgi.tu-chemnitz.de/~goal/xfree/ls_netdev.tar.gz Hi Ago, I'll try it later today (it's at home, I'm at work :). Chris _ Get faster connections -- switch to MSN Internet Access! http://resourcecenter.msn.com/access/plans/default.asp
Re: how does xwin resolve ip addresses
here are the results of the latest : ls_netdev $Id: ls_netdev.c,v 1.3 2002/11/04 21:59:03 ago Exp $ OS Version: Windows NT 5.1 Build 2600 Querying devices using ioctl lo: family=TCP/IP (0) addr=127.0.0.1 eth0: family=TCP/IP (0) addr=0.0.0.0 Querying devices using internal function // Dumping IpAddrTable // IPADDRROW dwAddr= dwIndex=65540 dwMask= dwBCastAddr=0001 dwReasmSize=65535 // IFROW wszName= dwIndex=65540 dwType=6 bDescr=Intel 8255x-based PCI Ethernet Adapter (10/100) // IPADDRROW dwAddr= dwIndex=65541 dwMask= dwBCastAddr=0001 dwReasmSize=65535 // IFROW wszName= dwIndex=65541 dwType=6 bDescr=3Com 3CRSHPW_96 Wireless LAN PC Card // IPADDRROW dwAddr=017f dwIndex=1 dwMask=00ff dwBCastAddr=0001 dwReasmSize=65535 // IFROW wszName= dwIndex=1 dwType=24 bDescr=MS TCP Loopback interface // Dumping IfTable wszName=Loopback dwIndex=1 dwType=24 bDescr=Internal loopback interface for 127.0.0 network wszName={562C1C1F-F3B0-49E1-98D6-C44DF1084DD8} dwIndex=65540 dwType=6 bDescr=Intel 8255x-based PCI Ethernet Adapter (10/100) eth0: family=TCP/IP (0) addr=0.0.0.0 lo: family=TCP/IP (0) addr=127.0.0.1 And just for completeness the route print: c:\home\Chrisroute print === Interface List 0x1 ... MS TCP Loopback interface 0x2 ...02 00 4c 4f 4f 50 .. Microsoft Loopback Adapter 0x10004 ...00 20 e0 70 70 16 .. Intel 8255x-based PCI Ethernet Adapter (10/1 00) 0x10005 ...00 04 75 c4 55 6e .. 3Com 3CRSHPW_96 Wireless LAN PC Card === === Active Routes: Network DestinationNetmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.1.1192.168.1.35 30 10.0.0.0255.0.0.010.10.1.1 10.10.1.1 30 10.10.1.1 255.255.255.255127.0.0.1 127.0.0.1 30 10.255.255.255 255.255.255.25510.10.1.1 10.10.1.1 30 127.0.0.0255.0.0.0127.0.0.1 127.0.0.1 1 192.168.1.0255.255.255.0 192.168.1.35192.168.1.35 30 192.168.1.35 255.255.255.255127.0.0.1 127.0.0.1 30 192.168.1.255 255.255.255.255 192.168.1.35192.168.1.35 30 224.0.0.0240.0.0.010.10.1.1 10.10.1.1 30 224.0.0.0240.0.0.0 192.168.1.35192.168.1.35 30 255.255.255.255 255.255.255.25510.10.1.1 10.10.1.1 1 255.255.255.255 255.255.255.25510.10.1.1 10.10.1.1 1 255.255.255.255 255.255.255.255 192.168.1.35 10004 1 255.255.255.255 255.255.255.255 192.168.1.35192.168.1.35 1 Default Gateway: 192.168.1.1 === Persistent Routes: None Hope it helps. 3com rather quickly referred me to the cygwin/xfree86 documentation so I'll not hold out much hope of useful help from them. Chris _ Unlimited Internet access -- and 2 months free! Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp
Re: how does xwin resolve ip addresses
Chris Twiner wrote: // IPADDRROW dwAddr= dwIndex=65541 dwMask= dwBCastAddr=0001 dwReasmSize=65535 // IFROW wszName= dwIndex=65541 dwType=6 bDescr=3Com 3CRSHPW_96 Wireless LAN PC Card That's good, good, good *g* Await a patch in the next days. wszName={562C1C1F-F3B0-49E1-98D6-C44DF1084DD8} That's good too. The widestrings are now printed correctly. bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: how does xwin resolve ip addresses (fwd)
And it got cancelled again. The patch is no longer attached and will be sent by pm after explicit request. bye ago, now very upset Date: Tue, 5 Nov 2002 23:29:09 +0100 (MET) From: Alexander Gottwald [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Chris Twiner [EMAIL PROTECTED] Subject: Re: how does xwin resolve ip addresses Alexander Gottwald wrote: Await a patch in the next days. And here it is. Please try the modified cygwin1.dll. http://www-usercgi.tu-chemnitz.de/~goal/xfree/cygwin1-wireless.dll Please report if it works or not. Patch is attached. If it works, I'll send the patch to cygwin-patches. rant Hey, It's late. If have to get up in less than 6 hours. I hack the cygwin library and the mailer-deamon says i'm a spammer. What the f*** is going on? Is this the price of freedom? Do we have to accept restrictions to be free from spam? This is the third message that got cancelled in the last days and I have to rewrite. Maybe some hints _why_ the message was declared as spam would help to prevent such extra work. /rant bye ago, upset NP: Blutengel - Angel Dust I -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: how does xwin resolve ip addresses
Alexander Gottwald wrote: Await a patch in the next days. And here it is. Please try the modified cygwin1.dll. http://www-usercgi.tu-chemnitz.de/~goal/xfree/cygwin1-wireless.dll Please report if it works or not. Patch is attached. If it works, I'll send the patch to cygwin-patches. rant Hey, It's late. If have to get up in less than 6 hours. I hack the cygwin library and the mailer-deamon says i'm a spammer. What the f*** is going on? Is this the price of freedom? Do we have to accept restrictions to be free from spam? This is the third message that got cancelled in the last days and I have to rewrite. Maybe some hints _why_ the message was declared as spam would help to prevent such extra work. /rant bye ago, upset NP: Blutengel - Angel Dust I -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723 --- winsup/cygwin/net.cc.orig Wed Jul 3 01:57:48 2002 +++ winsup/cygwin/net.ccTue Nov 5 22:41:47 2002 @@ -1212,125 +1212,167 @@ get_2k_ifconf (struct ifconf *ifc, int what) { int cnt = 0; - char eth[2] = /, ppp[2] = /, slp[2] = /, sub[2] = 0, tok[2] = /; +// char eth[2] = /, ppp[2] = /, slp[2] = /, sub[2] = 0, tok[2] = /; + int ethId = 0, pppId = 0, slpId = 0, tokId = 0; /* Union maps buffer to correct struct */ struct ifreq *ifr = ifc-ifc_req; - DWORD if_cnt, ip_cnt, lip, lnp; - DWORD siz_if_table = 0; + DWORD ip_cnt, lip, lnp; DWORD siz_ip_table = 0; - PMIB_IFTABLE ift; PMIB_IPADDRTABLE ipt; + PMIB_IFROW ifrow; struct sockaddr_in *sa = NULL; struct sockaddr *so = NULL; - if (GetIfTable(NULL, siz_if_table, TRUE) == ERROR_INSUFFICIENT_BUFFER - GetIpAddrTable(NULL, siz_ip_table, TRUE) == ERROR_INSUFFICIENT_BUFFER - (ift = (PMIB_IFTABLE) alloca (siz_if_table)) - (ipt = (PMIB_IPADDRTABLE) alloca (siz_ip_table)) - !GetIfTable(ift, siz_if_table, TRUE) - !GetIpAddrTable(ipt, siz_ip_table, TRUE)) + typedef struct ifcount_t { + DWORD ifIndex; + size_t count; + unsigned int enumerated; // for eth0:1 + unsigned int classId; // for eth0, tok0 ... + + }; + ifcount_t *iflist; + + if (GetIpAddrTable (NULL, siz_ip_table, TRUE) == ERROR_INSUFFICIENT_BUFFER + (ifrow = (PMIB_IFROW) alloca (sizeof (MIB_IFROW))) + (ipt = (PMIB_IPADDRTABLE) alloca (siz_ip_table)) + !GetIpAddrTable (ipt, siz_ip_table, TRUE)) { - /* Iterate over all known interfaces */ - for (if_cnt = 0; if_cnt ift-dwNumEntries; ++if_cnt) + iflist = (ifcount_t *)alloca(sizeof(ifcount_t) * (ipt-dwNumEntries + 1)); + memset(iflist, 0, sizeof(ifcount_t) * (ipt-dwNumEntries + 1)); + for (ip_cnt = 0; ip_cnt ipt-dwNumEntries; ++ip_cnt) +{ + ifcount_t *ifEntry = iflist; + /* search for matching entry (and stop at first free entry) */ + while (ifEntry-count != 0) { +if (ifEntry-ifIndex == ipt-table[ip_cnt].dwIndex) + break; +ifEntry++; + } + ifEntry-count++; + ifEntry-ifIndex = ipt-table[ip_cnt].dwIndex; +} + // reset the last element. This is just the stopper for the loop. + iflist[ipt-dwNumEntries].count = 0; + + /* Iterate over all configured IP-addresses */ + for (ip_cnt = 0; ip_cnt ipt-dwNumEntries; ++ip_cnt) { - *sub = '0'; - /* Iterate over all configured IP-addresses */ - for (ip_cnt = 0; ip_cnt ipt-dwNumEntries; ++ip_cnt) + memset (ifrow, 0, sizeof (MIB_IFROW)); + ifrow-dwIndex = ipt-table[ip_cnt].dwIndex; + if (GetIfEntry (ifrow) != NO_ERROR) + continue; + + ifcount_t *ifEntry = iflist; + /* search for matching entry (and stop at first free entry) */ + while (ifEntry-count != 0) { +if (ifEntry-ifIndex == ipt-table[ip_cnt].dwIndex) + break; +ifEntry++; + } + + /* Setup the interface name */ + switch (ifrow-dwType) { - /* Does the IP address belong to the interface? */ - if (ipt-table[ip_cnt].dwIndex == ift-table[if_cnt].dwIndex) - { - /* 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; - strcpy (ifr-ifr_name, eth); - strcat (ifr-ifr_name, eth); - break; - case MIB_IF_TYPE_PPP: - ++*ppp; -
Re: how does xwin resolve ip addresses (fwd)
On Tue, Nov 05, 2002 at 11:31:26PM +0100, Alexander Gottwald wrote: And it got cancelled again. The patch is no longer attached and will be sent by pm after explicit request. Let's all say it together Subscribers to a mailing list are not subjected to spam blocking. Your email was blocked because you are apparently sending email from an account that is not subscribed to cygwin-xfree. You can also subscribe to a global allow list which allow you to post to sources.redhat.com mailing lists without receiving mailing list traffic. In your case, apparently you were misled by a faulty message telling you how to unblock yourself. I apologize for the miscommunication caused by the software that I wrote. It was my fault and I have corrected the error. However, AFAICT, the bounce message that you received accurately gave you the email address to which you could send questions about your being blocked. You didn't avail yourself of that address. Instead, you are now very upset because a computer determined that your email is spam. Had, you sent email explaining your problem to the correct mailing list (in this case cygwin-owner at cygwin dot com) I would have fixed the problem hours ago instead of when I got around to reading the cygwin-xfree mailing list where *surprise* I get to see YA spam complaint. It's a safe bet that I can't go a day without someone either complaining about spam or complaining about the spam blocker. Anyway, I've added the email address of your last blocked message to the sources.redhat.com global allow list. I've also redirected your last blocked email back to this mailing list. Have a nice day. cgf
Re: how does xwin resolve ip addresses
Chris Twiner wrote: Hi Alexander, I ran the program, the results are attached. I have the microsoft loopback service as 10.10.1.1 . When the wireless is attached it's dhcp, but that doesn't affect ipconfigs results. I commented the output. ls_netdev $Id: ls_netdev.c,v 1.2 2002/08/01 08:35:17 ago Exp $ OS Version: Windows NT 5.1 Build 2600 Querying devices using ioctl lo: family=TCP/IP (0) addr=127.0.0.1 eth0: family=TCP/IP (0) addr=10.10.1.1 eth1: family=TCP/IP (0) addr=0.0.0.0 Querying devices using internal function // Result from GetIpAddrTable dwAddr= // 0.0.0.0 (DHCP?) dwIndex=65540 // Intel 8255x-based PCI Ethernet Adapter (10/100) dwMask= // 0.0.0.0 dwBCastAddr=0001// 1.0.0.0 dwReasmSize=65535 dwAddr=01010a0a // 10.10.1.1 dwIndex=2 // Microsoft Loopback Adapter dwMask=00ff // 255.0.0.0 dwBCastAddr=0001// 1.0.0.0 dwReasmSize=65535 dwAddr=017f // 127.0.0.1 dwIndex=1 // Internal loopback interface for 127.0.0 network dwMask=00ff // 255.0.0.0 dwBCastAddr=0001// 1.0.0.0 dwReasmSize=65535 dwAddr=2301a8c0 // 192.168.1.35 dwIndex=65541 // Wireless ? Interface is missing in the list below dwMask=00ff // 255.255.255.0 dwBCastAddr=0001// 1.0.0.0 dwReasmSize=65535 // Result from GetIfTable wszName=L dwIndex=1 dwType=24 bDescr=Internal loopback interface for 127.0.0 network wszName={ dwIndex=2 dwType=6 bDescr=Microsoft Loopback Adapter wszName={ dwIndex=65540 dwType=6 bDescr=Intel 8255x-based PCI Ethernet Adapter (10/100) // One interface is missing (65541) :-/ eth0: family=TCP/IP (0) addr=0.0.0.0 eth1: family=TCP/IP (0) addr=10.10.1.1 lo: family=TCP/IP (0) addr=127.0.0.1 Bad luck. It seems the ip address is correctly setup, but there is no interface configured. Maybe reinstalling the drivers for the wireless card will help. I've searched the MSDN but there is no comment for the GetIfTable function that it would not report wireless interfaces. bye ago BTW: I threw the message back to the ML. Might be of interest there too. NP: Zeraphine - Siehst Du mich -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: how does xwin resolve ip addresses
Bad luck. It seems the ip address is correctly setup, but there is no interface configured. Maybe reinstalling the drivers for the wireless card will help. I've searched the MSDN but there is no comment for the GetIfTable function that it would not report wireless interfaces. I'be build a new version, which queries the interface for each ip address. Can you please try it too? http://www-usercgi.tu-chemnitz.de/~goal/xfree/ls_netdev.tar.gz bye ago NP: Zeraphine - Deine Welt -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: how does xwin resolve ip addresses
Chris Twiner wrote: Hi All, I have a problem using a wireless card (3com) on my home network. I have a basic wireless setup and a switched setup (for my servers). When using the wireless card I can use the internet fully and most applications are happy with it. Bizarly though ipconfig /all doesn't list the wireless card as an ip adapter. I have build a small test program, which extracts the network interface adapters from the system. Please try it and mail the result. It will help me figuring out the problems. http://www-user.tu-chemnitz.de/~goal/xfree/ls_netdev.tar.gz (http://www-user.tu-chemnitz.de/~goal/index.php3?jump=xfree#ls_netdev) When trying to use cygwin/xfree on the address (given by dhcp) the xserver doesn't work i.e. no clients can bind to it. Is the discovery mechanism for the ip address using the same as ipconfig does and hence can't see it? I don't know which API ipconfig is using but I think it's the same interface as the cygwin.dll uses. If it's not listed it might have various reasons: - ipconfig does not know what a wireless lan is and does not display it - MS has build a new API for listing wireless lan interfaces - Something is really broken - and many more The output of ls_netdev will hopefully give me more hints. bye ago NP: grauzone.02-09-23 -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
how does xwin resolve ip addresses
Hi All, I have a problem using a wireless card (3com) on my home network. I have a basic wireless setup and a switched setup (for my servers). When using the wireless card I can use the internet fully and most applications are happy with it. Bizarly though ipconfig /all doesn't list the wireless card as an ip adapter. When trying to use cygwin/xfree on the address (given by dhcp) the xserver doesn't work i.e. no clients can bind to it. Is the discovery mechanism for the ip address using the same as ipconfig does and hence can't see it? Does anyone have similar experience? tia, Chris PS (I should get some time today to work on xwinclip, I'll tackle it on the latest release) _ Unlimited Internet access -- and 2 months free! Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp
Re: how does xwin resolve ip addresses
Chris, XWin.exe doesn't directly get the list of available IP interfaces. Rather, it has cygwin1.dll provide it with that list. There have been problems before with Token Ring cards not showing up in the list of adapters, as well as other little sublities that have been worked out over the past year or so. That your wireless card is not listed in ``ipconfig /all'' suggests to me that there is no chance that cygwin1.dll would see that interface. Alexander Gottwald usually hacks this sort of stuff for us, so hopefully he will see your message and get an idea. I hope that this gets addressed (no pun intended :) if it is an issue common to all wireless cards, because I have really been thinking about setting up some wireless in my apartment. Have you tried the latest drivers/extra software from 3COM? I would not be surprised if a more recent version of the drivers does not have this problem. Harold Chris Twiner wrote: Hi All, I have a problem using a wireless card (3com) on my home network. I have a basic wireless setup and a switched setup (for my servers). When using the wireless card I can use the internet fully and most applications are happy with it. Bizarly though ipconfig /all doesn't list the wireless card as an ip adapter. When trying to use cygwin/xfree on the address (given by dhcp) the xserver doesn't work i.e. no clients can bind to it. Is the discovery mechanism for the ip address using the same as ipconfig does and hence can't see it? Does anyone have similar experience? tia, Chris PS (I should get some time today to work on xwinclip, I'll tackle it on the latest release) _ Unlimited Internet access -- and 2 months free! Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp
Re: how does xwin resolve ip addresses
Hi Harold, I seem to have the latest drivers, I checked a couple of weeks ago, no harm in doing so on a regular basis. It just strikes me as weird that although I can telnet into a box over it I can't start a server on it. Add that to ipconfig /all and it makes it very confusing. I'll send a query to 3com. cheers, Chris _ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp
Re: how does xwin resolve ip addresses
Chris Twiner wrote: Hi All, I have a problem using a wireless card (3com) on my home network. I have a basic wireless setup and a switched setup (for my servers). When using the wireless card I can use the internet fully and most applications are happy with it. Bizarly though ipconfig /all doesn't list the wireless card as an ip adapter. I have build a small test program, which extracts the network interface adapters from the system. Please try it and mail the result. It will help me figuring out the problems. http://www-user.tu-chemnitz.de/~goal/xfree/ls_netdev.tar.gz (http://www-user.tu-chemnitz.de/~goal/index.php3?jump=xfree#ls_netdev) When trying to use cygwin/xfree on the address (given by dhcp) the xserver doesn't work i.e. no clients can bind to it. Is the discovery mechanism for the ip address using the same as ipconfig does and hence can't see it? I don't know which API ipconfig is using but I think it's the same interface as the cygwin.dll uses. If it's not listed it might have various reasons: - ipconfig does not know what a wireless lan is and does not display it - MS has build a new API for listing wireless lan interfaces - Something is really broken - and many more The output of ls_netdev will hopefully gie me more hints. bye ago NP: grauzone.02-09-23 -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723