metal-stack / go-ipam

golang library for ip address management
MIT License
111 stars 39 forks source link

Support classless prefixes #23

Open majst01 opened 4 years ago

majst01 commented 4 years ago

For prefixes which are not for machines, but only for prefix ranges available for other purposes, wasting the network and the broadcast address is bad.

Add a flag for prefix acquire to skip this reservation

majst01 commented 4 years ago

Should remove this assumption that broadcast and network IP are blocked. Instead this should be delegated to the caller and provide cidr.IsBroadCast() and cidr.IsNetwork() to let the caller decide whether to use these ip´s or not.