a reply we've received, and print out the source address and sequence number
as that might help the user understand what's going on.
ok florian@ dlg@
-/* $OpenBSD: ping.c,v 1.245 2021/07/12 15:09:19 beck Exp $ */
+/* $OpenBSD: ping.c,v 1.246 2022/02/21 03:50:46 jmatthew Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
if (timingsafe_memcmp(mac, &payload.mac,
sizeof(mac)) != 0) {
- printf("signature mismatch!\n");
+ printf("signature mismatch from %s: "
+ "icmp_seq=%u\n", pr_addr(from, fromlen),
+ ntohs(seq));
+ --nreceived;
return;
}
timinginfo=1;