Ethenet Driver does not work under 6.2

Hi Guys,

I have an ethernet driver that I have writtem for QNX6.1. I’ve just
installed 6.2 on a test machine and recompiled the driver.

The problem I have is this.

The driver appears to start OK. There are no errors

Nicinfo reports the statistics on the driver correctly and shows that it
has received packets correctly.

However, when I try to set the IP address of the interface (en0) I get
the following message:

ifconfig en0 10.10.10.10

ifconfig: SIOCGIFFLAGS en0: No such device or address

(I’m using the big ipstack npm-tcpip.so)

Anybody have any pointers? This driver works fine under 6.1

Thanks in advance

Dave

Do you set npkt->tot_iov correctly (usually 1) in
the advertise packet?

-seanb

Dave Edwards <nobody@home.com> wrote:

Hi Guys,

I have an ethernet driver that I have writtem for QNX6.1. I’ve just
installed 6.2 on a test machine and recompiled the driver.

The problem I have is this.

The driver appears to start OK. There are no errors

Nicinfo reports the statistics on the driver correctly and shows that it
has received packets correctly.

However, when I try to set the IP address of the interface (en0) I get
the following message:

ifconfig en0 10.10.10.10

ifconfig: SIOCGIFFLAGS en0: No such device or address

(I’m using the big ipstack npm-tcpip.so)

Anybody have any pointers? This driver works fine under 6.1

Thanks in advance

Dave

Sean,

The tot_iov is set to 1.

This code is taken directly from the 6.1 PCnet driver example.
The device show up in /dev/io-net and I can do a nicinfo on it to get
some statistics.

Dave



Sean Boudreau wrote:

Do you set npkt->tot_iov correctly (usually 1) in
the advertise packet?

-seanb

Dave Edwards <> nobody@home.com> > wrote:

Hi Guys,


I have an ethernet driver that I have writtem for QNX6.1. I’ve just
installed 6.2 on a test machine and recompiled the driver.


The problem I have is this.


The driver appears to start OK. There are no errors


Nicinfo reports the statistics on the driver correctly and shows that it
has received packets correctly.


However, when I try to set the IP address of the interface (en0) I get
the following message:

ifconfig en0 10.10.10.10


ifconfig: SIOCGIFFLAGS en0: No such device or address


(I’m using the big ipstack npm-tcpip.so)


Anybody have any pointers? This driver works fine under 6.1


Thanks in advance


Dave

\

The stack learns about the driver from the advertise packet
so I’d look there. The tot_iov was an omission in some 6.1
drivers. Does the order the stack and driver are started
matter?

-seanb

Dave Edwards <nobody@home.com> wrote:

Sean,

The tot_iov is set to 1.

This code is taken directly from the 6.1 PCnet driver example.
The device show up in /dev/io-net and I can do a nicinfo on it to get
some statistics.

Dave



Sean Boudreau wrote:
Do you set npkt->tot_iov correctly (usually 1) in
the advertise packet?

-seanb

Dave Edwards <> nobody@home.com> > wrote:

Hi Guys,


I have an ethernet driver that I have writtem for QNX6.1. I’ve just
installed 6.2 on a test machine and recompiled the driver.


The problem I have is this.


The driver appears to start OK. There are no errors


Nicinfo reports the statistics on the driver correctly and shows that it
has received packets correctly.


However, when I try to set the IP address of the interface (en0) I get
the following message:

ifconfig en0 10.10.10.10


ifconfig: SIOCGIFFLAGS en0: No such device or address


(I’m using the big ipstack npm-tcpip.so)


Anybody have any pointers? This driver works fine under 6.1


Thanks in advance


Dave

\

Sean,

Thanks, it was the total iov. For some reason it was being cleared in
the advertisment routine even though it had been set in the allocate
packet on the PCNet example code.

Someone had put a hack it to reset the tot_iov back to 1;

Cheers for now

Dave


Sean Boudreau wrote:

The stack learns about the driver from the advertise packet
so I’d look there. The tot_iov was an omission in some 6.1
drivers. Does the order the stack and driver are started
matter?

-seanb

Dave Edwards <> nobody@home.com> > wrote:

Sean,


The tot_iov is set to 1.


This code is taken directly from the 6.1 PCnet driver example.
The device show up in /dev/io-net and I can do a nicinfo on it to get
some statistics.


Dave




Sean Boudreau wrote:

Do you set npkt->tot_iov correctly (usually 1) in
the advertise packet?

-seanb

Dave Edwards <> nobody@home.com> > wrote:


Hi Guys,


I have an ethernet driver that I have writtem for QNX6.1. I’ve just
installed 6.2 on a test machine and recompiled the driver.


The problem I have is this.


The driver appears to start OK. There are no errors


Nicinfo reports the statistics on the driver correctly and shows that it
has received packets correctly.


However, when I try to set the IP address of the interface (en0) I get
the following message:

ifconfig en0 10.10.10.10


ifconfig: SIOCGIFFLAGS en0: No such device or address


(I’m using the big ipstack npm-tcpip.so)


Anybody have any pointers? This driver works fine under 6.1


Thanks in advance


Dave


\