mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-21 07:07:50 +00:00
The Docker-compatible network API omitted the IPRange field from the IPAM config even though Libpod stores this data, so tools reading the Docker API could not see the configured IP range. Map Libpod's LeaseRange to Docker-compatible IPAMConfig.IPRange when it aligns with a full CIDR span derived from FirstIPInSubnet/LastIPInSubnet, and add an integration test that creates a network via the compat API with an explicit IPRange and asserts it is returned on inspect. The span is matched with bit arithmetic rather than by trying every prefix length: the network address is start-1, and XORing that with end yields the host mask, which identifies the prefix in a single pass. net/netip carries the address handling throughout - Unmap collapses 4-in-6, Prev gives the network address, and Masked confirms the network is aligned to the prefix. Fixes: #28378 Signed-off-by: aayushbaluni <73417844+aayushbaluni@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| grpcpb | ||
| handlers | ||
| server | ||
| types | ||
| Makefile | ||
| tags.yaml | ||