summaryrefslogtreecommitdiff
path: root/libpod/networking_slirp4netns.go
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2021-11-16 18:49:23 +0100
committerPaul Holzinger <pholzing@redhat.com>2021-11-16 19:19:04 +0100
commit97c6403a1bcde8501955fb1798740cf125597881 (patch)
tree2613ff322eb7bc9036f9b2609740af6fa90af4a4 /libpod/networking_slirp4netns.go
parent197ebe8b5e6c10db786ad22692536e395c911b87 (diff)
downloadpodman-97c6403a1bcde8501955fb1798740cf125597881.tar.gz
podman-97c6403a1bcde8501955fb1798740cf125597881.tar.bz2
podman-97c6403a1bcde8501955fb1798740cf125597881.zip
rename libpod nettypes fields
Some field names are confusing. Change them so that they make more sense to the reader. Since these fields are only in the main branch we can safely rename them without worrying about backwards compatibility. Note we have to change the field names in netavark too. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/networking_slirp4netns.go')
-rw-r--r--libpod/networking_slirp4netns.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/networking_slirp4netns.go b/libpod/networking_slirp4netns.go
index 67ea31c1c..cc1b3cfdc 100644
--- a/libpod/networking_slirp4netns.go
+++ b/libpod/networking_slirp4netns.go
@@ -660,12 +660,12 @@ func getRootlessPortChildIP(c *Container, netStatus map[string]types.StatusBlock
var ipv6 net.IP
for _, status := range netStatus {
for _, netInt := range status.Interfaces {
- for _, netAddress := range netInt.Networks {
- ipv4 := netAddress.Subnet.IP.To4()
+ for _, netAddress := range netInt.Subnets {
+ ipv4 := netAddress.IPNet.IP.To4()
if ipv4 != nil {
return ipv4.String()
}
- ipv6 = netAddress.Subnet.IP
+ ipv6 = netAddress.IPNet.IP
}
}
}