BAD3 error, what is it?

Hi,

A packet come from tcp/ip layer to my intermediate driver which is in the ip
layer.
tx_down is been called by my program.
tx_down return success error code.
then I’m getting the following error to my terminal:

io-net: ex_tx_done BAD3.

remarks: - tx_done is not been called

  • io-net is not been dump

any ideas what is means?

Benzy Gabay
R&D
Everbee Wireless
mailto:bgabay@everbeewireless.com

Benzy Gabay <bgabay@everbee.com> wrote:
: Hi,

: A packet come from tcp/ip layer to my intermediate driver which is in the ip
: layer.
: tx_down is been called by my program.
: tx_down return success error code.
: then I’m getting the following error to my terminal:

: io-net: ex_tx_done BAD3.

: remarks: - tx_done is not been called
: - io-net is not been dump

: any ideas what is means?


This probably means you called ion->reg_tx_done(hdl, …) and
passed a wrong hdl. Hdl should be what io-net returned to you
when you first registered:

ion->reg(dll, reg, &hdl, …)

-seanb

what about BAD1 ??? I’m getting it now.


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

Benzy Gabay <> bgabay@everbee.com> > wrote:
: Hi,

: A packet come from tcp/ip layer to my intermediate driver which is in
the ip
: layer.
: tx_down is been called by my program.
: tx_down return success error code.
: then I’m getting the following error to my terminal:

: io-net: ex_tx_done BAD3.

: remarks: - tx_done is not been called
: - io-net is not been dump

: any ideas what is means?


This probably means you called ion->reg_tx_done(hdl, …) and
passed a wrong hdl. Hdl should be what io-net returned to you
when you first registered:

ion->reg(dll, reg, &hdl, …)

-seanb

It’s probably the same thing. BAD1 comes from an up
packet being reclaimed, BAD3 comes from a down packet
but the cause is probably the same.

In your email you mentioned the address of hdl is
the same in ion->reg and ion->reg_tx_done. ion->reg
takes the address to set the value, all other io-net
functions take the value itself:

ion->reg(dll, reg, &hdl, …);
ion->reg_tx_done(hdl, …);

-seanb

Benzy Gabay <bgabay@everbee.com> wrote:
: what about BAD1 ??? I’m getting it now.


: “Sean Boudreau” <seanb@qnx.com> wrote in message
: news:9l8sno$4d1$1@nntp.qnx.com
:> Benzy Gabay <bgabay@everbee.com> wrote:
:> : Hi,
:>
:> : A packet come from tcp/ip layer to my intermediate driver which is in
: the ip
:> : layer.
:> : tx_down is been called by my program.
:> : tx_down return success error code.
:> : then I’m getting the following error to my terminal:
:>
:> : io-net: ex_tx_done BAD3.
:>
:> : remarks: - tx_done is not been called
:> : - io-net is not been dump
:>
:> : any ideas what is means?
:>
:>
:> This probably means you called ion->reg_tx_done(hdl, …) and
:> passed a wrong hdl. Hdl should be what io-net returned to you
:> when you first registered:
:>
:> ion->reg(dll, reg, &hdl, …)
:>
:> -seanb