aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/ifaceconfig.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-03 00:50:45 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-03 00:50:45 +0200
commit07b63c2c8d60f56addf21af7f1dffe72236f8c60 (patch)
tree720555e69cf2651b9049b397959ce3747850f140 /service/ifaceconfig.go
parentinstaller: add TODO nits (diff)
downloadwireguard-windows-07b63c2c8d60f56addf21af7f1dffe72236f8c60.tar.xz
wireguard-windows-07b63c2c8d60f56addf21af7f1dffe72236f8c60.zip
ifaceconfig: remove unused code
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/ifaceconfig.go')
-rw-r--r--service/ifaceconfig.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/service/ifaceconfig.go b/service/ifaceconfig.go
index adb000ea..d1f8f2d1 100644
--- a/service/ifaceconfig.go
+++ b/service/ifaceconfig.go
@@ -7,7 +7,6 @@ package service
import (
"bytes"
- "encoding/binary"
"errors"
"golang.zx2c4.com/winipcfg"
"golang.zx2c4.com/wireguard/device"
@@ -15,20 +14,8 @@ import (
"golang.zx2c4.com/wireguard/windows/conf"
"net"
"sort"
- "unsafe"
)
-const (
- sockoptIP_UNICAST_IF = 31
- sockoptIPV6_UNICAST_IF = 31
-)
-
-func htonl(val uint32) uint32 {
- bytes := make([]byte, 4)
- binary.BigEndian.PutUint32(bytes, val)
- return *(*uint32)(unsafe.Pointer(&bytes[0]))
-}
-
func bindSocketRoute(family winipcfg.AddressFamily, device *device.Device, ourLuid uint64, lastLuid *uint64) error {
routes, err := winipcfg.GetRoutes(family)
if err != nil {