[RFC] net: picoping: try to make it asynchronious: fail

Daniele Lacamera daniele.lacamera at tass.be
Mon Jun 2 02:43:54 PDT 2014


On Mon, Jun 2, 2014 at 10:38 AM, Sascha Hauer <s.hauer at pengutronix.de> wrote:
> On Fri, May 30, 2014 at 01:14:08PM +0400, Antony Pavlov wrote:
> This must be solved in the pico_icmp4.c code. The counterpart of
> pico_tree_insert (pico_tree_delete?) must be called as an response to
> ctrlc().
>
> How I see it pico_icmp4_ping should return the cookie so that a ping
> abort function can be implemented:
>
> void pico_icmp4_ping_abort(struct pico_icmp4_ping_cookie *cookie)
> {
>         pico_tree_delete(cookie);
>
>         release_whatever_resources();
> }
>

Sascha,

I agree on this point. We are already working to provide abort calls
for both ping operations and DHCP transactions.
I will keep you posted.

Thanks

-- 
Daniele Lacamera



More information about the barebox mailing list