Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

vxworks and IP packet forwarding

514 views
Skip to first unread message

Sebastien Fauris

unread,
Aug 28, 2000, 3:00:00 AM8/28/00
to
Hi Folks,

I have a target with 2 ethernet interfaces.
Is there a way to disable the IP packet forwarding from an ethernet
interface
to the other when the packet is not for my vxWorks target ?
(i.e. to disable the routing feature so my target can not be used as a
gateway
from a network to another).

Thanks !

Sebastien.


David Laight

unread,
Aug 29, 2000, 3:00:00 AM8/29/00
to

> I have a target with 2 ethernet interfaces.
> Is there a way to disable the IP packet forwarding from an ethernet interface
> to the other when the packet is not for my vxWorks target ?

Edit target/h/netLib.h and change:

#define IP_FLAGS_DFLT (IP_DO_FORWARDING | IP_DO_REDIRECT | \
IP_DO_CHECKSUM_SND | IP_DO_CHECKSUM_RCV)
to:
#define IP_FLAGS_DFLT (/* IP_DO_FORWARDING | */ IP_DO_REDIRECT | \
IP_DO_CHECKSUM_SND | IP_DO_CHECKSUM_RCV)

(or do something else that has the same effect).

As to why this isn't either:
a) documented
b) in the standard config files
one would have to ask the vxWorks founding fathers!

David


----------------------------------------------------------------
David Laight email: d...@tadpole.co.uk
Tadpole Technology plc phone: +44 1223 428 232
Cambridge, UK fax: +44 1223 428 201


Sebastien Fauris

unread,
Aug 29, 2000, 3:00:00 AM8/29/00
to
Thanks a lot David !

Cheers,

Sebastien.

0 new messages