Hi all, Thanks for Reading this mail. I am trying to integrate ecos IP stack (FREE BSD based) with our application software.
I created a logical interface "log0" and assigned an IP address 10.240.3.165 to it. But when I try to add route entry using the gateway IP 10.240.3.1, I am getting an error ENETUNREACH from ioctl() call when I used it as follows: /*HERE I filled rtEntry.rt_flags to RTF_GATEWAY. And filled in the IP address of Gateway in rtEntry structure */ ioctl(sock, SIOCADDRT, &rtEntry) Above call returned an error ENETUNREACH(351). Output of _show_all_interfaces() is as follows: 0x8150784c - log0 - 10.240.3.165 indx(log0) = 1 index(log0) = 1/log0 Please let me know if you have any idea why I am getting such error. Thanks in advance, Madan -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
