mirror of
https://github.com/danderson/netboot.git
synced 2025-10-16 10:01:20 +02:00
19 lines
341 B
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)
|
|
}
|