summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/async
diff options
context:
space:
mode:
authorChristopher Koch <c@chrisko.ch>2019-01-20 04:23:39 +0000
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-26 23:34:26 +0000
commitc09728dd0f8ccf56e74efe7df7328191a347e821 (patch)
tree0342d2dc8ee89a82ddcf86007806bd558a90acbd /dhcpv6/async
parent5604533269d24e72911e36f94d335337849decae (diff)
dhcpv6: introduce TransactionID type
Diffstat (limited to 'dhcpv6/async')
-rw-r--r--dhcpv6/async/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv6/async/client.go b/dhcpv6/async/client.go
index c574208..7a8b9ec 100644
--- a/dhcpv6/async/client.go
+++ b/dhcpv6/async/client.go
@@ -25,7 +25,7 @@ type Client struct {
receiveQueue chan dhcpv6.DHCPv6
sendQueue chan dhcpv6.DHCPv6
packetsLock sync.Mutex
- packets map[uint32]*promise.Promise
+ packets map[dhcpv6.TransactionID]*promise.Promise
errors chan error
}
@@ -69,7 +69,7 @@ func (c *Client) Open(bufferSize int) error {
c.stopping = new(sync.WaitGroup)
c.sendQueue = make(chan dhcpv6.DHCPv6, bufferSize)
c.receiveQueue = make(chan dhcpv6.DHCPv6, bufferSize)
- c.packets = make(map[uint32]*promise.Promise)
+ c.packets = make(map[dhcpv6.TransactionID]*promise.Promise)
c.packetsLock = sync.Mutex{}
c.errors = make(chan error)