summaryrefslogtreecommitdiffhomepage
path: root/device.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 18:23:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 18:26:09 +0200
commit2c27ab205c992d3387574aa6d57780744d35d36f (patch)
treee95bb88db16bac5d2050d3db13cd28570f44cd72 /device.go
parent233f079a9479279d2aab68f4accb139ee87ad664 (diff)
Rework index hashtable
Diffstat (limited to 'device.go')
-rw-r--r--device.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/device.go b/device.go
index e127b5b..3db3609 100644
--- a/device.go
+++ b/device.go
@@ -56,8 +56,8 @@ type Device struct {
// unprotected / "self-synchronising resources"
- indices IndexTable
- mac CookieChecker
+ indexTable IndexTable
+ mac CookieChecker
rate struct {
underLoadUntil atomic.Value
@@ -283,7 +283,7 @@ func NewDevice(tun TUNDevice, logger *Logger) *Device {
// initialize noise & crypt-key routine
- device.indices.Init()
+ device.indexTable.Init()
device.routing.table.Reset()
// setup buffer pool