Esempio n. 1
0
func intRangeLine(network *ipaddr.Prefix, orig []string) []string {
	startInt := new(big.Int)

	startInt.SetBytes(canonicalizeIP(network.IP))

	endInt := new(big.Int)
	endInt.SetBytes(canonicalizeIP(network.Last()))

	return append(
		[]string{startInt.String(), endInt.String()},
		orig...,
	)
}
Esempio n. 2
0
func rangeLine(network *ipaddr.Prefix, orig []string) []string {
	return append(
		[]string{network.IP.String(), network.Last().String()},
		orig...,
	)
}