From 65a7eccdecaca089a6348a886b4a5d6c1a9861a7 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Sat, 27 Apr 2024 16:19:36 +0100 Subject: [PATCH] dsr, internet, wifi: Fix spelling typos --- src/dsr/model/dsr-maintain-buff.h | 2 +- src/dsr/model/dsr-option-header.h | 12 ++++++------ src/dsr/model/dsr-rcache.cc | 4 ++-- src/dsr/model/dsr-routing.cc | 4 ++-- src/dsr/model/dsr-rreq-table.h | 2 +- src/internet/examples/neighbor-cache-example.cc | 4 ++-- src/internet/model/arp-cache.h | 2 +- src/internet/model/arp-l3-protocol.cc | 2 +- src/internet/model/global-route-manager-impl.cc | 8 ++++---- src/internet/model/icmpv6-l4-protocol.h | 4 ++-- src/internet/model/ipv4-global-routing.h | 2 +- src/internet/model/ipv4-l3-protocol.cc | 2 +- src/internet/model/ipv4-l3-protocol.h | 2 +- src/internet/model/tcp-rate-ops.cc | 2 +- src/internet/model/tcp-recovery-ops.h | 2 +- src/internet/model/tcp-tx-buffer.cc | 4 ++-- src/wifi/examples/wifi-test-interference-helper.cc | 2 +- src/wifi/model/sta-wifi-mac.h | 2 +- 18 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/dsr/model/dsr-maintain-buff.h b/src/dsr/model/dsr-maintain-buff.h index af60b049e..2229c2de1 100644 --- a/src/dsr/model/dsr-maintain-buff.h +++ b/src/dsr/model/dsr-maintain-buff.h @@ -477,7 +477,7 @@ class DsrMaintainBuffer /** * Set maintain buffer timeout - * \param t the maintain buffer timeoout + * \param t the maintain buffer timeout */ void SetMaintainBufferTimeout(Time t) { diff --git a/src/dsr/model/dsr-option-header.h b/src/dsr/model/dsr-option-header.h index 19d8fb474..0e49503d0 100644 --- a/src/dsr/model/dsr-option-header.h +++ b/src/dsr/model/dsr-option-header.h @@ -384,7 +384,7 @@ class DsrOptionRreqHeader : public DsrOptionHeader */ Ipv4Address m_target; /** - * Ipv4 address to write when desearizing the packet + * Ipv4 address to write when deserializing the packet */ Ipv4Address m_address; /** @@ -673,7 +673,7 @@ class DsrOptionSRHeader : public DsrOptionHeader private: /** - * \brief The ip address header deserilize to + * \brief The ip address header deserialize to */ Ipv4Address m_address; /** @@ -681,7 +681,7 @@ class DsrOptionSRHeader : public DsrOptionHeader */ uint8_t m_segmentsLeft; /** - * \brief Number of savlage times for a packet. + * \brief Number of salvage times for a packet. */ uint8_t m_salvage; /** @@ -821,7 +821,7 @@ class DsrOptionRerrHeader : public DsrOptionHeader */ uint8_t m_errorType; /** - * \brief The salavage field + * \brief The salvage field */ uint8_t m_salvage; /** @@ -976,7 +976,7 @@ class DsrOptionRerrUnreachHeader : public DsrOptionRerrHeader */ uint8_t m_errorType; /** - * \brief The salavage field + * \brief The salvage field */ uint8_t m_salvage; /** @@ -1122,7 +1122,7 @@ class DsrOptionRerrUnsupportedHeader : public DsrOptionRerrHeader */ uint8_t m_errorType; /** - * \brief The salavage field + * \brief The salvage field */ uint8_t m_salvage; /** diff --git a/src/dsr/model/dsr-rcache.cc b/src/dsr/model/dsr-rcache.cc index b4971be60..774721aa6 100644 --- a/src/dsr/model/dsr-rcache.cc +++ b/src/dsr/model/dsr-rcache.cc @@ -799,7 +799,7 @@ DsrRouteCache::DeleteAllRoutesIncludeLink(Ipv4Address errorSrc, auto i = m_nodeCache.find(errorSrc); if (i == m_nodeCache.end()) { - NS_LOG_LOGIC("Update the node stability unsuccessfuly"); + NS_LOG_LOGIC("Update the node stability unsuccessfully"); } else { @@ -808,7 +808,7 @@ DsrRouteCache::DeleteAllRoutesIncludeLink(Ipv4Address errorSrc, i = m_nodeCache.find(unreachNode); if (i == m_nodeCache.end()) { - NS_LOG_LOGIC("Update the node stability unsuccessfuly"); + NS_LOG_LOGIC("Update the node stability unsuccessfully"); } else { diff --git a/src/dsr/model/dsr-routing.cc b/src/dsr/model/dsr-routing.cc index 38c0d6d08..a0b230c6f 100644 --- a/src/dsr/model/dsr-routing.cc +++ b/src/dsr/model/dsr-routing.cc @@ -136,7 +136,7 @@ DsrRouting::GetTypeId() .AddAttribute( "PassiveBuffer", "The passive buffer to manage " - "promisucously received passive ack.", + "promiscuously received passive ack.", PointerValue(nullptr), MakePointerAccessor(&DsrRouting::SetPassiveBuffer, &DsrRouting::GetPassiveBuffer), MakePointerChecker()) @@ -1122,7 +1122,7 @@ DsrRouting::PromiscReceive(Ptr device, /* * Message type 2 means the data packet, we will further process the data * packet for delivery notification, safely ignore control packet - * Another check here is our own address, if this is the data destinated for us, + * Another check here is our own address, if this is the data destined for us, * process it further, otherwise, just ignore it */ Ipv4Address ourAddress = m_ipv4->GetAddress(1, 0).GetLocal(); diff --git a/src/dsr/model/dsr-rreq-table.h b/src/dsr/model/dsr-rreq-table.h index 15b702d85..e4fe2ed0a 100644 --- a/src/dsr/model/dsr-rreq-table.h +++ b/src/dsr/model/dsr-rreq-table.h @@ -373,7 +373,7 @@ class DsrRreqTable : public Object Time MaxRequestPeriod; /// The original request period Time RequestPeriod; - /// The non-propagaton request timeout + /// The non-propagation request timeout Time NonpropRequestTimeout; /// The source route entry expire time Time m_rreqEntryExpire; diff --git a/src/internet/examples/neighbor-cache-example.cc b/src/internet/examples/neighbor-cache-example.cc index 6981b58fa..50b332ba2 100644 --- a/src/internet/examples/neighbor-cache-example.cc +++ b/src/internet/examples/neighbor-cache-example.cc @@ -55,7 +55,7 @@ * * Expected Outputs: * IPv4 (default): - * Generate ARP caches for all deveices (default) : + * Generate ARP caches for all devices (default) : * \verbatim ARP Cache of node 0 at time 0 10.1.1.2 dev 0 lladdr 02-06-00:00:00:00:00:02 STATIC_AUTOGENERATED @@ -149,7 +149,7 @@ (size=512) AND (seq=14 time=+1.00001s) \endverbatim * * IPv6 (--useIPv6): - * Generate NDISC caches for all deveices (default) : + * Generate NDISC caches for all devices (default) : * \verbatim NDISC Cache of node 0 at time +0s 2001:1::200:ff:fe00:2 dev 0 lladdr 02-06-00:00:00:00:00:02 STATIC_AUTOGENERATED diff --git a/src/internet/model/arp-cache.h b/src/internet/model/arp-cache.h index b571562f0..5f5eef96e 100644 --- a/src/internet/model/arp-cache.h +++ b/src/internet/model/arp-cache.h @@ -314,7 +314,7 @@ class ArpCache : public Object Address m_macAddress; //!< entry's MAC address Ipv4Address m_ipv4Address; //!< entry's IP address std::list m_pending; //!< list of pending packets for the entry's IP - uint32_t m_retries; //!< rerty counter + uint32_t m_retries; //!< retry counter }; private: diff --git a/src/internet/model/arp-l3-protocol.cc b/src/internet/model/arp-l3-protocol.cc index e9831d25a..790dab17c 100644 --- a/src/internet/model/arp-l3-protocol.cc +++ b/src/internet/model/arp-l3-protocol.cc @@ -261,7 +261,7 @@ ArpL3Protocol::Receive(Ptr device, else { // ignore this reply which might well be an attempt - // at poisening my arp cache. + // at poisoning my arp cache. NS_LOG_LOGIC("node=" << m_node->GetId() << ", got reply from " << arp.GetSourceIpv4Address() << " for non-waiting entry -- drop"); diff --git a/src/internet/model/global-route-manager-impl.cc b/src/internet/model/global-route-manager-impl.cc index a5d3bb00a..aef8da06c 100644 --- a/src/internet/model/global-route-manager-impl.cc +++ b/src/internet/model/global-route-manager-impl.cc @@ -128,7 +128,7 @@ SPFVertex::~SPFVertex() NS_LOG_FUNCTION(this); NS_LOG_LOGIC("Children vertices - " << m_children); - NS_LOG_LOGIC("Parent verteices - " << m_parents); + NS_LOG_LOGIC("Parent vertices - " << m_parents); // find this node from all its parents and remove the entry of this node // from all its parents @@ -284,7 +284,7 @@ SPFVertex::SetRootExitDirection(Ipv4Address nextHop, int32_t id) // always maintain only one root's exit m_ecmpRootExits.clear(); m_ecmpRootExits.emplace_back(nextHop, id); - // update the following in order to be backward compatitable with + // update the following in order to be backward compatible with // GetNextHop and GetOutgoingInterface methods m_nextHop = nextHop; m_rootOif = id; @@ -1023,7 +1023,7 @@ GlobalRouteManagerImpl::SPFNexthopCalculation(SPFVertex* v, // // In the case of point-to-point links, the link data field (m_linkData) of a // Global Router Link Record contains the local IP address. If we look at the - // link record describing the link from the perspecive of (the remote + // link record describing the link from the perspective of (the remote // node from the viewpoint of ) back to the root node, we can discover the // IP address of the router to which is adjacent. This is a distinguished // address -- the next hop address to get from to and all networks @@ -1972,7 +1972,7 @@ GlobalRouteManagerImpl::SPFIntraAddRouter(SPFVertex* v) // // Iterate through the link records on the vertex to which we're going to add // routes. To make sure we're being clear, we're going to add routing table - // entries to the tables on the node corresping to the root of the SPF tree. + // entries to the tables on the node corresponding to the root of the SPF tree. // These entries will have routes to the IP addresses we find from looking at // the local side of the point-to-point links found on the node described by // the vertex . diff --git a/src/internet/model/icmpv6-l4-protocol.h b/src/internet/model/icmpv6-l4-protocol.h index 6522a4c1a..7f9802626 100644 --- a/src/internet/model/icmpv6-l4-protocol.h +++ b/src/internet/model/icmpv6-l4-protocol.h @@ -395,7 +395,7 @@ class Icmpv6L4Protocol : public IpL4Protocol /** * \brief Create a neighbor cache. - * \param device thet NetDevice + * \param device the NetDevice * \param interface the IPv6 interface * \return a smart pointer of NdCache or 0 if problem */ @@ -642,7 +642,7 @@ class Icmpv6L4Protocol : public IpL4Protocol /** * \brief Multicast RS retransmissions counter [\RFC{7559}]. * - * Zero indicate a first transmission, greater than zero means retranmsisisons. + * Zero indicate a first transmission, greater than zero means retransmissions. */ uint32_t m_rsRetransmissionCount{0}; diff --git a/src/internet/model/ipv4-global-routing.h b/src/internet/model/ipv4-global-routing.h index a5233f969..b78a7a5ac 100644 --- a/src/internet/model/ipv4-global-routing.h +++ b/src/internet/model/ipv4-global-routing.h @@ -239,7 +239,7 @@ class Ipv4GlobalRouting : public Ipv4RoutingProtocol /// Set to true if packets are randomly routed among ECMP; set to false for using only one route /// consistently bool m_randomEcmpRouting; - /// Set to true if this interface should respond to interface events by globallly recomputing + /// Set to true if this interface should respond to interface events by globally recomputing /// routes bool m_respondToInterfaceEvents; /// A uniform random number generator for randomly routing packets among ECMP diff --git a/src/internet/model/ipv4-l3-protocol.cc b/src/internet/model/ipv4-l3-protocol.cc index 7b6a2db12..b113dd0d6 100644 --- a/src/internet/model/ipv4-l3-protocol.cc +++ b/src/internet/model/ipv4-l3-protocol.cc @@ -1461,7 +1461,7 @@ Ipv4L3Protocol::DoFragmentation(Ptr packet, // BEWARE: here we do assume that the header options are not present. // a much more complex handling is necessary in case there are options. // If (when) IPv4 option headers will be implemented, the following code shall be changed. - // Of course also the reassemby code shall be changed as well. + // Of course also the reassembly code shall be changed as well. NS_LOG_FUNCTION(this << *packet << outIfaceMtu << &listFragments); diff --git a/src/internet/model/ipv4-l3-protocol.h b/src/internet/model/ipv4-l3-protocol.h index 4c6240317..e8c0c55c7 100644 --- a/src/internet/model/ipv4-l3-protocol.h +++ b/src/internet/model/ipv4-l3-protocol.h @@ -575,7 +575,7 @@ class Ipv4L3Protocol : public Ipv4 /** * \brief Get the complete part of the packet. - * \return the part we have comeplete + * \return the part we have complete */ Ptr GetPartialPacket() const; diff --git a/src/internet/model/tcp-rate-ops.cc b/src/internet/model/tcp-rate-ops.cc index ccfedb8ad..8c9d3be95 100644 --- a/src/internet/model/tcp-rate-ops.cc +++ b/src/internet/model/tcp-rate-ops.cc @@ -106,7 +106,7 @@ TcpRateLinux::GenerateSample(uint32_t delivered, /* Normally we expect m_interval >= minRtt. * Note that rate may still be over-estimated when a spuriously - * retransmistted skb was first (s)acked because "interval_us" + * retransmitted skb was first (s)acked because "interval_us" * is under-estimated (up to an RTT). However continuously * measuring the delivery rate during loss recovery is crucial * for connections suffer heavy or prolonged losses. diff --git a/src/internet/model/tcp-recovery-ops.h b/src/internet/model/tcp-recovery-ops.h index 4e6dddf6d..6c996c24d 100644 --- a/src/internet/model/tcp-recovery-ops.h +++ b/src/internet/model/tcp-recovery-ops.h @@ -95,7 +95,7 @@ class TcpRecoveryOps : public Object * The function is called when the TcpSocketState is changed to CA_RECOVERY. * * \param tcb internal congestion state - * \param dupAckCount duplicate acknowldgement count + * \param dupAckCount duplicate acknowledgement count * \param unAckDataCount total bytes of data unacknowledged * \param deliveredBytes bytes (S)ACKed in the last (S)ACK */ diff --git a/src/internet/model/tcp-tx-buffer.cc b/src/internet/model/tcp-tx-buffer.cc index 7acd8e5e4..0b5627b8c 100644 --- a/src/internet/model/tcp-tx-buffer.cc +++ b/src/internet/model/tcp-tx-buffer.cc @@ -866,8 +866,8 @@ TcpTxBuffer::Update(const TcpOptionSack::SackList& list, const Callbackm_sacked == false); NS_ASSERT_MSG(m_sentSize >= m_sackedOut + m_lostOut, *this); - // NS_ASSERT (list.size () == 0 || modified); // Assert for duplicated SACK or - // impossiblity to map the option into the sent blocks + // Assert for duplicated SACK or impossibility to map the option into the sent blocks + // NS_ASSERT (list.size () == 0 || modified); ConsistencyCheck(); return bytesSacked; } diff --git a/src/wifi/examples/wifi-test-interference-helper.cc b/src/wifi/examples/wifi-test-interference-helper.cc index 930f1e78b..c1f37e466 100644 --- a/src/wifi/examples/wifi-test-interference-helper.cc +++ b/src/wifi/examples/wifi-test-interference-helper.cc @@ -44,7 +44,7 @@ // Note that the program checks the consistency between the selected standard // the selected preamble type. // -// The output of the program displays InterfenceHelper and SpectrumWifiPhy trace +// The output of the program displays InterferenceHelper and SpectrumWifiPhy trace // logs associated to the chosen scenario. // diff --git a/src/wifi/model/sta-wifi-mac.h b/src/wifi/model/sta-wifi-mac.h index 61206783c..92a97a3d4 100644 --- a/src/wifi/model/sta-wifi-mac.h +++ b/src/wifi/model/sta-wifi-mac.h @@ -110,7 +110,7 @@ enum WifiPowerManagementMode : uint8_t │ │ ┌─────────────────────────────────────┐ │ │ │ │ │ │ │ │ │ ┌─────────────▼─▼──┐ ┌──────────────┐ ┌───┴──▼────┴───────────────────┐ - └──► Unassociated ├───────► Scanning ├───────► Wait AssociationiResponse │ + └──► Unassociated ├───────► Scanning ├───────► Wait Association Response │ └──────────────────┘ └──────┬──▲────┘ └───────────────┬──▲────────────┘ │ │ │ │ │ │ │ │