From 8293a6c1cc71ff884e6fb58936226f3c0bd21488 Mon Sep 17 00:00:00 2001 From: glebius Date: Sat, 15 Mar 2014 06:49:32 +0000 Subject: Garbage collect long time obsoleted (or never used) stuff from routing API. --- usr.bin/netstat/netstat.1 | 11 ----------- usr.bin/netstat/route.c | 7 ------- 2 files changed, 18 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1 index 6f8a03d..67095d6 100644 --- a/usr.bin/netstat/netstat.1 +++ b/usr.bin/netstat/netstat.1 @@ -244,14 +244,6 @@ If is also present, show the contents of the internal Patricia tree structures; used for debugging. -If -.Fl a -is also present, -show protocol-cloned routes -(routes generated by an -.Dv RTF_PRCLONING -parent route); -normally these routes are not shown. When .Fl W is also present, @@ -431,8 +423,6 @@ The mapping between letters and flags is: .It Li 3 Ta Dv RTF_PROTO3 Ta "Protocol specific routing flag #3" .It Li B Ta Dv RTF_BLACKHOLE Ta "Just discard pkts (during updates)" .It Li b Ta Dv RTF_BROADCAST Ta "The route represents a broadcast address" -.It Li C Ta Dv RTF_CLONING Ta "Generate new routes on use" -.It Li c Ta Dv RTF_PRCLONING Ta "Protocol-specified generate new routes on use" .It Li D Ta Dv RTF_DYNAMIC Ta "Created dynamically (by redirect)" .It Li G Ta Dv RTF_GATEWAY Ta "Destination requires forwarding by intermediary" .It Li H Ta Dv RTF_HOST Ta "Host entry (net otherwise)" @@ -441,7 +431,6 @@ The mapping between letters and flags is: .It Li R Ta Dv RTF_REJECT Ta "Host or net unreachable" .It Li S Ta Dv RTF_STATIC Ta "Manually added" .It Li U Ta Dv RTF_UP Ta "Route usable" -.It Li W Ta Dv RTF_WASCLONED Ta "Route was generated as a result of cloning" .It Li X Ta Dv RTF_XRESOLVE Ta "External daemon translates proto to link address" .El .Pp diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 78ffdcd..3f09459 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -90,19 +90,12 @@ struct bits { { RTF_STATIC, 'S' }, { RTF_PROTO1, '1' }, { RTF_PROTO2, '2' }, - { RTF_PRCLONING,'c' }, { RTF_PROTO3, '3' }, { RTF_BLACKHOLE,'B' }, { RTF_BROADCAST,'b' }, #ifdef RTF_LLINFO { RTF_LLINFO, 'L' }, #endif -#ifdef RTF_WASCLONED - { RTF_WASCLONED,'W' }, -#endif -#ifdef RTF_CLONING - { RTF_CLONING, 'C' }, -#endif { 0 , 0 } }; -- cgit v1.1