summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-05-16 10:33:47 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-17 10:22:34 +0200
commit7d5f5bcc0dedc8272c8c3cdbc345876f24c4ecfe (patch)
tree5c637f8b929061ca8d1e3dd0cb56402a50c3b3fe
parent3bf41b06ae6ec9a558d3b1f1f315509ccef97010 (diff)
wintun: change acronyms to uppercase
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r--tun/tun_windows.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/tun/tun_windows.go b/tun/tun_windows.go
index 03e04a2..485e24e 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -48,7 +48,7 @@ type NativeTun struct {
wrBuff *exchgBufWrite
events chan TUNEvent
errors chan error
- forcedMtu int
+ forcedMTU int
}
func packetAlign(size uint32) uint32 {
@@ -97,7 +97,7 @@ func CreateTUN(ifname string) (TUNDevice, error) {
wrBuff: &exchgBufWrite{},
events: make(chan TUNEvent, 10),
errors: make(chan error, 1),
- forcedMtu: 1500,
+ forcedMTU: 1500,
}, nil
}
@@ -221,12 +221,12 @@ func (tun *NativeTun) Close() error {
}
func (tun *NativeTun) MTU() (int, error) {
- return tun.forcedMtu, nil
+ return tun.forcedMTU, nil
}
//TODO: This is a temporary hack. We really need to be monitoring the interface in real time and adapting to MTU changes.
-func (tun *NativeTun) ForceMtu(mtu int) {
- tun.forcedMtu = mtu
+func (tun *NativeTun) ForceMTU(mtu int) {
+ tun.forcedMTU = mtu
}
func (tun *NativeTun) Read(buff []byte, offset int) (int, error) {