From: Jan Synacek <jsynacek@redhat.com>
To: netdev@vger.kernel.org
Subject: Re: ping -f is broken in iputils 20121011
Date: Mon, 05 Nov 2012 10:17:19 +0100 [thread overview]
Message-ID: <5097841F.2050905@redhat.com> (raw)
In-Reply-To: <1TTUJN-000MzR-Tp@internal.tormail.org>
[-- Attachment #1: Type: text/plain, Size: 622 bytes --]
On 10/31/2012 10:11 AM, Mohammad Alsaleh wrote:
> On Tue, Oct 30, 2012 at 11:52:49PM +0300, Mohammad Alsaleh wrote:
>> As explained in this bug report(1). ping -f seems to be broken in
>> iputils 20121011.
>>
>> (1) https://bugs.archlinux.org/task/32306
>
> Bisected to commit 8feb586c4c6df32badb159947ed233898891aecd
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Can you please try the attached patch?
--
Jan Synacek
Software Engineer, BaseOS team Brno, Red Hat
[-- Attachment #2: flood.patch --]
[-- Type: text/x-patch, Size: 676 bytes --]
--- iputils-s20121011/ping_common.h 2012-11-05 10:07:40.065281888 +0100
+++ iputils-s20121011-new/ping_common.h 2012-11-05 10:07:22.001268362 +0100
@@ -141,7 +141,7 @@ static inline void write_stdout(const ch
do {
cc = write(STDOUT_FILENO, str + o, len - o);
o += cc;
- } while (len >= o || cc < 0);
+ } while (len > o || cc < 0);
}
/*
--- iputils-s20121011/ping_common.c 2012-11-05 10:07:40.066281889 +0100
+++ iputils-s20121011-new/ping_common.c 2012-11-05 10:07:22.007268368 +0100
@@ -776,7 +776,7 @@ restamp:
if (!csfailed)
write_stdout("\b \b", 3);
else
- write_stdout("\bC", 1);
+ write_stdout("\bC", 2);
} else {
int i;
__u8 *cp, *dp;
next prev parent reply other threads:[~2012-11-05 9:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20121030205249.GA2817@mail>
2012-10-31 9:11 ` ping -f is broken in iputils 20121011 Mohammad Alsaleh
2012-11-05 9:17 ` Jan Synacek [this message]
2012-11-05 15:37 ` Mohammad Alsaleh
2012-11-05 18:12 ` YOSHIFUJI Hideaki
2012-11-05 15:28 Stéphane Gaudreault
-- strict thread matches above, loose matches on Subject: below --
2012-10-30 20:52 Mohammad Alsaleh
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=5097841F.2050905@redhat.com \
--to=jsynacek@redhat.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).