mirror of
https://github.com/danderson/netboot.git
synced 2025-08-09 08:07:11 +02:00
21 lines
509 B
Go
21 lines
509 B
Go
package dhcp6
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
)
|
|
|
|
// IdentityAssociation associates an ip address with a network interface of a client
|
|
type IdentityAssociation struct {
|
|
IPAddress net.IP
|
|
ClientID []byte
|
|
InterfaceID []byte
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
// AddressPool keeps track of assigned and available ip address in an address pool
|
|
type AddressPool interface {
|
|
ReserveAddresses(clientID []byte, interfaceIds [][]byte) ([]*IdentityAssociation, error)
|
|
ReleaseAddresses(clientID []byte, interfaceIds [][]byte)
|
|
}
|