mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Daniele Lacamera <daniele.lacamera@tass.be>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: [RFC] net: picoping: try to make it asynchronious: fail
Date: Mon, 2 Jun 2014 14:36:09 +0200	[thread overview]
Message-ID: <CAOngqVWHEqmyuYL9q-nK=eUVtPyBuXsX9_SaJrGD9r=2SX=k3A@mail.gmail.com> (raw)
In-Reply-To: <CAOngqVXStG-x8DHA=8B0WVdzhQaKS-k+MzvEUkrGC1hNYOD26A@mail.gmail.com>

> On Mon, Jun 2, 2014 at 10:38 AM, Sascha Hauer <s.hauer@pengutronix.de> wrote:

>> 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)

Hello Sascha, et al.

PicoTCP now supports abort operations for ping (both IPv4 and IPv6).
Our documentation has been updated accordingly.

I wrote a quick test on top of Antony's proposal, and it seems to work
as expected. Now the ping can be interrupted using ctrl+c, and the
operation is terminated.

See my version of the example over here (requires the newest
modules/pico_icmpv4.c and .h from picotcp:0c5b5e3a2d) :

http://pastebin.com/bG3tRZzm

I am going to do the same with the dhcp client shortly.

Regards,

-- 
Daniele

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2014-06-02 12:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30  9:14 Antony Pavlov
2014-05-30  9:36 ` Holger Schurig
2014-06-02  8:38 ` Sascha Hauer
2014-06-02  9:43   ` Daniele Lacamera
2014-06-02 12:36     ` Daniele Lacamera [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOngqVWHEqmyuYL9q-nK=eUVtPyBuXsX9_SaJrGD9r=2SX=k3A@mail.gmail.com' \
    --to=daniele.lacamera@tass.be \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox