Skip to content

remote dhcp: Autodetects without -A

The -A option is not valid in dhcp mode, see:

https://git.glasklar.is/system-transparency/core/stprov/-/blob/v0.3.0/subcmd/remote/remote.go?ref_type=tags#L117-126

But if no interface name (-I) or mac address (-m) is provided, autodetect is attempted by selecting the first interface that's in state IFF_UP and IFF_RUNNING, see:

https://git.glasklar.is/system-transparency/core/stprov/-/blob/v0.3.0/subcmd/remote/dhcp/dhcp.go?ref_type=tags#L24-29

I think the right thing to do is: add the -A option for dhcp, only autodetect if it is provided.

(What I'd like to avoid is: being "helpful" in dhcp but not in static.)