From nobody Thu Nov 10 17:02:26 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N7SnG3789z4dN12; Thu, 10 Nov 2022 17:02:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N7SnG2h7Sz3hdg; Thu, 10 Nov 2022 17:02:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668099746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2Km41ioDPhOpN9+yT23TQdIBlT4OLmCiTQDlnD4lR2I=; b=n5HibGRehpD45rOeXU3EMd4xZEys4QCcfqJth+42WjKYrp4bbUK34j0UWpS4jw1bqhYgI5 2DEwJfADf0CfhN/tEVqiEVbxhpWkXKhcoGb5uN8H3tWG4XdtpWYSfm/T6ads+re1/yjfeP 4sXoZqt5Z3yzLupCdnpOgyePdSCUKKareQxVM8YLfAoPNUhnZWZZpgf9lNyjb3GbaccdRr sZDEGO5FjO1vkhy7/rVgxe4XqToHUGAYO3RQlGcHMWfYknfZg7JKlDb80ncN1Rrbr7/ZSC 4/7anzB+xWVL75nfUGqIRru4IyWiWzcjClb9n8oZ6cQ2CLzrbQMtni43eQQkOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668099746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2Km41ioDPhOpN9+yT23TQdIBlT4OLmCiTQDlnD4lR2I=; b=IqoHBgZkWccLnd1Z8O4qce75k7ccFJOgQ3ubgrEQ/7pd+HauMxdH1vbskc35aAPPLddm+o NO8dhJ7KeCym+QZlp1s9qKDyZQvl6I4JZIcMeOmOJxMI8vGitw4/kfISGGEW7+Bsbu3QGS JfsmmWUjx1bh/rdWoXMP7fJrEfPNMgWH+2fYx6blCBcMUbneqaKYm5h1rB1NBoePH+algI bzzHBPfZTiaa/nVYWBJJYqwiKP8U7ttxwcsceoSDkT0uYHM6yIV+CR6Iy3aulJQ3fpEnZG HM9TYn6cLxPfh/HII/R8X/SQ+4AQrRV9KkhtWhvjpoPcLj56feAf4ua4jGdvDg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668099746; a=rsa-sha256; cv=none; b=c44wbuwmsq6dCAYP8FNThuOw9dU83tdiqXM9xVs46REeYruS4nUNXVS4M6t0pemTSwM705 wFaUXKMUQs+LOET5LrpbM6O+joAjBEy8ULuZnqqNEOSjM9Hi7MpSAzGnd3NpWiwt8OA93j Sm+c7taxAJhZ/WzutcxVTadJpKR7bhz7wOF6tB0fbgquYErrmE7uStyPljMintHjGcTUW4 hHlyi/G2XRgNkjnoAkqLR7/wFWK1GM85F1fzbzrmdlNboWVZgiUNv3Xzk+ixwTl+mEBBxY CzhZoqxjR9brX1FettGidgIrsJmOTLCrKQOKhMvPnwecpsKVLJAR2OPepF6CbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N7SnG1lcSz189t; Thu, 10 Nov 2022 17:02:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AAH2Qs1016223; Thu, 10 Nov 2022 17:02:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AAH2QbJ016222; Thu, 10 Nov 2022 17:02:26 GMT (envelope-from git) Date: Thu, 10 Nov 2022 17:02:26 GMT Message-Id: <202211101702.2AAH2QbJ016222@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 294cb8bb3acc - stable/13 - ping: Remove a vestigial notdef List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 294cb8bb3acc780ccd91f547b459d4e677894e6f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=294cb8bb3acc780ccd91f547b459d4e677894e6f commit 294cb8bb3acc780ccd91f547b459d4e677894e6f Author: Jose Luis Duran AuthorDate: 2022-11-01 08:01:36 +0000 Commit: Mark Johnston CommitDate: 2022-11-10 17:01:17 +0000 ping: Remove a vestigial notdef It was once a function on 4.3BSD, pr_type() [1], used to convert an ICMP "type" field to a printable string. In 4.4BSD it was superseded by pr_icmph() [2]. NetBSD [3] and OpenBSD [4] have already removed it. [1]: https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD/usr/src/etc/ping.c [2]: https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.4BSD/usr/src/sbin/ping/ping.c [3]: https://github.com/NetBSD/src/commit/203dfd34867991fd002f747d74a96f26ae80d41c [4]: https://github.com/openbsd/src/commit/9bbbbbb75d24e3d166ddd0cb6cb4417b78561309 Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37247 (cherry picked from commit 909e2e1b6c340af2581be30aaa38bc8d97c55532) --- sbin/ping/ping.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index be535f72146a..be1ccfe29d23 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1473,22 +1473,6 @@ finish(void) exit(2); } -#ifdef notdef -static char *ttab[] = { - "Echo Reply", /* ip + seq + udata */ - "Dest Unreachable", /* net, host, proto, port, frag, sr + IP */ - "Source Quench", /* IP */ - "Redirect", /* redirect type, gateway, + IP */ - "Echo", - "Time Exceeded", /* transit, frag reassem + IP */ - "Parameter Problem", /* pointer + IP */ - "Timestamp", /* id + seq + three timestamps */ - "Timestamp Reply", /* " */ - "Info Request", /* id + sq */ - "Info Reply" /* " */ -}; -#endif - /* * pr_icmph -- * Print a descriptive string about an ICMP header.