summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/async/client.go
diff options
context:
space:
mode:
authorChristopher Koch <chrisko@google.com>2019-01-09 13:19:46 -0800
committerinsomniac <insomniacslk@users.noreply.github.com>2019-01-09 23:54:01 +0000
commitdf450f2899aa103d7c754ff17df05afe74a9f462 (patch)
tree63026988bdf7efad97d9f1897110bfae9b23aa3c /dhcpv4/async/client.go
parent2439a850c766acf2d21501bf075b4dbeb6d7d295 (diff)
dhcpv4: introduce TransactionID type.
Diffstat (limited to 'dhcpv4/async/client.go')
-rw-r--r--dhcpv4/async/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/async/client.go b/dhcpv4/async/client.go
index e6c7302..c37d249 100644
--- a/dhcpv4/async/client.go
+++ b/dhcpv4/async/client.go
@@ -34,7 +34,7 @@ type Client struct {
receiveQueue chan *dhcpv4.DHCPv4
sendQueue chan *dhcpv4.DHCPv4
packetsLock sync.Mutex
- packets map[uint32]*promise.Promise
+ packets map[dhcpv4.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 *dhcpv4.DHCPv4, bufferSize)
c.receiveQueue = make(chan *dhcpv4.DHCPv4, bufferSize)
- c.packets = make(map[uint32]*promise.Promise)
+ c.packets = make(map[dhcpv4.TransactionID]*promise.Promise)
c.packetsLock = sync.Mutex{}
c.errors = make(chan error)