Archived from groups: microsoft.public.windowsxp.general (More info?)
I am unable to discover the linksys router wag54g thru SSDP from win2k;
It is hanging for ever at: 'recvfrom (skt, buff, len, 0, (struct
sockaddr *)&c, &slen);' in the code snippet shown below.
Apparently, this seems to be happpening after I applied firmware
upgrade to the linksys router. Before applying the upgrade it was
detectable. The firmawre upgrade has made the router TR-069 complaint.
However, by any chance, would it have also made non TR-064 complaint,
thereby preventing devices with devicetype
'urnslforum-org:service:InternetGatewayDevice:1' from responding ?
Any help here is greatly appreciated.
#include "ssdp.h"
void initializeWinSock () {
WSADATA jnk;
WSAStartup(WINSOCK_VERSION, &jnk);
//Hopefully we are ready to start now.
}
void cleanWinSock() {
WSACleanup();
}
int skt;
char * geterrormsg() {
LPVOID lpMsgBuf;
static char buff[1024];
int error = WSAGetLastError();
if (error == WSAENOPROTOOPT) printf("Winsock doesnt support this
option" );
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
error,
0,//MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf, 0,NULL );
sprintf(buff,"%d-%s",error,lpMsgBuf);
return (char *)buff;
}
int sendRequest() {
int status;
struct sockaddr_in a, b, c;
unsigned char ttl = 1; //Only hop at the moment in LAN int slen = sizeof (c);
char buff [4096];
int len;
Archived from groups: microsoft.public.windowsxp.general (More info?)
Thanks for a good suggestion. The same thought crossed my mind as well.
Yes, I'll check with the linksys Tech Support and post the response if
anything good turns up.
Archived from groups: microsoft.public.windowsxp.general (More info?)
Providing the sample response I got from wag54g without the firmware
upgrade:
The received IP is 192.168.1.1
The message is NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=86400
LOCATION: http://192.168.1.1:51679/devicedesc.xml NT: uuid:739f75f0-a90c-4e42-ac21-001217BC390E
NTS: ssdp:alive
SERVER: Linux/2.4.17_mvl21-malta-mips_fp_le UPnP/1.0 Server/1.0
USN: uuid:739f75f0-a90c-4e42-ac21-001217BC390E
The received IP is 192.168.1.1
The message is NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=86400
LOCATION: http://192.168.1.1:51679/devicedesc.xml NT: urnslforum-org:service:WANDSLLinkConfig:1
NTS: ssdp:alive
SERVER: Linux/2.4.17_mvl21-malta-mips_fp_le UPnP/1.0 Server/1.0
USN:
uuid:739f75f0-a90c-4e42-ac21-001217BC390E::urnslforum-org:service:WANDSLLinkConfig:1
The received IP is 192.168.1.1
The message is NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=86400
LOCATION: http://192.168.1.1:51679/devicedesc.xml NT: urnslforum-org:service:WANPPPConnection:1
NTS: ssdp:alive
SERVER: Linux/2.4.17_mvl21-malta-mips_fp_le UPnP/1.0 Server/1.0
USN:
uuid:739f75f0-a90c-4e42-ac21-001217BC390E::urnslforum-org:service:WANPPPConnection:1
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.