]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
global: fix a few typos courtesy of codespell
authorJonathan Tooker <jonathan.tooker@netprotect.com>
Mon, 21 Oct 2019 20:52:26 +0000 (15:52 -0500)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 22 Oct 2019 09:51:25 +0000 (11:51 +0200)
Signed-off-by: Jonathan Tooker <jonathan.tooker@netprotect.com>
device/conn_linux.go
device/noise-protocol.go
ratelimiter/ratelimiter_test.go
tun/tun_linux.go
tun/wintun/setupapi/types_windows.go

index f74ad51e9e4156cc5277f642063e1d086e0f0fd0..dafaf31759404bfc3fb256bbb04edee3c71a54f6 100644 (file)
@@ -145,7 +145,7 @@ func CreateBind(port uint16, device *Device) (*nativeBind, uint16, error) {
 
        go bind.routineRouteListener(device)
 
-       // attempt ipv6 bind, update port if succesful
+       // attempt ipv6 bind, update port if successful
 
        bind.sock6, newPort, err = create6(port)
        if err != nil {
@@ -157,7 +157,7 @@ func CreateBind(port uint16, device *Device) (*nativeBind, uint16, error) {
                port = newPort
        }
 
-       // attempt ipv4 bind, update port if succesful
+       // attempt ipv4 bind, update port if successful
 
        bind.sock4, newPort, err = create4(port)
        if err != nil {
@@ -541,7 +541,7 @@ func send6(sock int, end *NativeEndpoint, buff []byte) error {
 
 func receive4(sock int, buff []byte, end *NativeEndpoint) (int, error) {
 
-       // contruct message header
+       // construct message header
 
        var cmsg struct {
                cmsghdr unix.Cmsghdr
@@ -573,7 +573,7 @@ func receive4(sock int, buff []byte, end *NativeEndpoint) (int, error) {
 
 func receive6(sock int, buff []byte, end *NativeEndpoint) (int, error) {
 
-       // contruct message header
+       // construct message header
 
        var cmsg struct {
                cmsghdr unix.Cmsghdr
index 88c6aae174f2ff3677c6580930a5f5ba1d7fb734..1c08e0a5f0300271b43ed8e5db22018a8f1fe6a7 100644 (file)
@@ -39,13 +39,13 @@ const (
 )
 
 const (
-       MessageInitiationSize      = 148                                           // size of handshake initation message
+       MessageInitiationSize      = 148                                           // size of handshake initiation message
        MessageResponseSize        = 92                                            // size of response message
        MessageCookieReplySize     = 64                                            // size of cookie reply message
-       MessageTransportHeaderSize = 16                                            // size of data preceeding content in transport message
+       MessageTransportHeaderSize = 16                                            // size of data preceding content in transport message
        MessageTransportSize       = MessageTransportHeaderSize + poly1305.TagSize // size of empty transport
        MessageKeepaliveSize       = MessageTransportSize                          // size of keepalive
-       MessageHandshakeSize       = MessageInitiationSize                         // size of largest handshake releated message
+       MessageHandshakeSize       = MessageInitiationSize                         // size of largest handshake related message
 )
 
 const (
index a18a0976f93dfff4c01dc3a05439b041a8501398..659bdfb6e4d4c986c65f3a13971daff1947585c3 100644 (file)
@@ -36,7 +36,7 @@ func TestRatelimiter(t *testing.T) {
        for i := 0; i < packetsBurstable; i++ {
                Add(RatelimiterResult{
                        allowed: true,
-                       text:    "inital burst",
+                       text:    "initial burst",
                })
        }
 
index 61902e9cee40b8907cf5bdf0b712195d95da35e8..36b43ea4d094bb1ade90c0cc1c127d0df78d5cea 100644 (file)
@@ -35,7 +35,7 @@ type NativeTun struct {
        name                    string     // name of interface
        errors                  chan error // async error handling
        events                  chan Event // device related events
-       nopi                    bool       // the device was pased IFF_NO_PI
+       nopi                    bool       // the device was passed IFF_NO_PI
        netlinkSock             int
        netlinkCancel           *rwcancel.RWCancel
        hackListenerClosed      sync.Mutex
index 136b4be976606e7ff4ce9922f71d9ee78051e507..239d80b93cc381bbe5e437c6918c61e3b1c01d87 100644 (file)
@@ -57,7 +57,7 @@ type DevInfoData struct {
        _         uintptr
 }
 
-// DevInfoListDetailData is a structure for detailed information on a device information set (used for SetupDiGetDeviceInfoListDetail which supercedes the functionality of SetupDiGetDeviceInfoListClass).
+// DevInfoListDetailData is a structure for detailed information on a device information set (used for SetupDiGetDeviceInfoListDetail which supersedes the functionality of SetupDiGetDeviceInfoListClass).
 type DevInfoListDetailData struct {
        size                uint32 // Warning: unsafe.Sizeof(DevInfoListDetailData) > sizeof(SP_DEVINFO_LIST_DETAIL_DATA) when GOARCH == 386 => use sizeofDevInfoListDetailData const.
        ClassGUID           windows.GUID