aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fortune/tools/Troff.mac
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-11-22 19:11:03 +0000
committerMark Johnston <markj@FreeBSD.org>2023-11-22 20:18:46 +0000
commitc5359e2af5ab582f9a0b862ce90ad3962f9f1d03 (patch)
tree20f883d769739f65762b065e4f8f22caacf091d5 /usr.bin/fortune/tools/Troff.mac
parentbe74aede49fb480792448bf563c5079998de7cbd (diff)
downloadsrc-c5359e2af5ab582f9a0b862ce90ad3962f9f1d03.tar.gz
src-c5359e2af5ab582f9a0b862ce90ad3962f9f1d03.zip
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
Diffstat (limited to 'usr.bin/fortune/tools/Troff.mac')
0 files changed, 0 insertions, 0 deletions