Adding a route

Ilya Alexeev ilya at continuum.ru
Mon May 27 16:55:58 UTC 2002


Hello Artemii,

Monday, May 27, 2002 you wrote:

ASI> Hi!

ASI> Did you tried -
ASI> rtems_bsdnet_rtrequest procedure?
ASI> You could use ioctl,
ASI> or routing socket interface too.

I have looked at rtems_bsdnet_rtrequest.
It's needed in address/mask and a gateway, but not just interface...

Can you please give me an example
how to add such record with the socket/ioctl?

ASI> On Mon, 27 May 2002, Ilya Alexeev wrote:

>> Hi all.
>>
>> Does anyone know how to implement this command for RTEMS:
>>
>> route add -host 192.168.10.1 eth0
>> (it's a Linux command)
>>
>> My RTEMS' eth0 interface have address=192.168.0.1.
>>
>> There are no problems using Linux, but
>> how to add such route in RTEMS?
>>
>> Thanks.
>>
>> Ilya.
>>




More information about the users mailing list