<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/usr.bin/netstat/mroute6.c, branch release/8.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2008-01-02T23:26:11Z</updated>
<entry>
<title>style(9)</title>
<updated>2008-01-02T23:26:11Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2008-01-02T23:26:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=65475bc8e6c268f6054a4ec9cfdb277c2c58cac3'/>
<id>urn:sha1:65475bc8e6c268f6054a4ec9cfdb277c2c58cac3</id>
<content type='text'>
+ kread is not a boolean, so check it as such
+ fix $FreeBSD$ Ids
+ denote copyrights with /*-
+ misc whitespace changes.
</content>
</entry>
<entry>
<title>Restore netstat -M functionality for most statistics on core dumps.  In</title>
<updated>2007-07-16T17:15:55Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2007-07-16T17:15:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=feda1a4372d5e340da97042375dfb783dea52eda'/>
<id>urn:sha1:feda1a4372d5e340da97042375dfb783dea52eda</id>
<content type='text'>
general, when support was added to netstat for fetching data using sysctl,
no provision was left for fetching equivalent data from a core dump, and
in fact, netstat would _always_ fetch data from the live kernel using
sysctl even when -M was specified resulting in the user believing they
were getting data from coredumps when they actually weren't.  Some specific
changes:
- Add a global 'live' variable that is true if netstat is running against
  the live kernel and false if -M has been specified.
- Stop abusing the sysctl flag in the protocol tables to hold the protocol
  number.  Instead, the protocol is now its own field in the tables, and
  it is passed as a separate parameter to the PCB and stat routines rather
  than overloading the KVM offset parameter.
- Don't run PCB or stats functions who don't have a namelist offset if we
  are being run against a crash dump (!live).
- For the inet and unix PCB routines, we generate the same buffer from KVM
  that the sysctl usually generates complete with the header and trailer.
- Don't run bpf stats for !live (before it would just silently always run
  live).
- kread() no longer trashes memory when opening the buffer if there is an
  error on open and the passed in buffer is smaller than _POSIX2_LINE_MAX.
- The multicast routing code doesn't fallback to kvm on live kernels if
  the sysctl fails.  Keeping this made the code rather hairy, and netstat
  is already tied to the kernel ABI anyway (even when using sysctl's since
  things like xinpcb contain an inpcb) so any kernels this is run against
  that have the multicast routing stuff should have the sysctls.
- Don't try to dig around in the kernel linker in the netgraph PCB routine
  for core dumps.

Other notes:
- sctp's PCB routine only works on live kernels, it looked rather
  complicated to generate all the same stuff via KVM.  Someone can always
  add it later if desired though.
- Fix the ipsec removal bug where N_xxx for IPSEC stats weren't renumbered.
- Use sysctlbyname() everywhere rather than hardcoded mib values.

MFC after:	1 week
Approved by:	re (rwatson)
</content>
</entry>
<entry>
<title>Use sysctl(2), not kvm(3), to read IPv6 multicast information from</title>
<updated>2007-02-24T21:58:30Z</updated>
<author>
<name>Bruce M Simpson</name>
<email>bms@FreeBSD.org</email>
</author>
<published>2007-02-24T21:58:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c15ddad9792c2382857f3db86cb4c8ea47c5129a'/>
<id>urn:sha1:c15ddad9792c2382857f3db86cb4c8ea47c5129a</id>
<content type='text'>
the running system.
Use the name 'IPv6 Forwarding Table', not 'IPv6 Routing Table', to be
consistent with what the code actually does and is.
</content>
</entry>
<entry>
<title>Change wording of warnings when there is no ip_mroute.ko module</title>
<updated>2007-02-21T13:41:51Z</updated>
<author>
<name>Bruce M Simpson</name>
<email>bms@FreeBSD.org</email>
</author>
<published>2007-02-21T13:41:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ab8e5cbf16612c38235d4f32f0d72f5b11041d22'/>
<id>urn:sha1:ab8e5cbf16612c38235d4f32f0d72f5b11041d22</id>
<content type='text'>
loaded into the system.
Change wording of comments to reflect the fact we should unconditionally
use KVM if the -M option is used to specify a core file.
Add comments to document the fact that IPv6 multicast forwarding
information display still relies on KVM for gathering information.
</content>
</entry>
<entry>
<title>Nits.</title>
<updated>2006-09-29T16:16:41Z</updated>
<author>
<name>Bruce M Simpson</name>
<email>bms@FreeBSD.org</email>
</author>
<published>2006-09-29T16:16:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=910e1364b670fb71f8041575002b51a41c1ae2e4'/>
<id>urn:sha1:910e1364b670fb71f8041575002b51a41c1ae2e4</id>
<content type='text'>
Submitted by:	ru
</content>
</entry>
<entry>
<title>Push removal of mrouted down to the rest of the tree.</title>
<updated>2006-09-29T15:45:11Z</updated>
<author>
<name>Bruce M Simpson</name>
<email>bms@FreeBSD.org</email>
</author>
<published>2006-09-29T15:45:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2d20d32344196de0b5a2ed6f911d26ae99232e99'/>
<id>urn:sha1:2d20d32344196de0b5a2ed6f911d26ae99232e99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities,</title>
<updated>2006-07-28T16:09:19Z</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2006-07-28T16:09:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7b95a1ebbd9aafe9f196a75d95c7b06eaee999a1'/>
<id>urn:sha1:7b95a1ebbd9aafe9f196a75d95c7b06eaee999a1</id>
<content type='text'>
including to printf().  Using uintmax_t is also robust to further
extensions in both the C language and the bitwidth of kernel counters.

Tested on:	i386 amd64 ia64
</content>
</entry>
<entry>
<title>Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3).</title>
<updated>2004-07-26T20:18:11Z</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>2004-07-26T20:18:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6cc6f12231c7267d34a409cfbd960c7f3d69f8eb'/>
<id>urn:sha1:6cc6f12231c7267d34a409cfbd960c7f3d69f8eb</id>
<content type='text'>
Use warnx() instead of warn() when error message is not of any interest. Add
prototypes.
</content>
</entry>
<entry>
<title>Warns cleanups for netstat:</title>
<updated>2002-09-05T17:06:51Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2002-09-05T17:06:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a01e3379df7c510218ec793cf6f288ac4aac6487'/>
<id>urn:sha1:a01e3379df7c510218ec793cf6f288ac4aac6487</id>
<content type='text'>
1) Include arpa/inet.h for ntohs.
2) Constness fixes.
3) Fix shadowing except for "sin" which shouldn't be in scope.
4) Remove register keyword.
5) Add missing initialsers to user defined structs.
5) Make prototype of netname6 globally visable.
6) Use right macros for printing syncache stats (even though entrie isn't
   a word).
</content>
</entry>
<entry>
<title>fixed typo.</title>
<updated>2002-07-03T06:48:12Z</updated>
<author>
<name>SUZUKI Shinsuke</name>
<email>suz@FreeBSD.org</email>
</author>
<published>2002-07-03T06:48:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=80317922b5d98a7d9d5f815e44d4c9624ea11fd3'/>
<id>urn:sha1:80317922b5d98a7d9d5f815e44d4c9624ea11fd3</id>
<content type='text'>
obtained from: KAME
MFC after: 3 days
</content>
</entry>
</feed>
