]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Fix typos in comments and docstrings across codebase 563/head
authorbluPhy <ale@bluphy.com>
Sat, 24 Jan 2026 05:10:35 +0000 (00:10 -0500)
committerbluPhy <ale@bluphy.com>
Sat, 24 Jan 2026 05:10:35 +0000 (00:10 -0500)
Corrected several spelling errors such as 'unparseable' to 'unparsable', 'paramters' to 'parameters', 'virutal' to 'virtual', 'withing' to 'within', and 'non-existant' to 'non-existent' in both source and test files to improve code clarity and documentation accuracy.

packet/cmdparse.c
packet/command.c
packet/construct_unix.c
test/linux/netem.py
test/mtrpacket.py
test/probe.py

index 85757b622b98f82a5541d1309545df8f8051d756..d7ecd9dab92b2350d4078537d24f034f459e1fb3 100644 (file)
@@ -64,7 +64,7 @@ int tokenize_command(
 /*
     Parse a command string (or command reply string) into a command_t
     structure for later semantic interpretation.  Returns EINVAL if the
-    command string is unparseable or zero for success.
+    command string is unparsable or zero for success.
 
     command_string will be modified in-place with NUL characters terminating
     tokens, and the command_t will use pointers to the contents of
index a7088410fd8f9d44436808ee0ce93376887bcb02..663b34764bffc7915874a780a9c79fcf72f451aa 100644 (file)
@@ -156,7 +156,7 @@ void check_support_command(
 }
 
 /*
-    If a named send_probe argument is recognized, fill in the probe paramters
+    If a named send_probe argument is recognized, fill in the probe parameters
     structure with the argument value.
 */
 static
index 51894a1ffb3a0fe7d63bddc7c26c8951cc0a3a6a..67019d3dbd673be95a852aab13489130786fbbf2 100644 (file)
@@ -470,7 +470,7 @@ int set_stream_socket_options(
 
 
 /*
-    Open a TCP or SCTP socket, respecting the probe paramters as much as
+    Open a TCP or SCTP socket, respecting the probe parameters as much as
     we can, and use it as an outgoing probe.
 */
 static
index fb744680bf92c124fe9b726a4c559d14cd41dcc3..9a8d37166eff944bf4b3231e2fbfcd20014270a2 100644 (file)
@@ -6,7 +6,7 @@ Description
 This small, self-contained Python library serves as a high-level API for the
 creation and management of virtual network topologies in a Linux environment.
 By leveraging Linux's networking capabilities, it allows for the dynamic
-establishment of virutal network environments, links, and complex route and rule
+establishment of virtual network environments, links, and complex route and rule
 configurations. It only relies on iproute2, libc, and Python 3.10. The core
 architecture revolves around the `Network` base class, from which custom network
 topologies can be designed. A typical use-case involves inheriting from this base
@@ -697,4 +697,3 @@ def _supported() -> Tuple[bool, Optional[str]]:
         return False, 'The ip utility must be installed (iproute2)'
 
     return True, None
-
index 68ecc2036968d230522b2de75d925781109fe941..f572e1002cf02cc8687d5254220573ae97350d80 100644 (file)
@@ -275,7 +275,7 @@ class MtrPacketTest(unittest.TestCase):
         '''Read the next reply from mtr-packet.
 
         Attempt to read the next command reply from mtr-packet.  If no reply
-        is available withing the timeout time, raise ReadReplyTimeout
+        is available within the timeout time, raise ReadReplyTimeout
         instead.'''
 
         start_time = time.time()
index 30acd453e58fad9b76528163b81ab0c9a7b0f067..3647ab1ad4fe1067b7b9718718531af3e5bb0e04 100755 (executable)
@@ -133,7 +133,7 @@ class TestProbeICMPv4(mtrpacket.MtrPacketTest):
         self.assertIn('round-trip-time', reply.argument)
 
     def test_timeout(self):
-        'Test timeouts when sending to a non-existant address'
+        'Test timeouts when sending to a non-existent address'
 
         #
         #  Probe a non-existent address, and expect no reply