summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip
diff options
context:
space:
mode:
authorCyrille Hemidy <cyrille.hemidy@gmail.com>2018-05-03 14:05:25 -0700
committerShentubot <shentubot@google.com>2018-05-03 14:06:13 -0700
commit04b79137babed361fb227e3ad579adb2df4bb188 (patch)
tree883f16f8e572d6e160bbb3faab1c0f5d2d4858e1 /pkg/tcpip
parent5c8db0a81882f009935cc6dd45cec47d5c38b267 (diff)
Fix misspellings.
PiperOrigin-RevId: 195307689 Change-Id: I499f19af49875a43214797d63376f20ae788d2f4
Diffstat (limited to 'pkg/tcpip')
-rw-r--r--pkg/tcpip/header/ipv6.go2
-rw-r--r--pkg/tcpip/stack/stack.go2
-rw-r--r--pkg/tcpip/transport/tcp/snd.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/pkg/tcpip/header/ipv6.go b/pkg/tcpip/header/ipv6.go
index d8dc138b3..da0210539 100644
--- a/pkg/tcpip/header/ipv6.go
+++ b/pkg/tcpip/header/ipv6.go
@@ -60,7 +60,7 @@ const (
// IPv6ProtocolNumber is IPv6's network protocol number.
IPv6ProtocolNumber tcpip.NetworkProtocolNumber = 0x86dd
- // IPv6Version is the version of the ipv6 procotol.
+ // IPv6Version is the version of the ipv6 protocol.
IPv6Version = 6
// IPv6MinimumMTU is the minimum MTU required by IPv6, per RFC 2460,
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go
index b480bf812..f0fbd8aad 100644
--- a/pkg/tcpip/stack/stack.go
+++ b/pkg/tcpip/stack/stack.go
@@ -165,7 +165,7 @@ type TCPSenderState struct {
// window size from a segment.
SndWndScale uint8
- // MaxSentAck is the highest acknowledgemnt number sent till now.
+ // MaxSentAck is the highest acknowledgement number sent till now.
MaxSentAck seqnum.Value
// FastRecovery holds the fast recovery state for the endpoint.
diff --git a/pkg/tcpip/transport/tcp/snd.go b/pkg/tcpip/transport/tcp/snd.go
index ad94aecd8..6c363a929 100644
--- a/pkg/tcpip/transport/tcp/snd.go
+++ b/pkg/tcpip/transport/tcp/snd.go
@@ -152,7 +152,7 @@ func newSender(ep *endpoint, iss, irs seqnum.Value, sndWnd seqnum.Size, mss uint
// updateMaxPayloadSize updates the maximum payload size based on the given
// MTU. If this is in response to "packet too big" control packets (indicated
-// by the count argument), it also reduces the number of oustanding packets and
+// by the count argument), it also reduces the number of outstanding packets and
// attempts to retransmit the first packet above the MTU size.
func (s *sender) updateMaxPayloadSize(mtu, count int) {
m := mtu - header.TCPMinimumSize