summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-09-02 09:43:30 -0700
committergVisor bot <gvisor-bot@google.com>2021-09-02 09:43:30 -0700
commitbd75e52ad87d6a2fa70d7e0e0871376e59677690 (patch)
tree34d04024b1ce698053b06d4b9410a1b41cf71701 /test/packetimpact
parentdfb3273f887a80c25a6d133fd5a082153ba58570 (diff)
parent3bf5ff8941722bfcebf10f1e6f9b0cdd0fe1da72 (diff)
Merge pull request #6516 from slowy07:minor-changes
PiperOrigin-RevId: 394481127
Diffstat (limited to 'test/packetimpact')
-rw-r--r--test/packetimpact/README.md8
-rw-r--r--test/packetimpact/tests/udp_icmp_error_propagation_test.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/packetimpact/README.md b/test/packetimpact/README.md
index fe0976ba5..3f0f9d155 100644
--- a/test/packetimpact/README.md
+++ b/test/packetimpact/README.md
@@ -16,7 +16,7 @@ Packetimpact aims to provide:
* A **multi-platform** solution that can test both Linux and gVisor.
* **Conciseness** on par with packetdrill scripts.
* **Control-flow** like for loops, conditionals, and variables.
-* **Flexibilty** to specify every byte in a packet or use multiple sockets.
+* **Flexibility** to specify every byte in a packet or use multiple sockets.
## How to run packetimpact tests?
@@ -177,7 +177,7 @@ message SocketResponse {
The test bench does most of the work in a test. It is a Go program that compiles
on the host and is copied by the script into test bench's container. It is a
regular [go unit test](https://golang.org/pkg/testing/) that imports the test
-bench framework. The test bench framwork is based on three basic utilities:
+bench framework. The test bench framework is based on three basic utilities:
* Commanding the DUT to run POSIX commands and return responses.
* Sending raw packets to the DUT on the test network.
@@ -475,9 +475,9 @@ type layerState interface {
// as it was sent is available.
sent(sent Layer) error
- // received updates the layerState based on a Layer that is receieved. The
+ // received updates the layerState based on a Layer that is received. The
// input is a Layer with all prev and next pointers populated so that the
- // entire frame as it was receieved is available.
+ // entire frame as it was received is available.
received(received Layer) error
// close frees associated resources held by the LayerState.
diff --git a/test/packetimpact/tests/udp_icmp_error_propagation_test.go b/test/packetimpact/tests/udp_icmp_error_propagation_test.go
index bb33ca4b3..556cee1d9 100644
--- a/test/packetimpact/tests/udp_icmp_error_propagation_test.go
+++ b/test/packetimpact/tests/udp_icmp_error_propagation_test.go
@@ -155,7 +155,7 @@ func testRecv(ctx context.Context, t *testing.T, d testData) {
// testSendTo tests observing the ICMP error through the send syscall. If
// wantErrno is non-zero, the first send should fail and a subsequent send
-// should suceed; while if wantErrno is zero then the first send should just
+// should succeed; while if wantErrno is zero then the first send should just
// succeed.
func testSendTo(ctx context.Context, t *testing.T, d testData) {
// Check that sending on the clean socket works.