where can i write my private data in npkt

Hi,

I need to write a 4 byte private data in npkt packet while it passes my
intermediate driver.
Going over the npkt_t structure haven’t got me anywhere.
Any idea?

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

Can you be a little more specific? What is your “intermediate
driver” in io-net terms? Why do you need this space? It doesn’t
sound like these 4 bytes have meaning to anyone else?

-seanb


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

: I need to write a 4 byte private data in npkt packet while it passes my
: intermediate driver.
: Going over the npkt_t structure haven’t got me anywhere.
: Any idea?

: –
: ----------------------------------------------
: Benzy Gabay
: R&D
: Everbee Wireless
: mailto:bgabay@everbee.com

From email:

In terms of io-net my driver is placed in:
top_type = ip
bot_type = ip
_REG_FILTER_BELOW
i need it so my engine will be able to distinguish between different packets
in its own unique way.
And it needs only 4 bytes to do so.

Sean Boudreau <seanb@qnx.com> wrote:

: Can you be a little more specific? What is your “intermediate
: driver” in io-net terms? Why do you need this space? It doesn’t
: sound like these 4 bytes have meaning to anyone else?

: -seanb


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

: : I need to write a 4 byte private data in npkt packet while it passes my
: : intermediate driver.
: : Going over the npkt_t structure haven’t got me anywhere.
: : Any idea?

: : –
: : ----------------------------------------------
: : Benzy Gabay
: : R&D
: : Everbee Wireless
: : mailto:bgabay@everbee.com

Guess what I don’t understand is once the packets pass your
filter, noone will look at your 4 bytes so why do they need to
be stored with the packet (doesn’t sound like they get on the wire).

If you are modifying the packet somehow and need to know when
your tx_done() routine is called, you can store the 4 bytes when
you call ion->reg_tx_done() (third parameter).

-seanb

Sean Boudreau <seanb@qnx.com> wrote:
: From email:

: In terms of io-net my driver is placed in:
: top_type = ip
: bot_type = ip
: _REG_FILTER_BELOW
: i need it so my engine will be able to distinguish between different packets
: in its own unique way.
: And it needs only 4 bytes to do so.

: Sean Boudreau <seanb@qnx.com> wrote:

: : Can you be a little more specific? What is your “intermediate
: : driver” in io-net terms? Why do you need this space? It doesn’t
: : sound like these 4 bytes have meaning to anyone else?

: : -seanb


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

: : : I need to write a 4 byte private data in npkt packet while it passes my
: : : intermediate driver.
: : : Going over the npkt_t structure haven’t got me anywhere.
: : : Any idea?

: : : –
: : : ----------------------------------------------
: : : Benzy Gabay
: : : R&D
: : : Everbee Wireless
: : : mailto:bgabay@everbee.com