12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package data
- import (
- "github.com/insomniacslk/dhcp/dhcpv4"
- "net"
- "net/netip"
- )
- type Packet struct {
-
- Peer net.Addr
-
- Pkt *dhcpv4.DHCPv4
-
- Md *Metadata
- }
- type Metadata struct {
-
- IfName string
-
- IfIndex int
- }
- type DHCP struct {
- MACAddress net.HardwareAddr
- IPAddress netip.Addr
- SubnetMask net.IPMask
- DefaultGateway netip.Addr
- NameServers []net.IP
- DomainName string
- BroadcastAddress netip.Addr
- NTPServers []net.IP
- VLANID string
- LeaseTime uint32
- DomainSearch []string
- ServerIP net.IP
- }
|