<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/netstat/route.c, branch release/7.0.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2008-02-24T05:45:17+00:00</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2008-02-24T05:45:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a9c219fa3cec18ef9f30edec6fa106bf0e2d423d'/>
<id>a9c219fa3cec18ef9f30edec6fa106bf0e2d423d</id>
<content type='text'>
'RELENG_7_0_0_RELEASE'.

This commit was manufactured to restore the state of the 7.0-RELEASE image.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
'RELENG_7_0_0_RELEASE'.

This commit was manufactured to restore the state of the 7.0-RELEASE image.
</pre>
</div>
</content>
</entry>
<entry>
<title>Restore netstat -M functionality for most statistics on core dumps.  In</title>
<updated>2007-07-16T17:15:55+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2007-07-16T17:15:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=feda1a4372d5e340da97042375dfb783dea52eda'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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)
</pre>
</div>
</content>
</entry>
<entry>
<title>Retire most of the classful network behaviour of netstat -r output, for IPv4.</title>
<updated>2007-02-14T14:17:01+00:00</updated>
<author>
<name>Bruce M Simpson</name>
<email>bms@FreeBSD.org</email>
</author>
<published>2007-02-14T14:17:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d092c06c3a14818f5a3d64d92e02c97e5cb59953'/>
<id>d092c06c3a14818f5a3d64d92e02c97e5cb59953</id>
<content type='text'>
 Without -n, we now only print a "network name" without the prefix length
 under the following conditions:
  1) the network address and mask matches a classful network prefix;
  2) getnetbyaddr(3) returns a network name for this network address.

 With -n, we unconditionally print the full unabbreviated CIDR network
 prefix in the form "a.b.c.d/p". 0.0.0.0/0 is still printed as "default".

This change is in preparation for changes such as equal-cost multipath, and
to more generally assist operational deployment of FreeBSD as a modern IPv4
router. There are currently no plans to backport this change.

Discussed on:	freebsd-net
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 Without -n, we now only print a "network name" without the prefix length
 under the following conditions:
  1) the network address and mask matches a classful network prefix;
  2) getnetbyaddr(3) returns a network name for this network address.

 With -n, we unconditionally print the full unabbreviated CIDR network
 prefix in the form "a.b.c.d/p". 0.0.0.0/0 is still printed as "default".

This change is in preparation for changes such as equal-cost multipath, and
to more generally assist operational deployment of FreeBSD as a modern IPv4
router. There are currently no plans to backport this change.

Discussed on:	freebsd-net
</pre>
</div>
</content>
</entry>
<entry>
<title>We should return the name in cp, not printf it.</title>
<updated>2006-11-27T19:48:45+00:00</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2006-11-27T19:48:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=da67074ec64c6a99573912b2e4557d85509787c1'/>
<id>da67074ec64c6a99573912b2e4557d85509787c1</id>
<content type='text'>
Found by:	WARNS=6
MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Found by:	WARNS=6
MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>- Achieve WARNS=3 by using sparse initializers or avoiding initializers at all.</title>
<updated>2006-07-28T16:16:40+00:00</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2006-07-28T16:16:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=096146f88b65f745ca84e5537de72e430e8ad330'/>
<id>096146f88b65f745ca84e5537de72e430e8ad330</id>
<content type='text'>
- Fix a nlist initialization: it should be terminated by a NULL entry.
- Constify.
- Catch an unused parameter.

Tested on:	i386 amd64 ia64
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Fix a nlist initialization: it should be terminated by a NULL entry.
- Constify.
- Catch an unused parameter.

Tested on:	i386 amd64 ia64
</pre>
</div>
</content>
</entry>
<entry>
<title>Achieve WARNS=2 by using uintmax_t to pass around 64-bit quantities,</title>
<updated>2006-07-28T16:09:19+00:00</updated>
<author>
<name>Yaroslav Tykhiy</name>
<email>ytykhiy@gmail.com</email>
</author>
<published>2006-07-28T16:09:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7b95a1ebbd9aafe9f196a75d95c7b06eaee999a1'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Since kernel &amp; userland use different timebase and netstat is reading kernel</title>
<updated>2006-07-06T11:59:27+00:00</updated>
<author>
<name>Oleg Bulyzhin</name>
<email>oleg@FreeBSD.org</email>
</author>
<published>2006-07-06T11:59:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7c7f48f12c37442edbcd7fc045c42c40f5fff787'/>
<id>7c7f48f12c37442edbcd7fc045c42c40f5fff787</id>
<content type='text'>
memory directly, we should do timebase conversion for route lifetime.

Approved by:	glebius (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
memory directly, we should do timebase conversion for route lifetime.

Approved by:	glebius (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>NI_WITHSCOPEID cleanup.  Neither RFC 2553 nor RFC 3493 defines</title>
<updated>2005-05-13T16:31:11+00:00</updated>
<author>
<name>Hajimu UMEMOTO</name>
<email>ume@FreeBSD.org</email>
</author>
<published>2005-05-13T16:31:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4f101318489d72d2eeada2463a8fc3d105855628'/>
<id>4f101318489d72d2eeada2463a8fc3d105855628</id>
<content type='text'>
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
</pre>
</div>
</content>
</entry>
<entry>
<title>Print link level address on vlan interfaces using ether_ntoa(), to make</title>
<updated>2004-07-28T18:18:47+00:00</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2004-07-28T18:18:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=77ef8a97cd7b5ca8f33936661d8ad982820ca445'/>
<id>77ef8a97cd7b5ca8f33936661d8ad982820ca445</id>
<content type='text'>
output on bare ethernet and vlan interfaces the same.

PR:		bin/69674
Submitted by:	Pawel Malachowski &lt;pawmal-posting@freebsd.lublin.pl&gt;
Reviewed by:	ru
Approved by:	julian (mentor)
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
output on bare ethernet and vlan interfaces the same.

PR:		bin/69674
Submitted by:	Pawel Malachowski &lt;pawmal-posting@freebsd.lublin.pl&gt;
Reviewed by:	ru
Approved by:	julian (mentor)
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3).</title>
<updated>2004-07-26T20:18:11+00:00</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>2004-07-26T20:18:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6cc6f12231c7267d34a409cfbd960c7f3d69f8eb'/>
<id>6cc6f12231c7267d34a409cfbd960c7f3d69f8eb</id>
<content type='text'>
Use warnx() instead of warn() when error message is not of any interest. Add
prototypes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use warnx() instead of warn() when error message is not of any interest. Add
prototypes.
</pre>
</div>
</content>
</entry>
</feed>
