Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Packet ¶
Packet is a representation of a DHCP packet
func (*Packet) DNS ¶
DNS returns the name server entries in the dhcp packet
func (*Packet) Gateway ¶
Gateway return the GIP field in the packet (server assigned gateway)
func (*Packet) LeaseTime ¶
LeaseTime returns the lease time (in seconds) in the packet
func (*Packet) ServerIP ¶
ServerIP returns the DHCP server's IP address
func (*Packet) SubnetMask ¶
SubnetMask returns the subnet mask option in the packet
Source Files
¶
- packet.go
Click to show internal directories.
Click to hide internal directories.