* [ECOS] could not add rtentry with default gateway to ipstack(FREE BSD based) of ecos
@ 2007-05-19 22:24 Madan Mohan Goud
0 siblings, 0 replies; only message in thread
From: Madan Mohan Goud @ 2007-05-19 22:24 UTC (permalink / raw)
To: ecos-discuss
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-19 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-19 22:24 [ECOS] could not add rtentry with default gateway to ipstack(FREE BSD based) of ecos Madan Mohan Goud
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).