<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/netstat/mroute.c, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:26Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-23T17:43:26Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3d497e17ebd33fe0f58d773e35ab994d750258d6'/>
<id>urn:sha1:3d497e17ebd33fe0f58d773e35ab994d750258d6</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in main:
(cherry picked from commit 1d386b48a555)
</content>
</entry>
<entry>
<title>Fix netstat -gs with ip_mroute module and/or vnet</title>
<updated>2019-11-12T01:03:08Z</updated>
<author>
<name>Mike Karels</name>
<email>karels@FreeBSD.org</email>
</author>
<published>2019-11-12T01:03:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7483fbadf476cb602762a7cccbdb49e098155929'/>
<id>urn:sha1:7483fbadf476cb602762a7cccbdb49e098155929</id>
<content type='text'>
The code for "netstat -gs -f inet" failed if the kernel namelist did not
include the _mrtstat symbol. However, that symbol is not in a standard
kernel even with the ip_mroute module loaded, where the functionality is
available. It is also not in a kernel with MROUTING but also VIMAGE, as
there can be multiple sets of stats. However, when running the command
on a live system, the symbol is not used; a sysctl is used. Go ahead
and try the sysctl in any case, and complain that IPv4 MROUTING is not
present only if the sysctl fails with ENOENT. Also fail if _mrtstat is
not defined when running on a core file; netstat doesn't know about vnets,
so can only work if MROUTING was included, and VIMAGE was not.

Reviewed by:	bz
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D22311
</content>
</entry>
<entry>
<title>spdx: initial adoption of licensing ID tags.</title>
<updated>2017-11-18T14:26:50Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-18T14:26:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=df57947f083046d50552e99b91074927d2458708'/>
<id>urn:sha1:df57947f083046d50552e99b91074927d2458708</id>
<content type='text'>
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.

Initially, only tag files that use BSD 4-Clause "Original" license.

RelNotes:	yes
Differential Revision:	https://reviews.freebsd.org/D13133
</content>
</entry>
<entry>
<title>Use strlcpy and snprintf in netstat(1).</title>
<updated>2017-01-05T09:23:54Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2017-01-05T09:23:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f193c8ce0d53b73100a64a21c6e0fea4746ad0c9'/>
<id>urn:sha1:f193c8ce0d53b73100a64a21c6e0fea4746ad0c9</id>
<content type='text'>
Expand inet6name() line buffer to NI_MAXHOST and use strlcpy/snprintf
in various places.

Reported by:	Anton Yuzhaninov &lt;citrin citrin ru&gt;
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D8916
</content>
</entry>
<entry>
<title>Use a common subroutine to fetch and zero protocol stats instead of</title>
<updated>2015-09-11T04:37:01Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2015-09-11T04:37:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9eddb899d909fd8e9392e9de6b152b0999f57153'/>
<id>urn:sha1:9eddb899d909fd8e9392e9de6b152b0999f57153</id>
<content type='text'>
duplicating roughly similar code for each protocol.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Simplify kvm symbol resolution and error handling.  The symbol table</title>
<updated>2015-09-02T18:51:36Z</updated>
<author>
<name>Hiroki Sato</name>
<email>hrs@FreeBSD.org</email>
</author>
<published>2015-09-02T18:51:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=81dacd8beb51dfec0fbd5703d616efa542465d84'/>
<id>urn:sha1:81dacd8beb51dfec0fbd5703d616efa542465d84</id>
<content type='text'>
nl_symbols will eventually be organized into several modules depending
on MK_* variables.
</content>
</entry>
<entry>
<title>- Add -W flag support for network column in intpr() (-i flag) and</title>
<updated>2015-09-01T08:42:04Z</updated>
<author>
<name>Hiroki Sato</name>
<email>hrs@FreeBSD.org</email>
</author>
<published>2015-09-01T08:42:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=10d5269ff900c124da8257725dc4e57dd55b1931'/>
<id>urn:sha1:10d5269ff900c124da8257725dc4e57dd55b1931</id>
<content type='text'>
  routepr() (-r flag).  It is too narrow to show an IPv6 prefix
  in most cases.

- Accept "local" as a synonym of "unix" in protocol family name.

- Show a prefix length in CIDR notation when name resolution failed in
  netname().

- Make routename() and netname() AF-independent and remove
  unnecessary typecasting from struct sockaddr.

- Use getnameinfo(3) to format L2 addr in intpr().

- Fix a bug which showed "Address" when -A flag is specfied in pr_rthdr().

- Replace cryptic GETSA() macro with SA_SIZE().

- Fix declarations shadowing local variables with the same names.

- Add more static, remove unused header files and variables.

MFC after:	1 week
</content>
</entry>
<entry>
<title>Convert netstat to use libxo.</title>
<updated>2015-02-21T23:47:20Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2015-02-21T23:47:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ade9ccfe211ac8b27c58a4dc11a6cd1d33767ce0'/>
<id>urn:sha1:ade9ccfe211ac8b27c58a4dc11a6cd1d33767ce0</id>
<content type='text'>
Obtained from:  Phil Shafer &lt;phil@juniper.net&gt;
Ported to -current by: alfred@ (mostly), Kim Shrier
Formatting: marcel@
Sponsored by:   Juniper Networks, Inc.
</content>
</entry>
<entry>
<title>Fix "netstat -gW" behavior broken in r259638.</title>
<updated>2014-04-29T16:51:28Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2014-04-29T16:51:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=68bbdd0e710e0295d358e77fcf106d9344285cf2'/>
<id>urn:sha1:68bbdd0e710e0295d358e77fcf106d9344285cf2</id>
<content type='text'>
netstat has two options for printing multicast tables:
sysctl (the default one for live systems) and kvm-based one (for cores).
It looks like kvm-based one hasn't been working since it's been introduced
in r190012 due to absence of mfctablesize kernel symbol.
Check for all ipv4-multicast symbols being correctly resolved was introduced
in r259638 regardless of 'live' value leading to "No IPv4 MROUTING" error
message.

Reported by:	Olivier Cochard-Labbé
MFC after:	1 week
</content>
</entry>
<entry>
<title>Use more fine-grained kvm(3) symbol lookup: routing code retrieves only</title>
<updated>2013-12-20T00:17:26Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2013-12-20T00:17:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fc47e028bb31ecd84ced50a31b6f0981bfd7c45d'/>
<id>urn:sha1:fc47e028bb31ecd84ced50a31b6f0981bfd7c45d</id>
<content type='text'>
necessary symbols needed per subsystem. Main kvm(3) init is now delayed
as much as possbile. This finally fixes performance issues reported in
kern/167204.
Some non-working code (ng_socket.ko symbol addresses calculation) removed.
Some global variables eliminated.

PR:		kern/167204
MFC after:	4 weeks
</content>
</entry>
</feed>
