Commit a359ea6
fix: handle nat66 prefix and unsupported opts in --vmnet-disable-dhcp
Follow-up to Copilot review on the macOS 26 --vmnet-disable-dhcp path:
- Apply --vmnet-nat66-prefix via vmnet_network_configuration_set_ipv6_prefix
(parsed with inet_pton, /64), mirroring the legacy vmnet_nat66_prefix_key.
- Warn that --vmnet-interface-id, --vmnet-network-identifier and
--vmnet-dhcp-end are ignored on this path: the macOS 26 vmnet network
configuration API has no setter for the network identifier,
vmnet_interface_start_with_network assigns its own interface id (verified
empirically on macOS 26.4), and no DHCP server is started.
- Validate --vmnet-gateway / --vmnet-mask separately and print the offending
value instead of relying on errno (inet_aton does not set errno on failure).
- Tighten the disable-dhcp test assertion and PID handling.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: fpolica91 <fabriciopolicarpo0@gmail.com>1 parent 5887eb9 commit a359ea6
4 files changed
Lines changed: 19 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
| |||
271 | 275 | | |
272 | 276 | | |
273 | 277 | | |
274 | | - | |
275 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
276 | 284 | | |
277 | 285 | | |
278 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
0 commit comments