aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@gmail.com>2023-03-14 15:22:33 +0000
committerMark Johnston <markj@FreeBSD.org>2023-03-14 15:58:03 +0000
commit6d33121337af8b8ddfe3c44c8a3dba4db1529787 (patch)
treefaf560ca5ff6405f5f7510857cb04f55257a02b6
parent9185854d19658289d0da93bb3af8e49cba184b7e (diff)
downloadsrc-6d33121337af8b8ddfe3c44c8a3dba4db1529787.tar.gz
src-6d33121337af8b8ddfe3c44c8a3dba4db1529787.zip
-rw-r--r--sbin/ping/ping.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 00026c33a479..6e069adfecfa 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1189,12 +1189,8 @@ pr_pack(char *buf, ssize_t cc, struct sockaddr_in *from, struct timespec *tv)
return;
}
-#ifndef icmp_data
- icmp_data_raw = buf + hlen + offsetof(struct icmp, icmp_ip);
-#else
icmp_data_raw_len = cc - (hlen + offsetof(struct icmp, icmp_data));
icmp_data_raw = buf + hlen + offsetof(struct icmp, icmp_data);
-#endif
/* Now the ICMP part */
cc -= hlen;