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.
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
Cheers,
Sebastien.