Network filter problem

bridged with qdn.public.ddk.network
Post Reply
Jeff

Network filter problem

Post by Jeff » Tue Dec 17, 2002 8:48 am

Hello,

I am writing a network filter for QNX 6.2 that sits above the ethernet
driver.
When I receive a packet from the network, I'm trying to rebuild the
npkt structure thanks to ionet API.
But I get "tcpip : blown stack handling 0x102. See "stacksize" option"
and io-net crashes.

Does somebody understands this message ??

Jeff
Poster

Sean Boudreau

Re: Network filter problem

Post by Sean Boudreau » Tue Dec 17, 2002 2:24 pm

The tcpip protocol module runs with a very limited stack. If your
filter is stack hungry, it can easily be blown. If you can't reduce
your stack requirements, the other option is to increase npm-tcpip.so's
stacksize: the "stacksize" option was added for this purpose. For
example:

# io-net -ptcpip stacksize=4096 ...

See the docs or 'use /lib/dll/npm-tpcip.so' for more info.

-seanb

Jeff <fleuryj@thmulti.com> wrote:
Hello,

I am writing a network filter for QNX 6.2 that sits above the ethernet
driver.
When I receive a packet from the network, I'm trying to rebuild the
npkt structure thanks to ionet API.
But I get "tcpip : blown stack handling 0x102. See "stacksize" option"
and io-net crashes.

Does somebody understands this message ??

Jeff
Poster

Post Reply

Return to “qdn.public.ddk.network”