Home | History | Annotate | Download | only in netstat
History log of /src/usr.bin/netstat/mroute.c
RevisionDateAuthorComments
 1.27  01-Sep-2022  msaitoh KNF. No functional change.
 1.26  06-Oct-2019  mrg sprintf() -> snprintf(), and adjust a buffer size to avoid any
potential for overflow.
 1.25  06-Nov-2014  christos branches: 1.25.8; 1.25.16; 1.25.18;
use the common code from route.c
 1.24  20-Mar-2012  matt branches: 1.24.10;
Use C89 function definitions
 1.23  12-Apr-2009  lukem branches: 1.23.6;
Fix many WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare).
Fix probable bug with numeric printing of anon ports when using sysctl.
 1.22  29-Dec-2008  christos branches: 1.22.2;
fix for 64 bit time_t
 1.21  28-May-2006  elad Make netstat use sysctl when dumping routing tables/stats.
Heavily based on similar code from Claudio Jeker (at OpenBSD).

While here, fix inet/inet6 sysctl stuff commited previously to
actually work, and some other nits to make netstat more sysctl
friendly.

One step closer to losing setgid kmem on this one...
 1.20  04-Aug-2005  rpaulo branches: 1.20.2;
Added #include <kvm.h> since netstat.h, which is included too, needs it.
 1.19  06-Sep-2004  martin Make it compile on ports where u_quad_t is not printf-format-compatible
with unsigned long long.
 1.18  04-Sep-2004  manu IPv4 PIM support, from the submission of Pavlin Radoslavov on tech-net@
 1.17  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.
 1.16  15-Apr-2003  itojun make char array bigger where it seems too small and may overrun.
 1.15  02-Jun-2002  itojun member of mrtstat are u_long, so %lu is more appropriate than %ld.
 1.14  28-May-2001  assar add `-s' that prints port numbers symbolically but addresses numerically
 1.13  12-Jul-1998  mrg - KNF
- use err(3)
- sprintf/strcpy -> snprintf/strncpy
- change route.c:domask() to take a size_t of the buffer passed.
 1.12  19-Oct-1997  lukem fix up .Nm usage, getopt returns -1 not EOF
 1.11  03-Apr-1997  christos - netatalk additions
- printf format fixes
- minor prototype cleanups
 1.10  11-May-1996  mycroft Avoid spewing if there is no MFC.
 1.9  03-Oct-1995  thorpej New-style RCS ids.
 1.8  12-Jun-1995  mycroft Format the statistics output more like the other protocols.
 1.7  12-Jun-1995  mycroft Update to match kernel changes.
 1.6  28-Mar-1995  jtc KERNEL -> _KERNEL
 1.5  09-Jun-1994  brezak Report wrong interface stats
 1.4  13-May-1994  mycroft Clean up import.
 1.3  01-Apr-1994  cgd kill lots of off_t's.
 1.2  28-Mar-1994  cgd clean up, for off_t... ugliest 'cleaning' possible, i think...
 1.1  11-Jan-1994  brezak branches: 1.1.1;
Incorporate changes for IP mcast and IGMP from cmaeda@cs.washington.edu.
 1.1.1.2  02-Jan-1997  mellon imported from 44lite2
 1.1.1.1  06-Oct-1994  mycroft Import original 4.4-Lite version.
 1.20.2.1  19-Jun-2006  chap Sync with head.
 1.22.2.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.23.6.1  17-Apr-2012  yamt sync with head
 1.24.10.1  08-Jan-2015  martin Pull up following revision(s) (requested by prlw1 in ticket #390):
usr.bin/netstat/mroute.c: revision 1.25
usr.bin/netstat/Makefile: revision 1.40
sbin/route/prog_ops.h: revision 1.3
sbin/route/rtutil.c: revision 1.1
sbin/route/rtutil.h: revision 1.1
usr.bin/netstat/mroute6.c: revision 1.15
sbin/route/extern.h: revision 1.15
usr.bin/netstat/show.c: file removal
usr.bin/netstat/main.c: revision 1.93
usr.bin/netstat/route.c: revision 1.83
usr.bin/netstat/netstat.h: revision 1.51
distrib/utils/x_route/Makefile: revision 1.18
sbin/route/show.c: revision 1.46
usr.bin/netstat/if.c: revision 1.80
sbin/route/route.c: revision 1.145
sbin/route/Makefile: revision 1.26
Factor out the netstat route printing code and use it here. There is no
point in having 2 different copies; fixes PR/49371
 1.25.18.1  12-Sep-2022  martin Pull up the following, requested by msaitoh in ticket #1522:

usr.bin/netstat/atalk.c 1.18,1.20-1.21
usr.bin/netstat/bpf.c 1.16 via patch
usr.bin/netstat/fast_ipsec.c 1.24
usr.bin/netstat/if.c 1.97-1.99,1.101-1.104 via patch
usr.bin/netstat/inet.c 1.111,1.115-1.116 via patch
usr.bin/netstat/inet6.c 1.74-1.75,1.80-1.81 via patch
usr.bin/netstat/main.c 1.100-1.103
usr.bin/netstat/mbuf.c 1.35
usr.bin/netstat/mroute.c 1.26-1.27
usr.bin/netstat/mroute6.c 1.16
usr.bin/netstat/netstat.h 1.52-1.53
usr.bin/netstat/pfkey.c 1.4-1.5 via patch
usr.bin/netstat/pfsync.c 1.4-1.5 via patch
usr.bin/netstat/route.c 1.86-1.88
usr.bin/netstat/unix.c 1.36-1.37
usr.bin/netstat/vtw.c 1.11,1.13

- sprintf() -> snprintf(), and adjust a buffer size to avoid any
potential for overflow.
- Fix netstat -rs to print it correctly.
- Add missing {IP,IP6}_STAT_NOIPSEC to netstat.
- Don't show any of the completely and utterly undocumented VTW info
if the feature isn't enabled.
- Print oqdrops correctly.
- Remove Network ATM soft intr queue reporting, we don't have that
in the kernel anymore.
- netstat.1: Add various xrefs present in the body to "See Also".
- KNF. Style fixes.
 1.25.16.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.25.8.1  12-Sep-2022  martin Pull up the following, requested by msaitoh in ticket #1762:

usr.bin/netstat/atalk.c 1.18,1.20-1.21
usr.bin/netstat/bpf.c 1.16 via patch
usr.bin/netstat/fast_ipsec.c 1.24 via patch
usr.bin/netstat/if.c 1.97-1.99,1.101-1.104 via patch
usr.bin/netstat/inet.c 1.111,1.115-1.116 via patch
usr.bin/netstat/inet6.c 1.70,1.74-1.75,1.80-1.81 via patch
usr.bin/netstat/main.c 1.100,1.102-1.103
usr.bin/netstat/mbuf.c 1.34-1.35
usr.bin/netstat/mroute.c 1.26-1.27
usr.bin/netstat/mroute6.c 1.16
usr.bin/netstat/netstat.h 1.52-1.53
usr.bin/netstat/pfkey.c 1.4-1.5 via patch
usr.bin/netstat/pfsync.c 1.4-1.5 via patch
usr.bin/netstat/route.c 1.87-1.88
usr.bin/netstat/unix.c 1.36-1.37
usr.bin/netstat/vtw.c 1.11,1.13

- Add names of a few more ICMPv6 messages.
Also make the array be explicitly 256 entries long.
- sprintf() -> snprintf(), and adjust a buffer size to avoid any
potential for overflow.
- Add missing {IP,IP6}_STAT_NOIPSEC to netstat.
- Don't show any of the completely and utterly undocumented VTW info
if the feature isn't enabled.
- Print oqdrops correctly.
- netstat.1: Add various xrefs present in the body to "See Also".
- Limit maximum owner name to appease gcc.
- KNF. Style fixes.

RSS XML Feed