diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-11-23 11:41:40 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2020-11-23 11:55:29 +0100 |
commit | 70e7acdb23715298624d123f7cc7c9dbcdf0465c (patch) | |
tree | 32138518876bc7afbf0e1d3446fc85b7034878a7 /pkg/bindings | |
parent | 5292d5a7b85f9d2ae0b2a3734f8ae4baeba80f11 (diff) | |
download | podman-70e7acdb23715298624d123f7cc7c9dbcdf0465c.tar.gz podman-70e7acdb23715298624d123f7cc7c9dbcdf0465c.tar.bz2 podman-70e7acdb23715298624d123f7cc7c9dbcdf0465c.zip |
Fix ip-range for classless subnet masks
The `LastIPInSubnet` function worked only for classful subnet
masks (e.g. /8, /16, /24). For non standard subnet masks this
returned the wrong ip address.
This works now for all subnet mask. A unit test is added to
ensure this.
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'pkg/bindings')
0 files changed, 0 insertions, 0 deletions