Hi, I am trying to port BIRD to eCos. I configured BIRD for BSD as eCos has BSD tcp/ip stack and only enabled RIP as routing protocol. The problem that I face is that fcntl(fd, F_SETFL, O_NONBLOCK) fails while applying the configrations and ends up in calling the method called bug. If I comment the fcntl call than somwhere down die is invoked. Has anybody tried porting BIRD to eCos? Please help in identifying what could be possibly wrong here? Thanks and Regards, Aditya --------------------------------- Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.
Hi!
I am trying to port BIRD to eCos. I configured BIRD for BSD as eCos has BSD tcp/ip stack and only enabled RIP as routing protocol.
The problem that I face is that fcntl(fd, F_SETFL, O_NONBLOCK) fails while applying the configrations and ends up in calling the method called bug. If I comment the fcntl call than somwhere down die is invoked.
On what fd did it fail? If on a socket, then it's a clear bug in the eCos POSIX API. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "God doesn't play dice." -- Albert Einstein
Hi, Thanks there seems problem with fcntl fcntl(fd, F_SETFL, O_NONBLOCK) is not supported in the OS being used for arguments F_SETFL and O_NONBLOCK. Is there any other the functionality required by BIRD can be achived without the above call? I tried 'setsockopt' but it also didn't worked. Is there any way by which making the socket as non-blocking can be avoided and still BIRD works for BSD tcp/ip stack. Regards, Aditya Martin Mares <mj@ucw.cz> wrote: Hi!
I am trying to port BIRD to eCos. I configured BIRD for BSD as eCos has BSD tcp/ip stack and only enabled RIP as routing protocol.
The problem that I face is that fcntl(fd, F_SETFL, O_NONBLOCK) fails while applying the configrations and ends up in calling the method called bug. If I comment the fcntl call than somwhere down die is invoked.
On what fd did it fail? If on a socket, then it's a clear bug in the eCos POSIX API. Have a nice fortnight -- Martin `MJ' Mares http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "God doesn't play dice." -- Albert Einstein --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Hi!
Thanks there seems problem with fcntl fcntl(fd, F_SETFL, O_NONBLOCK) is not supported in the OS being used for arguments F_SETFL and O_NONBLOCK.
Is there any other the functionality required by BIRD can be achived without the above call? I tried 'setsockopt' but it also didn't worked.
Is there any way by which making the socket as non-blocking can be avoided and still BIRD works for BSD tcp/ip stack.
Sorry, but non-blocking sockets are vital in BIRD and very likely in any other application using networking heavily. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Why is "abbreviation" such a long word?
participants (2)
-
Aditya Veer Singh -
Martin Mares