f-34: route: fix missing route for metadata #34

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-08-24 22:57:03 +02:00
commit a2170fff08
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
5 changed files with 32 additions and 12 deletions

View file

@ -8,9 +8,9 @@ const DefaultConfDir = "/etc/dnsmasq.d"
type Config struct {
Network *net.IPNet
VPCGateway net.IP // next-hop for VPCRoute (option 121)
VPCRoute *net.IPNet // if non-nil, emit dhcp-option=121,VPCRoute,VPCGateway
DefaultGateway net.IP // if non-nil, emit dhcp-option=3,DefaultGateway; if nil, emit a bare dhcp-option=3 to suppress the dnsmasq default
InterfaceIP net.IP // subnet gateway; next-hop for the metadata and VPC routes
VPCRoute *net.IPNet // if non-nil, routed via InterfaceIP in option 121
DefaultGateway net.IP // if non-nil, default route via option 3 and 0.0.0.0/0 in option 121
Name string
ConfDir string
}