summaryrefslogtreecommitdiffstats
path: root/tools/l2ping.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-02-01 11:37:23 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-02-01 11:37:23 +0000
commite4b4cf97715729084740673c44dfabcf8b29fcfe (patch)
treee25573b2efb13168f16b6c4998479803f9bac97f /tools/l2ping.c
parent02493301a7f7f30a0e18003857cbd2eb302adc95 (diff)
Fix ident calculation
Diffstat (limited to 'tools/l2ping.c')
-rw-r--r--tools/l2ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/l2ping.c b/tools/l2ping.c
index 0e7a4be1..01b1f21b 100644
--- a/tools/l2ping.c
+++ b/tools/l2ping.c
@@ -193,7 +193,7 @@ static void ping(char *svr)
cmd->len = btohs(cmd->len);
/* Check for our id */
- if( cmd->ident != id )
+ if (cmd->ident != id)
continue;
/* Check type */
@@ -218,7 +218,7 @@ static void ping(char *svr)
if (delay)
sleep(delay);
} else {
- printf("no response from %s: id %d\n", svr, id);
+ printf("no response from %s: id %d\n", svr, id - ident);
}
if (++id > 254)