diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-02-01 11:37:23 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-02-01 11:37:23 +0000 |
commit | e4b4cf97715729084740673c44dfabcf8b29fcfe (patch) | |
tree | e25573b2efb13168f16b6c4998479803f9bac97f /tools | |
parent | 02493301a7f7f30a0e18003857cbd2eb302adc95 (diff) |
Fix ident calculation
Diffstat (limited to 'tools')
-rw-r--r-- | tools/l2ping.c | 4 |
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) |