mirror of
https://github.com/danderson/netboot.git
synced 2025-10-16 10:01:20 +02:00
19 lines
306 B
Go
19 lines
306 B
Go
package dhcp6
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
type IdentityAssociation struct {
|
|
IpAddress net.IP
|
|
ClientId []byte
|
|
InterfaceId []byte
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type AddressPool interface {
|
|
ReserveAddress(clientId, interfaceId []byte) *IdentityAssociation
|
|
ReleaseAddress(clientId, interfaceId []byte)
|
|
}
|