summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/client.go
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2018-08-14 15:22:10 +0100
committerGitHub <noreply@github.com>2018-08-14 15:22:10 +0100
commite14f9e09d34be98fddb8686af726d7e6692f2e3b (patch)
treebd3e20017a224d5def24db70388b1befa62d3bd3 /dhcpv6/client.go
parent35ed68606514ab77a523f72b103474e36361bcf7 (diff)
parent1c12a97ec2674a36612ddb4a4a627d407ee38b46 (diff)
Move DHCPv6 async to separate package (#127)
Diffstat (limited to 'dhcpv6/client.go')
-rw-r--r--dhcpv6/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/client.go b/dhcpv6/client.go
index 3492a47..3ed7861 100644
--- a/dhcpv6/client.go
+++ b/dhcpv6/client.go
@@ -11,7 +11,7 @@ const (
DefaultWriteTimeout = 3 * time.Second // time to wait for write calls
DefaultReadTimeout = 3 * time.Second // time to wait for read calls
DefaultInterfaceUpTimeout = 3 * time.Second // time to wait before a network interface goes up
- maxUDPReceivedPacketSize = 8192 // arbitrary size. Theoretically could be up to 65kb
+ MaxUDPReceivedPacketSize = 8192 // arbitrary size. Theoretically could be up to 65kb
)
// Broadcast destination IP addresses as defined by RFC 3315
@@ -148,7 +148,7 @@ func (c *Client) sendReceive(ifname string, packet DHCPv6, expectedType MessageT
isMessage = true
}
for {
- buf := make([]byte, maxUDPReceivedPacketSize)
+ buf := make([]byte, MaxUDPReceivedPacketSize)
n, _, _, _, err := conn.ReadMsgUDP(buf, oobdata)
if err != nil {
return nil, err