Up to [local] / src / usr.sbin / vmd
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 16 16:55:02 2021 UTC (2 years, 11 months ago) by dv
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
HEAD
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored)
cleanup vmd(8) includes and header files Lots of organic growth other the years lead to unnecessary includes (proc.h everywhere) and odd dependencies between header files. This cleans things up a bit to help with upcoming cleanup around dhcp code. No functional change. "go for it" mlarkin@
Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 15 10:38:53 2021 UTC (2 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.2: +19 -11 lines
Diff to previous 1.2 (colored)
Filter out packets that are not IPv4. This code came from dhcp programs where this filtering was done in bpf but here vmd needs to make sure to not look at non IPv4 packets. OK florian@ and dv@
Revision 1.2 / (download) - annotate - [select for diffs], Sun May 23 22:43:36 2021 UTC (3 years ago) by dv
Branch: MAIN
Changes since 1.1: +3 -36 lines
Diff to previous 1.1 (colored)
vmd(8): skip inspecting non-udp packets on local interfaces reyk@ imported packet.c from (I think) dhclient(8). In dhclient, the packets are already filtered down to just udp. This change has vmd skip a non-udp ip packet sooner when it's trying to determine if it is a dhcp/bootp packet that needs processing. The counters (seen, bad checksums, etc) for ip and udp packets are also removed as they aren't used by vmd. This only affects "local" network interfaces for vmd. OK mlarkin@
Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 19 15:38:32 2017 UTC (7 years, 1 month ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Add support for dynamic "NAT" interfaces (-L/local interface). When a local interface is configured, vmd configures a /31 address on the tap(4) interface of the host and provides another IP in the same subnet via DHCP (BOOTP) to the VM. vmd runs an internal BOOTP server that replies with IP, gateway, and DNS addresses to the VM. The built-in server only ever responds to the VM on the inside and cannot leak its DHCP responses to the outside. Thanks to Uwe Werler, Josh Grosse, and some others for testing! OK deraadt@