From: Salvatore Mesoraca <s.mesoraca16@gmail.com>
To: Lorenzo Colitti <lorenzo@google.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>,
Vasiliy Kulikov <segooon@gmail.com>,
Tyler Hicks <tyhicks@canonical.com>
Subject: Re: [PATCH] iputils ping: add (non-raw) ICMP socket support
Date: Thu, 09 Apr 2015 11:07:11 +0200 [thread overview]
Message-ID: <2761020.mMbmnV3vx2@msg-id> (raw)
In-Reply-To: <CAKD1Yr2sFyx59FH2wCH_okAadv7dJxGQZtqAa56p6kYXDW-VBw@mail.gmail.com>
Lorenzo Colitti wrote:
> On Wed, Apr 8, 2015 at 10:05 PM, Salvatore Mesoraca <s.mesoraca16@gmail.com>
> wrote:
> > > And, would you provide patch for ping6 as well?
> >
> > I was planning to work on ping6 as well If this patch get accepted.
>
> Yoshifuji-san,
>
> I sent you a patch that works for both IPv4 and IPv6 a couple of years ago:
>
> http://marc.info/?l=linux-netdev&m=137026384215378
> http://marc.info/?l=linux-netdev&m=137026384815379
>
> This code has been running on Android since then:
>
> https://android-review.googlesource.com/#/c/61948/
>
> Perhaps we can start from that patchset?
>
> Cheers,
> Lorenzo
Hi Lorenzo,
Thank you for bringing this up,
it seems that you have a better understanding than mine on the original patch.
Anyway I'm wondering why you didn't include this change:
> - if (!working_recverr) {
> + if (!using_ping_socket && !working_recverr) {
inside receive_error_msg()
The code in the if block try to execute a setsockopt(icmp_sock, SOL_RAW,
ICMP_FILTER, ...) which is only possible on a raw socket.
What am I missing?
Thank you for your patience,
I hope this time your patch get accepted,
Salvatore Mesoraca
prev parent reply other threads:[~2015-04-09 9:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 8:34 [PATCH] iputils ping: add (non-raw) ICMP socket support Salvatore Mesoraca
2015-04-08 8:56 ` YOSHIFUJI Hideaki
2015-04-08 9:08 ` Salvatore Mesoraca
2015-04-08 9:20 ` YOSHIFUJI Hideaki
2015-04-08 11:05 ` Salvatore Mesoraca
2015-04-08 12:05 ` YOSHIFUJI Hideaki
2015-04-08 13:05 ` Salvatore Mesoraca
2015-04-08 23:49 ` Lorenzo Colitti
[not found] ` <CAKD1Yr2sFyx59FH2wCH_okAadv7dJxGQZtqAa56p6kYXDW-VBw@mail.gmail.com>
2015-04-09 9:07 ` Salvatore Mesoraca [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=2761020.mMbmnV3vx2@msg-id \
--to=s.mesoraca16@gmail.com \
--cc=hideaki.yoshifuji@miraclelinux.com \
--cc=lorenzo@google.com \
--cc=netdev@vger.kernel.org \
--cc=segooon@gmail.com \
--cc=tyhicks@canonical.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.