Re: setsockopt error on arm-linux

"Nektarios K. Papadopoulos" <[email protected]> Wed, 12 Jul 2006 22:17:28 +0300
Newsgroups gmane.linux.upnp-sdk.general
Message-ID <[email protected]>
Christian Henz wrote:
> Hi.
> 
> I'm having a hard time trying to get a libupnp-based software to run on the 
> Nokia 770. I tried to run the upnp_tv_ctrlpt example and get the following 
> error:
> 
> # ./upnp_tv_ctrlpt
> Intializing UPnP with ipaddress=(null) port=0
> WinCEStart: UpnpInit() Error: -208
> Error starting UPnP TV Control Point
> 
> The error code is UPNP_E_SOCKET_ERROR and comes back from ssdp_server.c:988.
> setsockopt returns -1 and errno is set to ENODEV. I ran the example with 
> strace and the relevant part is:
> 
> socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 10
> setsockopt(10, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> bind(10, {sa_family=AF_INET, sin_port=htons(1900), 
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> setsockopt(10, SOL_IP, IP_ADD_MEMBERSHIP, "\357\377\377\372\0\0\0\0", 8) = -1 
> ENODEV (No such device)
> 
> 
> System info:
> 
> # uname -a 
> Linux Nokia770-26 2.6.16-omap1 #1 PREEMPT Tue Jul 11 14:28:16 CEST 2006 
> armv5tejl unknown
> 
> On PC it all works fine. Does anyone have an idea what could be the problem? 
> Has anybody else had problems with libupnp on arm-linux? Could it be a WLAN 
> issue?
> 

I had no problems with libupnp on arm-linux.
Does your driver support MULTICAST and is the interface configured for 
multicast ?

> 
> thanks,
> Christian Henz
> 

-- 
nek


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642