Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type Parameters struct { IP string // IP address of the network Netmask string // form: 4-byte ('a.b.c.d') CIDR string // form: CIDR Gateway string // first IP address (assumed, not checked !) ClientMin string // second IP address ClientMax string // last IP address before broadcastS Broadcast string // last IP address Interface }
Parameters contains main network parameters.
func FreeSubnet ¶
func FreeSubnet(startSubnet string, step, tries int) (*Parameters, error)
FreeSubnet will try to find free private network beginning with startSubnet, incrementing it in steps up to number of tries.
Click to show internal directories.
Click to hide internal directories.