netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iputils: ping: Fix typo in echo reply
@ 2012-10-03  8:26 Jan Synacek
  2012-10-07  5:44 ` YOSHIFUJI Hideaki
  2012-10-07  6:02 ` YOSHIFUJI Hideaki
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Synacek @ 2012-10-03  8:26 UTC (permalink / raw)
  To: yoshfuji; +Cc: netdev

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-07  6:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03  8:26 [PATCH] iputils: ping: Fix typo in echo reply Jan Synacek
2012-10-07  5:44 ` YOSHIFUJI Hideaki
2012-10-07  6:02 ` YOSHIFUJI Hideaki

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