Go to file
Mark Johnston c5359e2af5 bhyve: Add a slirp network backend
This enables a subset of the functionality provided by QEMU's user
networking implementation.  In particular, it uses net/libslirp, the
same library as QEMU.

libslirp is permissively licensed but has some dependencies which make
it impractical to bring into the base system (glib in particular).  I
thus opted to make bhyve dlopen the libslirp.so, which can be installed
via pkg.  The library header is imported into bhyve.

The slirp backend takes a "hostfwd" which is identical to QEMU's
hostfwd.  When configured, bhyve opens a host socket and listens for
connections, which get forwarded to the guest.  For instance,
"hostfwd=tcp::1234-:22" allows one to ssh into the guest by ssh'ing to
port 1234 on the host, e.g., via 127.0.0.1.  I didn't try to hook up
guestfwd support since I don't personally have a use-case for it yet,
and I think it won't interact nicely with the capsicum sandbox.

Reviewed by:	jhb
Tested by:	rew
MFC after:	1 month
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D42510
2023-11-22 15:18:46 -05:00
.cirrus-ci
.github
bin ps: s/kern.max_pid/kern.pid_max/ in a comment 2023-11-21 22:46:01 +00:00
cddl Fix typo in previous d282baddb0, breaking DTrace. 2023-11-17 12:42:33 -05:00
contrib compiler-rt: avoid segfaults when re-exec'ing with ASLR 2023-11-22 19:23:06 +01:00
crypto OpenSSL: update to 3.0.12 2023-10-24 14:55:56 -04:00
etc Add tests for gunion(8) 2023-11-16 16:15:33 +08:00
gnu
include lib/libc/rpc: switch the per-fd structs in clnt_{dg,vc}.c to RB Trees 2023-11-15 16:12:50 -07:00
kerberos5
lib libc: remove some obsolete VCS data 2023-11-21 22:46:43 +00:00
libexec ldconfig: filter out non-existing directories from default path 2023-11-20 13:26:00 +02:00
release releng-gce: Add missing _ 2023-10-19 15:46:59 -07:00
rescue zfs: merge openzfs/zfs@804414aad 2023-08-26 23:51:42 +02:00
sbin Ensure I/O buffers in libufs(3) are 128-byte aligned. 2023-11-17 14:11:24 -08:00
secure Track upstream project rename in contrib/blocklistd 2023-11-03 16:53:04 -04:00
share Fix share/zoneinfo for DIRDEPS_BUILD 2023-11-20 12:52:43 -08:00
stand loader.efi.8: Fix a typo 2023-11-22 13:25:34 +01:00
sys CAM: Remove return value from xpt_path_sbuf() 2023-11-22 15:10:57 -05:00
targets loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
tests ZTS: Fix 'could not unmount datasets' on Alma 9 (#15542) 2023-11-20 16:07:32 -08:00
tools OptionalObsoleteFiles.inc: document block order 2023-11-14 16:50:52 +00:00
usr.bin Add myself (akiyano) to calendar.freebsd 2023-11-20 20:50:52 +00:00
usr.sbin bhyve: Add a slirp network backend 2023-11-22 15:18:46 -05:00
.arcconfig
.arclint
.cirrus.yml Cirrus CI: Trigger on pull requests or downstream repos 2023-10-09 15:13:21 -04:00
.clang-format
.git-blame-ignore-revs git-blame-ignore-revs: OptionalObsoleteFiles.inc sorting commits 2023-11-15 17:47:02 +00:00
.gitattributes Revert "awk: Merge upstream 2nd Edition Awk Book" 2023-11-15 15:28:05 -07:00
.gitignore
.mailmap Fix Sumit's email address 2023-10-19 15:49:05 -06:00
CONTRIBUTING.md CONTRIBUTING.md: add author identity info 2023-09-20 19:28:28 -04:00
COPYRIGHT
LOCKS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
MAINTAINERS Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
Makefile Makefile: Support universe-toolchain on non-FreeBSD 2023-08-23 18:00:16 +01:00
Makefile.inc1 Makefile.inc1: Remove beri straggler 2023-11-20 20:30:02 -07:00
Makefile.libcompat build{libcompat}: Pass UNIVERSE_TOOLCHAIN_PATH to the _lc_build-tools submake 2023-08-21 21:00:45 -07:00
Makefile.sys.inc
ObsoleteFiles.inc ping6(8): Add ping6(8) as MLINK to ping(8) 2023-11-08 05:17:37 +08:00
README.md
RELNOTES RELNOTES: mention bb830e346b 2023-11-06 17:36:39 +02:00
UPDATING stand: bandaide for acpi 2023-11-20 20:30:16 -07:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

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), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
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 Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB 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 (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
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 FreeBSD Handbook.