All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Synacek <jsynacek@redhat.com>
To: yoshfuji@linux-ipv6.org
Cc: netdev@vger.kernel.org
Subject: [PATCH] iputils: ping: Fix typo in echo reply
Date: Wed, 03 Oct 2012 10:26:59 +0200	[thread overview]
Message-ID: <506BF6D3.7070206@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 136 bytes --]

Hello,

here is a fix for a typo that's currently present in ping.

Cheers,
--
Jan Synacek
Software Engineer, BaseOS team Brno, Red Hat

[-- Attachment #2: 0001-ping-Fix-typo-in-echo-reply.patch --]
[-- Type: text/x-patch, Size: 662 bytes --]

>From 3b5623a03279538ca9a6f3796626c1aad9ef5477 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jsynacek@redhat.com>
Date: Wed, 3 Oct 2012 10:14:45 +0200
Subject: [PATCH] ping: Fix typo in echo reply

Signed-off-by: Jan Synacek <jsynacek@redhat.com>
---
 ping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ping.c b/ping.c
index 1425d1d..3ab2ae0 100644
--- a/ping.c
+++ b/ping.c
@@ -705,7 +705,7 @@ int send_probe()
 void pr_echo_reply(__u8 *_icp, int len)
 {
 	struct icmphdr *icp = (struct icmphdr *)_icp;
-	printf(" icmp_req=%u", ntohs(icp->un.echo.sequence));
+	printf(" icmp_seq=%u", ntohs(icp->un.echo.sequence));
 }
 
 int
-- 
1.7.11.4


             reply	other threads:[~2012-10-03  8:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-03  8:26 Jan Synacek [this message]
2012-10-07  5:44 ` [PATCH] iputils: ping: Fix typo in echo reply YOSHIFUJI Hideaki
2012-10-07  6:02 ` YOSHIFUJI Hideaki

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=506BF6D3.7070206@redhat.com \
    --to=jsynacek@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.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 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.