The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=909e2e1b6c340af2581be30aaa38bc8d97c55532

commit 909e2e1b6c340af2581be30aaa38bc8d97c55532
Author:     Jose Luis Duran <[email protected]>
AuthorDate: 2022-11-01 08:01:36 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2022-11-03 14:39:32 +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
---
 sbin/ping/ping.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index cfef81f76099..4c4326f98f61 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1484,22 +1484,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.

Reply via email to