Hi,
I was wondering if anyone can describe a detailed script, which describes
the way of resource allocations and release of a ping that is not been
answered.
\
Cheers
Benzy Gabay
R&D, IPSec team
Everbee Wireless
Benzy Gabay <bgabay@everbeewireless.com> wrote:
: Hi,
: I was wondering if anyone can describe a detailed script, which describes
: the way of resource allocations and release of a ping that is not been
: answered.
Whenever a packet has finished being tx’d, whether a ping request or other
packet, the driver calls ion->tx_done() on the packet which releases it
back to the originating upper layer(s).
-seanb
Sean Boudreau,
I’ve built a filter, which is located below IP.
Scenario for un-answered ping:
The user calls ping to unreachable host.
Packet comes from TCP layer to my filter.
my Tx_Down is been called.
I’m doing registration the packet with reg_tx_done and calling tx_down my
self.
- should tx_down return success of fail?
- in my case it is failing, what should i do now?
–
Cheers
Benzy Gabay
R&D, IPSec team
Everbee Wireless http://www.everbeewireless.com
Tel: + 972 9 956 01 35 Fax: + 972 9 955 96 54
mailto: bgabay@everbeewireless.com
“Sean Boudreau” <seanb@qnx.com> wrote in message
news:9vacra$pqj$1@nntp.qnx.com…
Benzy Gabay <> bgabay@everbeewireless.com> > wrote:
: Hi,
: I was wondering if anyone can describe a detailed script, which
describes
: the way of resource allocations and release of a ping that is not been
: answered.
Whenever a packet has finished being tx’d, whether a ping request or other
packet, the driver calls ion->tx_done() on the packet which releases it
back to the originating upper layer(s).
-seanb
Benzy Gabay <bgabay@everbeewireless.com> wrote:
: Sean Boudreau,
: I’ve built a filter, which is located below IP.
: Scenario for un-answered ping:
: The user calls ping to unreachable host.
: Packet comes from TCP layer to my filter.
: my Tx_Down is been called.
: I’m doing registration the packet with reg_tx_done and calling tx_down my
: self.
: 1) should tx_down return success of fail?
If the packet is set up correctly and the driver
can put it out, it should succeed. What’s the
errno.
: 2) in my case it is failing, what should i do now?
Nothing. The lower layer should have called ion->tx_done()
on the packet before returning the failure.
-seanb
Sean,
- the tx_down return -1 and the last errno (I’m not sure it has any
connection to this problem) is number 2.
- the lower level is NOT calling tx_done, which cause my driver to create
memory leak.
Any ideas?
–
Cheers
Benzy Gabay
R&D, IPSec team
Everbee Wireless http://www.everbeewireless.com
Tel: + 972 9 956 01 35 Fax: + 972 9 955 96 54
mailto: bgabay@everbeewireless.com
“Sean Boudreau” <seanb@qnx.com> wrote in message
news:9vd2mt$p4p$1@nntp.qnx.com…
Benzy Gabay <> bgabay@everbeewireless.com> > wrote:
: Sean Boudreau,
: I’ve built a filter, which is located below IP.
: Scenario for un-answered ping:
: The user calls ping to unreachable host.
: Packet comes from TCP layer to my filter.
: my Tx_Down is been called.
: I’m doing registration the packet with reg_tx_done and calling tx_down
my
: self.
: 1) should tx_down return success of fail?
If the packet is set up correctly and the driver
can put it out, it should succeed. What’s the
errno.
: 2) in my case it is failing, what should i do now?
Nothing. The lower layer should have called ion->tx_done()
on the packet before returning the failure.
-seanb
Benzy Gabay <bgabay@everbeewireless.com> wrote:
: Sean,
: 1) the tx_down return -1 and the last errno (I’m not sure it has any
: connection to this problem) is number 2.
You probably havent stuffed npkt->cell, npkt->endpoint correctly or
you aren’t connected to anything at all.
: 2) the lower level is NOT calling tx_done, which cause my driver to create
: memory leak.
Are you sure you registered for a done callback correctly / at all?
In the case of the tx_down() failing, io-net does call it’s tx_done() on
the npkt.
: Any ideas?
: –
: Cheers
: ==============================
: Benzy Gabay
: R&D, IPSec team
: Everbee Wireless http://www.everbeewireless.com
: Tel: + 972 9 956 01 35 Fax: + 972 9 955 96 54
: mailto: bgabay@everbeewireless.com
: “Sean Boudreau” <seanb@qnx.com> wrote in message
: news:9vd2mt$p4p$1@nntp.qnx.com…
:> Benzy Gabay <bgabay@everbeewireless.com> wrote:
:> : Sean Boudreau,
:>
:> : I’ve built a filter, which is located below IP.
:> : Scenario for un-answered ping:
:> : The user calls ping to unreachable host.
:> : Packet comes from TCP layer to my filter.
:> : my Tx_Down is been called.
:> : I’m doing registration the packet with reg_tx_done and calling tx_down
: my
:> : self.
:>
:> : 1) should tx_down return success of fail?
:>
:> If the packet is set up correctly and the driver
:> can put it out, it should succeed. What’s the
:> errno.
:>
:> : 2) in my case it is failing, what should i do now?
:>
:> Nothing. The lower layer should have called ion->tx_done()
:> on the packet before returning the failure.
:>
:> -seanb