You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// An IPNet represents an IP network.typeIPNetstruct {
IPIP// network numberMaskIPMask// network mask
}
Note that there is no place to specify an actual IP address in there, only subnet and mask.
If the SDK user uses the convenient net.ParseCIDR() function, the resulting net.IPNet struct can be passed as-is to the firecracker config, but there is NO IP address that can be assigned to the VM's interface. This leads to the situation where the subnet ID (the network number) is assigned to the interface, which is very very wrong.
I believe a different type should be used for this setting.
The text was updated successfully, but these errors were encountered:
Currently,
NetworkInterface.StaticConfiguration.IPConfiguration.IPAddr
is of typenet.IPNet
which, according to thenet
library, representsNote that there is no place to specify an actual IP address in there, only subnet and mask.
If the SDK user uses the convenient
net.ParseCIDR()
function, the resultingnet.IPNet
struct can be passed as-is to the firecracker config, but there is NO IP address that can be assigned to the VM's interface. This leads to the situation where the subnet ID (the network number) is assigned to the interface, which is very very wrong.I believe a different type should be used for this setting.
The text was updated successfully, but these errors were encountered: