Documentation
¶
Index ¶
- func ConvertIPv4InIPv6Network(network, ip string) (*net.IPNet, error)
- func IPNetOr(n1, n2 *net.IPNet) *net.IPNet
- func MaxI(a, b int) int
- func MinI(a, b int) int
- func SliceAnd(s1, s2 []byte) []byte
- func SliceNot(s1 []byte) []byte
- func SliceOr(s1, s2 []byte) []byte
- func SliceSetOne(s1 []byte, b uint) []byte
- func SliceShiftRight(s1 []byte, bits uint) []byte
- func SliceXor(s1, s2 []byte) []byte
- func SplitNetworkInTwo(network *net.IPNet) (*net.IPNet, *net.IPNet)
- func SplitNetworks(network *net.IPNet, newsize uint) ([]*net.IPNet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertIPv4InIPv6Network ¶
ConvertIPv4InIPv6Network convert ipv6 network followed by ipv4
func SliceShiftRight ¶
SliceShiftRight return a slive of bytes shifted by "bits" bits
func SplitNetworkInTwo ¶
SplitNetworkInTwo split a network in two. return two sub network
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.