This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

IP Multicasting


Hi all,


I am currently trying to port an ssdp server from Linux on ecos, and the following function crashes the system.


ssdpMcastAddr.imr_interface.s_addr = htonl( INADDR_ANY ); ssdpMcastAddr.imr_multiaddr.s_addr = inet_addr( SSDP_IP );

setsockopt( ssdpSock, IPPROTO_IP, IP_ADD_MEMBERSHIP,
                   ( char * )&ssdpMcastAddr,
                   sizeof( struct ip_mreq ))

Previously in the source code, I used the same function at a different
level (socket level SOL_SOCKET,SOREUSE_ADDR,(char
*)intvar,sizeof(intvar)) and it works.


The error generated by the debugger is :


Stack base corrupt - i: 0
8025F284: 10 27 05 80 0C D5 04 80  CC EF 21 80 10 1E 21 80  |.'........!...!.|
ASSERT FAIL: <3246>mlqueue.cxx[306]void
Cyg_Scheduler_Implementation::rem_thread() Queue map bit not set for pri



Any ideas?

Thanks in advance.

Best Regards,

Antoine

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]