summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-07-01 13:37:54 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-01 15:23:44 +0200
commitb844f1b3cc2c37ca76427572d8fc8d7977c0274d (patch)
tree99b5416622e5deb9394dcfaef03f76fb36ad9245
parentdd8817f50e5657259b7ed3e1af3f8c370525cf2f (diff)
tun: windows: packetNum is unused
-rw-r--r--tun/tun_windows.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index 1de74e6..543482e 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -35,7 +35,6 @@ type exchgBufRead struct {
type exchgBufWrite struct {
data [packetExchangeSize]byte
offset uint32
- packetNum uint32
}
type NativeTun struct {
@@ -314,7 +313,6 @@ func (tun *NativeTun) Flush() error {
return nil
}
defer func() {
- tun.wrBuff.packetNum = 0
tun.wrBuff.offset = 0
}()
retries := maybeRetry(1000)
@@ -375,7 +373,6 @@ func (tun *NativeTun) putTunPacket(buff []byte) error {
packet = packet[packetExchangeAlignment : packetExchangeAlignment+size]
copy(packet, buff)
- tun.wrBuff.packetNum++
tun.wrBuff.offset += pSize
return nil