netboot/dhcp6/address_pool.go

19 lines
341 B
Go

package dhcp6
import (
"net"
"time"
)
type IdentityAssociation struct {
IpAddress net.IP
ClientId []byte
InterfaceId []byte
CreatedAt time.Time
}
type AddressPool interface {
ReserveAddresses(clientId []byte, interfaceIds [][]byte) ([]*IdentityAssociation, error)
ReleaseAddresses(clientId []byte, interfaceIds [][]byte)
}