Net manager

Dear all,

Subject: Network installation.

Context: We are developing a Network Bridge Card for Cable-TV to Ethernet
running on QNX 4.24. Our driver interfaces with Net via Net.fd

Symptom: We are unable to run both ethernet and Our driver. Though both
drivers run (listed by ps), and though netinfo shows correct configuration
information for both interfaces, ifconfig of en1 fails with IOCTL error: no
such interface.

Details: Basic network installation works:

\

  1. Cable & Ethernet

Net &

Net.ether82557 -p0 &

Net.ether82557 -p1 &

mynet_driver &

Net.fd -c -a $MAC_ADDRESS -h -l 2 /dev/MyNet_fd &

netmap -f

Socket MyHostName &

ifconfig en1 xxx.xxx.xxx.xxx up

ifconfig en2 xxx.xxx.xxx.xxx up


error message:
Send(): Register with Net Manager failed
ifconfig: ioctl (SIOCGIFFLAGS): no such interface

netstat -i shows en2 and lo0 only



Any help is appreciated.

Lots of things to look at…

HIT wrote in message <9t2qqe$gj$2@inn.qnx.com>…

Net &

Default here is 2 drivers. You need ‘Net -d 3’ at least.

Net.ether82557 -p0 &
Net.ether82557 -p1 &

These guys potentially take a long time to init (3-4 seconds) since
you didn’t specify media type…

mynet_driver &
Net.fd -c -a $MAC_ADDRESS -h -l 2 /dev/MyNet_fd &

Does this work with only 1 other device? Are you sure you are
registered with Net?

netmap -f

If this is a standalone device I would omit this. The drivers will register
their MAC addresses with Net and they will be added. If a card/MAC
changes and you load this here you will override what Socket sees as
the MAC addresses and will arp wrong information.

Socket MyHostName &

If this is done before the Net.* interfaces are stable you will only
get what was stable/registered… best to delay some before you
do this (In Nto you could wait for the devices…)

ifconfig en1 xxx.xxx.xxx.xxx up
ifconfig en2 xxx.xxx.xxx.xxx up

Again… too close behind ‘Socket &’ - you need to wait for it to come
up.


Jay