History log of /src/usr.bin/netstat/atalk.c |
Revision | | Date | Author | Comments |
1.21 |
| 02-Sep-2022 |
msaitoh | KNF. No functional change.
|
1.20 |
| 01-Sep-2022 |
msaitoh | KNF. No functional change.
|
1.19 |
| 28-Aug-2020 |
ozaki-r | netstat: strengthen against kernel changes
netstat uses sysctlbyname to get counter data from the kernel. sysctlbyname fails with ENOMEM if actual counter data in the kernel is larger than a passed buffer. netstat just skips showing counters of a category if sysctlbyname fails, so if we added new counters of the category to the kernel, nestat shows nothing for the category.
Fortunately sysctlbyname fills data as much as possible even if a passed buffer is short. So we can allow netstat to show the filled data anyway if sysctlbyname fails with ENOMEM.
Note that this backcompat mechanism works only if new counters are appended, and doesn't work if new counters are inserted into the middle or counters are moved.
|
1.18 |
| 23-Apr-2020 |
joerg | Avoid global scope for variables only used locally
|
1.17 |
| 18-Aug-2019 |
kamil | netstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlbyname, sysctlgetmibinfo and sysctlnametomib.
|
1.16 |
| 06-Jun-2015 |
joerg | branches: 1.16.8; 1.16.16; 1.16.18; Drop assignment from uninitialized and otherwise unused variable.
|
1.15 |
| 18-Oct-2013 |
christos | branches: 1.15.4; - avoid pointer gymnastics - remove unused variables
|
1.14 |
| 12-Apr-2009 |
lukem | branches: 1.14.6; 1.14.12; Fix many WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare). Fix probable bug with numeric printing of anon ports when using sysctl.
|
1.13 |
| 24-Apr-2008 |
thorpej | branches: 1.13.8; net.atalk, not net.at.
|
1.12 |
| 24-Apr-2008 |
thorpej | Note which things are not available by KVM, and print a nice message stating so if someone specifically asks for it.
|
1.11 |
| 23-Apr-2008 |
thorpej | Make DDP stats per-cpu. While here, bump the counters to 64-bit and make them available by sysctl.
|
1.10 |
| 06-Apr-2006 |
rpaulo | branches: 1.10.20; snprintf returns int, not size_t. CID 691. From bjh21.
|
1.9 |
| 04-Aug-2005 |
rpaulo | Added #include <kvm.h> since netstat.h, which is included too, needs it.
|
1.8 |
| 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.7 |
| 19-Aug-2001 |
itojun | snprintf length audit. from openbsd
|
1.6 |
| 11-Oct-2000 |
is | More format string cleanup by sommerfeld.
|
1.5 |
| 06-Jan-1999 |
abs | branches: 1.5.2; 1.5.10; Apply (slightly modified) patch from 5543 to fix -s behaviour for netatalk.
|
1.4 |
| 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.3 |
| 19-Oct-1997 |
lukem | fix up .Nm usage, getopt returns -1 not EOF
|
1.2 |
| 22-May-1997 |
christos | branches: 1.2.2; PR/3660: Dave Huang: Fix formatting misalignments in appletalk PR/3659: Dave Huang: Fix PCB reporting in appletalk
|
1.1 |
| 03-Apr-1997 |
christos | - netatalk additions - printf format fixes - minor prototype cleanups
|
1.2.2.2 |
| 22-May-1997 |
christos | PR/3660: Dave Huang: Fix formatting misalignments in appletalk PR/3659: Dave Huang: Fix PCB reporting in appletalk
|
1.2.2.1 |
| 22-May-1997 |
christos | file atalk.c was added on branch SYN_cache_branch on 1997-05-22 17:21:27 +0000
|
1.5.10.1 |
| 18-Oct-2000 |
tv | Pullup usr.bin string format fixes [is]. See "cvs log" for explicit revision numbers per file, from sommerfeld.
|
1.5.2.1 |
| 19-Oct-2000 |
he | Pull up revision 1.6 (requested by he): Format string cleanup.
|
1.10.20.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.13.8.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.14.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.14.6.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.15.4.1 |
| 10-Jun-2015 |
snj | Pull up following revision(s) (requested by joerg in ticket #831): gnu/dist/groff/src/utils/hpftodit/hpftodit.cpp: revision 1.6 gnu/dist/texinfo/makeinfo/files.c: revision 1.10 usr.bin/netstat/atalk.c: revision 1.16 Fix operator precedence to allocate enough memory. -- Drop assignment from uninitialized and otherwise unused variable. -- The opposite of new[] is delete[], not delete.
|
1.16.18.2 |
| 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.16.18.1 |
| 19-Aug-2019 |
martin | Pull up following revision(s) (requested by kamil in ticket #94):
usr.bin/netstat/netstat_rumpops.c: revision 1.2 usr.bin/netstat/netstat_hostops.c: revision 1.2 usr.bin/netstat/inet6.c: revision 1.73 usr.bin/netstat/bpf.c: revision 1.14 usr.bin/netstat/Makefile: revision 1.46 usr.bin/netstat/prog_ops.h: revision 1.3 usr.bin/netstat/pfsync.c: revision 1.2 usr.bin/netstat/pfkey.c: revision 1.2 usr.bin/netstat/fast_ipsec.c: revision 1.23 usr.bin/netstat/atalk.c: revision 1.17 usr.bin/netstat/inet.c: revision 1.110
netstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in version of sysctlbyname, sysctlgetmibinfo and sysctlnametomib.
|
1.16.16.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.16.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.
|