_NPKT_ORG_MASK

Hi,

I’m trying to understand the _NPKT_ORG_MASK and how to use it.

anyone?

Benzy Gabay
R&D
Everbee Wireless
mailto:bgabay@everbeewireless.com
tel. +972-9-956-0135
fax. +972-9-955-9654

Benzy Gabay <bgabay@everbeewireless.com> wrote:

Hi,

I’m trying to understand the _NPKT_ORG_MASK and how to use it.

Its a mask for npkt->flags to mask out the bits that are originator specific.

chris

cdm@qnx.com > “The faster I go, the behinder I get.”

Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

can you link me to “how to” doc or send me a small example?
“Chris McKillop” <cdm@qnx.com> wrote in message
news:9qce1f$dob$1@nntp.qnx.com

Benzy Gabay <> bgabay@everbeewireless.com> > wrote:

Hi,

I’m trying to understand the _NPKT_ORG_MASK and how to use it.


Its a mask for npkt->flags to mask out the bits that are originator
specific.

chris

cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL

Benzy Gabay <bgabay@everbeewireless.com> wrote:

can you link me to “how to” doc or send me a small example?

if( npkt->flags & ~_NPKT_ORG_MASK )
{
/* Flags set other then originator flags */
}

The idea is that the originator of the packet (ie: driver for incoming
packets) can use these bits to flag information about the packet and other
layers must not modify or rely on them being set to any partiuclar value.

chris



“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:9qce1f$dob$> 1@nntp.qnx.com> …
Benzy Gabay <> bgabay@everbeewireless.com> > wrote:

Hi,

I’m trying to understand the _NPKT_ORG_MASK and how to use it.


Its a mask for npkt->flags to mask out the bits that are originator
specific.

chris

cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
\

cdm@qnx.com > “The faster I go, the behinder I get.”

Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

got it.

now if I’m the originator how do I set the NPKT_ORG_MASK ?


“Chris McKillop” <cdm@qnx.com> wrote in message
news:9qcfkv$el2$1@nntp.qnx.com

Benzy Gabay <> bgabay@everbeewireless.com> > wrote:

can you link me to “how to” doc or send me a small example?


if( npkt->flags & ~_NPKT_ORG_MASK )
{
/* Flags set other then originator flags */
}

The idea is that the originator of the packet (ie: driver for incoming
packets) can use these bits to flag information about the packet and other
layers must not modify or rely on them being set to any partiuclar value.

chris



“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:9qce1f$dob$> 1@nntp.qnx.com> …
Benzy Gabay <> bgabay@everbeewireless.com> > wrote:

Hi,

I’m trying to understand the _NPKT_ORG_MASK and how to use it.


Its a mask for npkt->flags to mask out the bits that are originator
specific.

chris




cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL




\

cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL

Benzy Gabay <bgabay@everbeewireless.com> wrote:

got it.

now if I’m the originator how do I set the NPKT_ORG_MASK ?

You allocate a packet using the allocation functions provided by io-net
(look in pcnet.c in the pcnet driver for an example of this). Before you
push the packet up the stack you can set any of the bits in the mask to
signal information about the packet when your tx_done handler is invoked
and you get the packet back.

chris


“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:9qcfkv$el2$> 1@nntp.qnx.com> …
Benzy Gabay <> bgabay@everbeewireless.com> > wrote:

can you link me to “how to” doc or send me a small example?


if( npkt->flags & ~_NPKT_ORG_MASK )
{
/* Flags set other then originator flags */
}

The idea is that the originator of the packet (ie: driver for incoming
packets) can use these bits to flag information about the packet and other
layers must not modify or rely on them being set to any partiuclar value.

chris



“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:9qce1f$dob$> 1@nntp.qnx.com> …
Benzy Gabay <> bgabay@everbeewireless.com> > wrote:

Hi,

I’m trying to understand the _NPKT_ORG_MASK and how to use it.


Its a mask for npkt->flags to mask out the bits that are originator
specific.

chris




cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL




\

cdm@qnx.com > “The faster I go, the behinder I get.”
Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
\

cdm@qnx.com > “The faster I go, the behinder I get.”

Chris McKillop – Lewis Carroll –
Software Engineer, QSSL
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<