can't add slogf() in transmit() routine

I am developing a new network adapter driver on qnx platform. I followed the
pcnet sample. I encounted some problems in transmit process.

I want to add slogf() to print some useful message in the pcnet_transmit()
routine. But, once I add them, the tcp/ip binding operation (setting a IP to
my adapter) will get a netmanager error as following: “can’t set aliases to
interface en0”, and at the same time an message on the command line:“blown
stack handling 0x106. See ‘stacksize’ option”.

Without these slogf() call in transmit(), There is not such error. And
slogf() calls in other routines caused no trouble.

Did anyone here face such an error?

Any comment is appreciated.

regards
kevin

Been there! As the message says, “See ‘stacksize’ option.” TCP/IP manages its
own stacks, and while they big enough to hand normal network operations, they
are not nearly big enough to handle slogf calls. Try starting tcpip with a
larger stack. We frequently use

io-net -p tcpip “stacksize=8192”

They may be a lot bigger than is really required, and if you’re short on memory
in your system you can spend some time trying to find the smallest stacksize
that makes io-net live through a slogf call - or, if you have plenty of memory,
you can just set it BIG.

Murf

gulite wrote:

I am developing a new network adapter driver on qnx platform. I followed the
pcnet sample. I encounted some problems in transmit process.

I want to add slogf() to print some useful message in the pcnet_transmit()
routine. But, once I add them, the tcp/ip binding operation (setting a IP to
my adapter) will get a netmanager error as following: “can’t set aliases to
interface en0”, and at the same time an message on the command line:“blown
stack handling 0x106. See ‘stacksize’ option”.

Without these slogf() call in transmit(), There is not such error. And
slogf() calls in other routines caused no trouble.

Did anyone here face such an error?

Any comment is appreciated.

regards
kevin