how to Add a route to a host in RTEMS ?
Shailesh Hingole
shingole at cs.binghamton.edu
Thu Dec 5 20:51:51 UTC 2002
You can use the function given below to add a routing table entry after
you initialize the appropriate variables for address,gateway and netmask.
rtems_bsdnet_rtrequest (RTM_ADD,
(struct sockaddr *)&address,
(struct sockaddr *)&gateway,
(struct sockaddr *)&netmask,
(RTF_UP | RTF_GATEWAY | RTF_STATIC),NULL)
You can call this function from the "Init" function after you have
initialized the network.
-Shailesh
On Thu, 5 Dec 2002, sudhir pola wrote:
> Hai,
> I would like to know how to add a route to a host in
> in RTEMS. I think it could be done using routing
> sockets but some how i am not able to do it may be i
> am following the wrong procedure.
> Incase if anyone had earlier worked on this can help
> me out on this.
> It would be more helpful for me if any one can provide
> me an example source code ..
>
> Thanx in advance ..
>
> regards,
> sudhir
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
More information about the users
mailing list