FreeBSD src
Go to file
Mike Karels 7483fbadf4 Fix netstat -gs with ip_mroute module and/or vnet
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
2019-11-12 01:03:08 +00:00
bin Vendor import of NetBSD's external/bsd/blacklist @ 20191106 2019-11-06 14:09:52 +00:00
cddl fix zpool list property names 2019-11-07 11:50:53 +00:00
contrib Merge commit 371ea70bb from llvm git (by Louis Dionne): 2019-11-11 17:41:56 +00:00
crypto Merge OpenSSL 1.1.1d. 2019-09-10 21:08:17 +00:00
etc libexecinfo: Integrate NetBSD test into FreeBSD 2019-10-27 05:32:08 +00:00
gnu Get the readline header from the installed header instead of the from the source 2019-09-12 15:50:14 +00:00
include Import OpenSSL 1.1.1d. 2019-09-10 17:40:53 +00:00
kerberos5 Fix generation of krb5-config with LC_CTYPE=*.UTF-8 2019-07-01 11:47:45 +00:00
lib Revert r354605: Update jemalloc to version 5.2.1. 2019-11-11 05:06:49 +00:00
libexec libcompat: build 32-bit rtld and ldd as part of "everything" 2019-11-07 22:58:10 +00:00
release Remove picobsd build scripts and the remaining tinyware 2019-11-05 02:30:41 +00:00
rescue Remove unused defines since r147075 2019-07-12 04:44:50 +00:00
sbin makefs: avoid warning when creating FAT filesystem on existing file 2019-11-08 14:11:25 +00:00
secure caroot: commit initial bundle 2019-10-04 02:34:20 +00:00
share Consolidate powerpcspe CFLAGS 2019-11-10 22:08:07 +00:00
stand loader: use struct initializer in vdev_probe(). 2019-11-10 15:07:36 +00:00
sys In ufs_dir_dd_ino(), always initialize *dd_vp since the caller expects it. 2019-11-12 00:32:33 +00:00
targets - Retire pc-sysinstall(8) 2019-09-03 19:42:04 +00:00
tests Vendor import of file 5.37 2019-11-10 03:44:32 +00:00
tools If /usr/obj is a symlink, cpio(1) needs persuation to DTRT. 2019-11-02 10:15:34 +00:00
usr.bin Fix netstat -gs with ip_mroute module and/or vnet 2019-11-12 01:03:08 +00:00
usr.sbin Add GEOM attribute to report physical device name, and report it 2019-11-09 17:30:19 +00:00
.arcconfig callsign isn't required anymore 2016-09-29 06:19:45 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml cirrus.yml: stop fetching OVMF.fd now that we're using the pkg 2019-07-30 16:40:33 +00:00
.clang-format Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore .gitignore: Add LINT kernel configurations generated into SRCDIR 2019-08-10 18:22:22 +00:00
COPYRIGHT Happy New Year 2019! 2019-01-01 00:25:25 +00:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS [skip ci] Add me to MAINTAINERS for fusefs 2019-07-28 15:20:47 +00:00
Makefile Take arm.arm (armv5) out of universe 2019-11-03 19:36:34 +00:00
Makefile.inc1 suggest xtoolchain package if binutils and GCC bootstraps are both broken 2019-11-08 14:06:48 +00:00
Makefile.libcompat libcompat: build 32-bit rtld and ldd as part of "everything" 2019-11-07 22:58:10 +00:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc Remove picobsd(8) via make delete-old 2019-11-05 17:33:27 +00:00
README Vendor import of file 5.37 2019-11-10 03:44:32 +00:00
README.md Import libxo 1.3.0 2019-11-07 03:46:17 +00:00
RELNOTES Document iwm(4) support for 9000-series devices. 2019-11-08 00:01:37 +00:00
UPDATING add a note about nctgpio and wbwd move to superio 2019-11-07 07:21:23 +00:00

FreeBSD Source:

This is the top level of the FreeBSD source directory. This file was last revised on: FreeBSD

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html, and https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information, including setting make(1) variables.

Source Roadmap:

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

stand		Boot loader sources.

sys		Kernel sources.

sys/<arch>/conf Kernel configuration files. GENERIC is the configuration
		used in release builds. NOTES contains documentation of
		all possible entries.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see:

https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html