Setting Arp and Route Entries Problems

Hi,
I am in the process of debugging my Transmission path of my network driver.
For that I am trying to set an manual Arp entry and I encounter the
following problems!!

In one session:

io-net&

In second session

mount -Tio-net /mypath/mydriver.so

In third session

mount -Tio-net /lib/dll/npm-tcpip.so
ifconfig en0 11.0.0.2 up
route add 11.0.0.1 en0
en0: Bad Value
arp -s 11.0.0.1 00:00:1d:31:da:bf
Cannot intuit interface index and type for 11.0.0.1

I want to test a path where I send the ICMP packet instead of ARP packet!
But cuz of the above problems (Bad Value, Cannot intuit …), I am unable
to do this.

Could anyone help me out!

Thanks,
Jalaja

JalajaDevi <jganapat@storage.com> wrote:
: Hi,
: I am in the process of debugging my Transmission path of my network driver.
: For that I am trying to set an manual Arp entry and I encounter the
: following problems!!

: In one session:
:>io-net&

: In second session
:>mount -Tio-net /mypath/mydriver.so

: In third session
:> mount -Tio-net /lib/dll/npm-tcpip.so
:>ifconfig en0 11.0.0.2 up
:>route add 11.0.0.1 en0
: en0: Bad Value

You don’t need to add this route. A route to network 11
is added for you when you do the ifconfig. If you insist.
it would look like:

route add -interface 11.1 11.2

but again this is redundant.

:>arp -s 11.0.0.1 00:00:1d:31:da:bf
: Cannot intuit interface index and type for 11.0.0.1

Don’t think that message is coming from our arp. Are
you running the latest version of RTP?

-seanb

And the “Cannot intuit…” message is not in my driver and from somewhere
from QNX.

I could see from the Help Menu Version 2.0


QNX 4 ,
QNX Neutrino OS Version 2.11
Network Driver SDK for QNX Neutrino Version 1.0 (Alpha) Which i have
downloaded form the beta URL

But Manual Arp entry setting is not possible in older Version? What should I
do next?


Thanks,
Jalaja


“Sean Boudreau” <seanb@qnx.com> wrote in message
news:9oq4f9$1uo$1@nntp.qnx.com

JalajaDevi <> jganapat@storage.com> > wrote:
: Hi,
: I am in the process of debugging my Transmission path of my network
driver.
: For that I am trying to set an manual Arp entry and I encounter the
: following problems!!

: In one session:
:>io-net&

: In second session
:>mount -Tio-net /mypath/mydriver.so

: In third session
:> mount -Tio-net /lib/dll/npm-tcpip.so
:>ifconfig en0 11.0.0.2 up
:>route add 11.0.0.1 en0
: en0: Bad Value

You don’t need to add this route. A route to network 11
is added for you when you do the ifconfig. If you insist.
it would look like:

route add -interface 11.1 11.2

but again this is redundant.

:>arp -s 11.0.0.1 00:00:1d:31:da:bf
: Cannot intuit interface index and type for 11.0.0.1

Don’t think that message is coming from our arp. Are
you running the latest version of RTP?

-seanb

The only way to add arp entries manually is to upgrade.

-seanb

JalajaDevi <jganapat@storage.com> wrote:
: And the “Cannot intuit…” message is not in my driver and from somewhere
: from QNX.

: I could see from the Help Menu Version 2.0


: QNX 4 ,
: QNX Neutrino OS Version 2.11
: Network Driver SDK for QNX Neutrino Version 1.0 (Alpha) Which i have
: downloaded form the beta URL

: But Manual Arp entry setting is not possible in older Version? What should I
: do next?


: Thanks,
: Jalaja


: “Sean Boudreau” <seanb@qnx.com> wrote in message
: news:9oq4f9$1uo$1@nntp.qnx.com
:> JalajaDevi <jganapat@storage.com> wrote:
:> : Hi,
:> : I am in the process of debugging my Transmission path of my network
: driver.
:> : For that I am trying to set an manual Arp entry and I encounter the
:> : following problems!!
:>
:> : In one session:
:> :>io-net&
:>
:> : In second session
:> :>mount -Tio-net /mypath/mydriver.so
:>
:> : In third session
:> :> mount -Tio-net /lib/dll/npm-tcpip.so
:> :>ifconfig en0 11.0.0.2 up
:> :>route add 11.0.0.1 en0
:> : en0: Bad Value
:>
:> You don’t need to add this route. A route to network 11
:> is added for you when you do the ifconfig. If you insist.
:> it would look like:
:>
:> route add -interface 11.1 11.2
:>
:> but again this is redundant.
:>
:> :>arp -s 11.0.0.1 00:00:1d:31:da:bf
:> : Cannot intuit interface index and type for 11.0.0.1
:>
:> Don’t think that message is coming from our arp. Are
:> you running the latest version of RTP?
:>
:> -seanb

“Sean Boudreau” <seanb@qnx.com> wrote in message
news:9oqk0p$ap1$1@nntp.qnx.com

The only way to add arp entries manually is to upgrade.

-seanb

I have already started with that! But I encounter some problems like this:
Any clues?

I tried compiling my driver code which compiles very well in QNX4. But the
SAME code (without changing the driver tree structure) in QNX6.1 (Downloaded
from the Net) gives me the following errors:
What should I do?


make -j 1 -Cx86 all
make[1]: Entering directory
/usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86' make -j 1 -Cdll all && make -j 1 -Cdll.g all make[2]: Entering directory /usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86/dll’
/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -
I. -I/usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86/dll -I/u
sr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86 -I/usr/jal/temp
/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta -I/usr/jal/temp/ta/qnx/os/netd
dk-2.1/src/nto/drivers/devn -I/usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/dri
vers/devn/include -I/drivers/lib -I/net/public -I/usr/include -shared
-DVARIANT_dll -DVARIANT_ta
/usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/Data.c
/net/public/.: No route to host
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cpp error 33
make[2]: *** [Data.o] Error 1
make[2]: Leaving directory
/usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86/dll' make[1]: *** [all] Error 2 make[1]: Leaving directory /usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86’
make: *** [all] Error 2




/net/public/.: No route to host

cc: /usr/lib/gcc-lib/ntox86/2.95.2/cpp error 33











“Sean Boudreau” <seanb@qnx.com> wrote in message
news:9oqk0p$ap1$1@nntp.qnx.com

The only way to add arp entries manually is to upgrade.

-seanb

JalajaDevi <> jganapat@storage.com> > wrote:
: And the “Cannot intuit…” message is not in my driver and from
somewhere
: from QNX.

: I could see from the Help Menu Version 2.0


: QNX 4 ,
: QNX Neutrino OS Version 2.11
: Network Driver SDK for QNX Neutrino Version 1.0 (Alpha) Which i have
: downloaded form the beta URL

: But Manual Arp entry setting is not possible in older Version? What
should I
: do next?


: Thanks,
: Jalaja


: “Sean Boudreau” <> seanb@qnx.com> > wrote in message
: news:9oq4f9$1uo$> 1@nntp.qnx.com> …
:> JalajaDevi <> jganapat@storage.com> > wrote:
:> : Hi,
:> : I am in the process of debugging my Transmission path of my network
: driver.
:> : For that I am trying to set an manual Arp entry and I encounter the
:> : following problems!!
:
:> : In one session:
:> :>io-net&
:
:> : In second session
:> :>mount -Tio-net /mypath/mydriver.so
:
:> : In third session
:> :> mount -Tio-net /lib/dll/npm-tcpip.so
:> :>ifconfig en0 11.0.0.2 up
:> :>route add 11.0.0.1 en0
:> : en0: Bad Value
:
:> You don’t need to add this route. A route to network 11
:> is added for you when you do the ifconfig. If you insist.
:> it would look like:
:
:> route add -interface 11.1 11.2
:
:> but again this is redundant.
:
:> :>arp -s 11.0.0.1 00:00:1d:31:da:bf
:> : Cannot intuit interface index and type for 11.0.0.1
:
:> Don’t think that message is coming from our arp. Are
:> you running the latest version of RTP?
:
:> -seanb

JalajaDevi <jganapat@storage.com> wrote:
: “Sean Boudreau” <seanb@qnx.com> wrote in message
: news:9oqk0p$ap1$1@nntp.qnx.com
:>
:> The only way to add arp entries manually is to upgrade.
:>
:> -seanb


: I have already started with that! But I encounter some problems like this:
: Any clues?

: I tried compiling my driver code which compiles very well in QNX4. But the
: SAME code (without changing the driver tree structure) in QNX6.1 (Downloaded
: from the Net) gives me the following errors:
: What should I do?


: make -j 1 -Cx86 all
: make[1]: Entering directory
: /usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86' : make -j 1 -Cdll all && make -j 1 -Cdll.g all : make[2]: Entering directory : /usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86/dll’
: /usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -
: I. -I/usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86/dll -I/u
: sr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86 -I/usr/jal/temp
: /ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta -I/usr/jal/temp/ta/qnx/os/netd
: dk-2.1/src/nto/drivers/devn -I/usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/dri
: vers/devn/include -I/drivers/lib -I/net/public -I/usr/include -shared
^^^^^^^^^^^^
You’re trying to include something from /net/public
but can’t access that directory / mount point.
Resolve this or remove the reference from your
makefile.

-seanb

: -DVARIANT_dll -DVARIANT_ta
: /usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/Data.c
: /net/public/.: No route to host
: cc: /usr/lib/gcc-lib/ntox86/2.95.2/cpp error 33
: make[2]: *** [Data.o] Error 1
: make[2]: Leaving directory
: /usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86/dll' : make[1]: *** [all] Error 2 : make[1]: Leaving directory : /usr/jal/temp/ta/qnx/os/netddk-2.1/src/nto/drivers/devn/ta/x86’
: make: *** [all] Error 2




: /net/public/.: No route to host

: cc: /usr/lib/gcc-lib/ntox86/2.95.2/cpp error 33











: “Sean Boudreau” <seanb@qnx.com> wrote in message
: news:9oqk0p$ap1$1@nntp.qnx.com
:>
:> The only way to add arp entries manually is to upgrade.
:>
:> -seanb
:>
:> JalajaDevi <jganapat@storage.com> wrote:
:> : And the “Cannot intuit…” message is not in my driver and from
: somewhere
:> : from QNX.
:>
:> : I could see from the Help Menu Version 2.0
:>
:>
:> : QNX 4 ,
:> : QNX Neutrino OS Version 2.11
:> : Network Driver SDK for QNX Neutrino Version 1.0 (Alpha) Which i have
:> : downloaded form the beta URL
:>
:> : But Manual Arp entry setting is not possible in older Version? What
: should I
:> : do next?
:>
:>
:> : Thanks,
:> : Jalaja
:>
:>
:> : “Sean Boudreau” <seanb@qnx.com> wrote in message
:> : news:9oq4f9$1uo$1@nntp.qnx.com
:> :> JalajaDevi <jganapat@storage.com> wrote:
:> :> : Hi,
:> :> : I am in the process of debugging my Transmission path of my network
:> : driver.
:> :> : For that I am trying to set an manual Arp entry and I encounter the
:> :> : following problems!!
:> :>
:> :> : In one session:
:> :> :>io-net&
:> :>
:> :> : In second session
:> :> :>mount -Tio-net /mypath/mydriver.so
:> :>
:> :> : In third session
:> :> :> mount -Tio-net /lib/dll/npm-tcpip.so
:> :> :>ifconfig en0 11.0.0.2 up
:> :> :>route add 11.0.0.1 en0
:> :> : en0: Bad Value
:> :>
:> :> You don’t need to add this route. A route to network 11
:> :> is added for you when you do the ifconfig. If you insist.
:> :> it would look like:
:> :>
:> :> route add -interface 11.1 11.2
:> :>
:> :> but again this is redundant.
:> :>
:> :> :>arp -s 11.0.0.1 00:00:1d:31:da:bf
:> :> : Cannot intuit interface index and type for 11.0.0.1
:> :>
:> :> Don’t think that message is coming from our arp. Are
:> :> you running the latest version of RTP?
:> :>
:> :> -seanb
:>
:>