]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
global: fixup TODO comment spacing
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 6 Jun 2019 21:00:15 +0000 (23:00 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 6 Jun 2019 21:00:15 +0000 (23:00 +0200)
ipc/uapi_windows.go
tun/tun_darwin.go
tun/tun_freebsd.go
tun/tun_linux.go
tun/tun_openbsd.go
tun/tun_windows.go
tun/wintun/wintun_windows.go

index 981c7b9ce6eb4cc627ea521790ef4d779afba0b2..32d55241ed3dbed9a1db8e3b140c9e30936f2c4d 100644 (file)
@@ -11,7 +11,7 @@ import (
        "golang.zx2c4.com/wireguard/ipc/winpipe"
 )
 
-//TODO: replace these with actual standard windows error numbers from the win package
+// TODO: replace these with actual standard windows error numbers from the win package
 const (
        IpcErrorIO        = -int64(5)
        IpcErrorProtocol  = -int64(71)
index f7cf8e8abd35d0497ca27c4e37c4b5cc2d3b859c..8cd22a88be47e01dfb73d943f82cc7994645124d 100644 (file)
@@ -286,7 +286,7 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
 }
 
 func (tun *NativeTun) Flush() error {
-       //TODO: can flushing be implemented by buffering and using sendmmsg?
+       // TODO: can flushing be implemented by buffering and using sendmmsg?
        return nil
 }
 
index b7c82cf0b3f82582f0a9949105fbc0864b33db43..df43ab7fc6f8f18119b4b556c2003ea7a1e180df 100644 (file)
@@ -26,7 +26,7 @@ const (
        _TUNSIFPID  = 0x2000745f
 )
 
-//TODO: move into x/sys/unix
+// TODO: move into x/sys/unix
 const (
        SIOCGIFINFO_IN6        = 0xc048696c
        SIOCSIFINFO_IN6        = 0xc048696d
@@ -467,7 +467,7 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
 }
 
 func (tun *NativeTun) Flush() error {
-       //TODO: can flushing be implemented by buffering and using sendmmsg?
+       // TODO: can flushing be implemented by buffering and using sendmmsg?
        return nil
 }
 
index f5f7ec776f1d1ac96d310c9a5b44ddf975848150..2168f5bd223f400ee24e3aa663c005721f3b5749 100644 (file)
@@ -320,7 +320,7 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
 }
 
 func (tun *NativeTun) Flush() error {
-       //TODO: can flushing be implemented by buffering and using sendmmsg?
+       // TODO: can flushing be implemented by buffering and using sendmmsg?
        return nil
 }
 
index a3db83b794d618c56324218824ec4897983ec0ff..b0f5ca4363e5c1ad7eba3651099c00dfac007dc5 100644 (file)
@@ -239,7 +239,7 @@ func (tun *NativeTun) Write(buff []byte, offset int) (int, error) {
 }
 
 func (tun *NativeTun) Flush() error {
-       //TODO: can flushing be implemented by buffering and using sendmmsg?
+       // TODO: can flushing be implemented by buffering and using sendmmsg?
        return nil
 }
 
index 7051d61951859b6aa020539a9d6bd7d9c08d8501..0b41be9db85ff46b6ee6509cadc9819fe5f2dbed 100644 (file)
@@ -218,7 +218,7 @@ func (tun *NativeTun) MTU() (int, error) {
        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.
+// 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
 }
index ac811afd0e71c97dd6af99a03fb3f37c1aad9f5b..ec7f8eaaa23f88184d27b225f0b3ac7333d39a40 100644 (file)
@@ -122,7 +122,7 @@ func GetInterface(ifname string, hwndParent uintptr) (*Wintun, error) {
                        continue
                }
 
-               //TODO: is there a better way than comparing ifnames?
+               // TODO: is there a better way than comparing ifnames?
                // Get interface name.
                ifname2, err := wintun.InterfaceName()
                if err != nil {
@@ -225,7 +225,7 @@ func CreateInterface(description string, hwndParent uintptr) (*Wintun, bool, err
 
        // Search for the driver.
        const driverType = setupapi.SPDIT_COMPATDRIVER
-       err = devInfoList.BuildDriverInfoList(deviceData, driverType) //TODO: This takes ~510ms
+       err = devInfoList.BuildDriverInfoList(deviceData, driverType) // TODO: This takes ~510ms
        if err != nil {
                return nil, false, fmt.Errorf("SetupDiBuildDriverInfoList failed: %v", err)
        }
@@ -233,7 +233,7 @@ func CreateInterface(description string, hwndParent uintptr) (*Wintun, bool, err
 
        driverDate := windows.Filetime{}
        driverVersion := uint64(0)
-       for index := 0; ; index++ { //TODO: This loop takes ~600ms
+       for index := 0; ; index++ { // TODO: This loop takes ~600ms
                // Get a driver from the list.
                driverData, err := devInfoList.EnumDriverInfo(deviceData, driverType, index)
                if err != nil {
@@ -572,7 +572,7 @@ func (wintun *Wintun) deviceData(hwndParent uintptr) (setupapi.DevInfo, *setupap
                }
 
                // Get interface ID.
-               //TODO: Store some ID in the Wintun object such that this call isn't required.
+               // TODO: Store some ID in the Wintun object such that this call isn't required.
                wintun2, err := makeWintun(devInfoList, deviceData)
                if err != nil {
                        continue