From bf3d7634cbec8780c71507a36fc5bd2e5c00b8f9 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Thu, 23 May 2024 17:52:52 -0300 Subject: [PATCH] codespell: Fix additional typos found by codespell 2.3.0 --- src/energy/model/generic-battery-model.cc | 2 +- src/internet/helper/internet-stack-helper.h | 2 +- src/internet/model/tcp-bbr.h | 2 +- src/internet/test/tcp-bic-test.cc | 2 +- src/lte/doc/source/lte-design.rst | 2 +- src/lte/helper/no-backhaul-epc-helper.cc | 2 +- src/lte/model/fading-traces/fading_trace_generator.m | 2 +- src/lte/model/fdbet-ff-mac-scheduler.h | 2 +- src/lte/model/fdtbfq-ff-mac-scheduler.h | 2 +- src/lte/model/lte-enb-mac.h | 4 ++-- src/lte/test/lte-test-carrier-aggregation.h | 2 +- src/network/test/lollipop-counter-test.cc | 8 ++++---- src/traffic-control/examples/fqcodel-l4s-example.cc | 2 +- src/wimax/helper/wimax-helper.cc | 4 ++-- src/wimax/helper/wimax-helper.h | 4 ++-- 15 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/energy/model/generic-battery-model.cc b/src/energy/model/generic-battery-model.cc index e9b3893e3..628181ed7 100644 --- a/src/energy/model/generic-battery-model.cc +++ b/src/energy/model/generic-battery-model.cc @@ -87,7 +87,7 @@ GenericBatteryModel::GetTypeId() MakeDoubleAccessor(&GenericBatteryModel::m_internalResistance), MakeDoubleChecker()) .AddAttribute("TypicalDischargeCurrent", - "Typical discharge current used in manufacters datasheets (A)", + "Typical discharge current used in manufacturers datasheets (A)", DoubleValue(2.33), MakeDoubleAccessor(&GenericBatteryModel::m_typicalCurrent), MakeDoubleChecker()) diff --git a/src/internet/helper/internet-stack-helper.h b/src/internet/helper/internet-stack-helper.h index e8cd81659..eef43fe7e 100644 --- a/src/internet/helper/internet-stack-helper.h +++ b/src/internet/helper/internet-stack-helper.h @@ -96,7 +96,7 @@ class InternetStackHelper : public PcapHelperForIpv4, * and global routing by default. The static routing protocol * (ns3::Ipv4StaticRouting) and the global routing protocol are * stored in an ns3::Ipv4ListRouting protocol with priorities 0, and -10 - * by default. If you wish to use different priorites and different + * by default. If you wish to use different priorities and different * routing protocols, you need to use an adhoc ns3::Ipv4RoutingHelper, * such as ns3::OlsrHelper */ diff --git a/src/internet/model/tcp-bbr.h b/src/internet/model/tcp-bbr.h index 0955bd8fd..5c3270ec6 100644 --- a/src/internet/model/tcp-bbr.h +++ b/src/internet/model/tcp-bbr.h @@ -385,7 +385,7 @@ class TcpBbr : public TcpCongestionOps //!< filter window, default 10 secs. Time m_rtPropStamp{ Seconds(0)}; //!< The wall clock time at which the current BBR.RTProp sample was obtained - bool m_isInitialized{false}; //!< Set to true after first time initializtion variables + bool m_isInitialized{false}; //!< Set to true after first time initialization variables Ptr m_uv{nullptr}; //!< Uniform Random Variable uint64_t m_delivered{0}; //!< The total amount of data in bytes delivered so far uint32_t m_appLimited{ diff --git a/src/internet/test/tcp-bic-test.cc b/src/internet/test/tcp-bic-test.cc index 0e1e113cb..15b1f117a 100644 --- a/src/internet/test/tcp-bic-test.cc +++ b/src/internet/test/tcp-bic-test.cc @@ -372,7 +372,7 @@ class TcpBicTestSuite : public TestSuite 9 * 1000, 2, 16, - "Bic increment test: linear incrase but not enough ACKs received"), + "Bic increment test: linear increase but not enough ACKs received"), TestCase::Duration::QUICK); AddTestCase(new TcpBicDecrementTest( diff --git a/src/lte/doc/source/lte-design.rst b/src/lte/doc/source/lte-design.rst index f61022b93..5e96ba4a2 100644 --- a/src/lte/doc/source/lte-design.rst +++ b/src/lte/doc/source/lte-design.rst @@ -288,7 +288,7 @@ The control interfaces that are modeled explicitly are the S1-MME, the S11, and interfaces. The X2 interface is also modeled explicitly and it is described in more detail in section :ref:`sec-x2` -The S1-MME, the S11 and the S5 interfaces are modeled using procotol data units sent +The S1-MME, the S11 and the S5 interfaces are modeled using protocol data units sent over its respective links. These interfaces use the SCTP protocol as transport protocol but currently, the SCTP protocol is not modeled in the ns-3 simulator, so the UDP protocol is used instead of the SCTP protocol. diff --git a/src/lte/helper/no-backhaul-epc-helper.cc b/src/lte/helper/no-backhaul-epc-helper.cc index e66ef52ce..6842b86f8 100644 --- a/src/lte/helper/no-backhaul-epc-helper.cc +++ b/src/lte/helper/no-backhaul-epc-helper.cc @@ -105,7 +105,7 @@ NoBackhaulEpcHelper::NoBackhaulEpcHelper() NetDeviceContainer tunDeviceContainer; tunDeviceContainer.Add(m_tunDevice); // the TUN device is on the same subnet as the UEs, so when a packet - // addressed to an UE arrives at the intenet to the WAN interface of + // addressed to an UE arrives at the internet to the WAN interface of // the PGW it will be forwarded to the TUN device. Ipv4InterfaceContainer tunDeviceIpv4IfContainer = AssignUeIpv4Address(tunDeviceContainer); diff --git a/src/lte/model/fading-traces/fading_trace_generator.m b/src/lte/model/fading-traces/fading_trace_generator.m index 794bc705c..7019ff8c4 100644 --- a/src/lte/model/fading-traces/fading_trace_generator.m +++ b/src/lte/model/fading-traces/fading_trace_generator.m @@ -31,7 +31,7 @@ fd = v_m_s / lambda; % doppler shift % when working with an FFT, the normalized frequency w is % w = 2 * pi * (f/fs) * t % hence the max normalized frequency w=2*pi corresponds to f = fs, -% hence fs is also the max frequecy of our PowerSpectralDensity +% hence fs is also the max frequency of our PowerSpectralDensity fs = 20e6; % sampling period must be determined corresponding to the sampling diff --git a/src/lte/model/fdbet-ff-mac-scheduler.h b/src/lte/model/fdbet-ff-mac-scheduler.h index aa757a313..750e5a932 100644 --- a/src/lte/model/fdbet-ff-mac-scheduler.h +++ b/src/lte/model/fdbet-ff-mac-scheduler.h @@ -192,7 +192,7 @@ class FdBetFfMacScheduler : public FfMacScheduler /** * Sched UL SR info request function - * \param params the Schedul UL SR info request parameters + * \param params the Schedule UL SR info request parameters */ void DoSchedUlSrInfoReq(const FfMacSchedSapProvider::SchedUlSrInfoReqParameters& params); diff --git a/src/lte/model/fdtbfq-ff-mac-scheduler.h b/src/lte/model/fdtbfq-ff-mac-scheduler.h index b956aa7a6..8e564ba35 100644 --- a/src/lte/model/fdtbfq-ff-mac-scheduler.h +++ b/src/lte/model/fdtbfq-ff-mac-scheduler.h @@ -125,7 +125,7 @@ class FdTbfqFfMacScheduler : public FfMacScheduler friend class MemberSchedSapProvider; /** - * Transmisson mode config update function + * Transmission mode config update function * \param rnti the RNTI * \param txMode the transmit mode */ diff --git a/src/lte/model/lte-enb-mac.h b/src/lte/model/lte-enb-mac.h index a607f4744..9945ecca1 100644 --- a/src/lte/model/lte-enb-mac.h +++ b/src/lte/model/lte-enb-mac.h @@ -364,12 +364,12 @@ class LteEnbMac : public Object private: /** - * \brief UL Info List ELements HARQ Feedback function + * \brief UL Info List Elements HARQ Feedback function * \param params UlInfoListElement_s */ void DoUlInfoListElementHarqFeedback(UlInfoListElement_s params); /** - * \brief DL Info List ELements HARQ Feedback function + * \brief DL Info List Elements HARQ Feedback function * \param params DlInfoListElement_s */ void DoDlInfoListElementHarqFeedback(DlInfoListElement_s params); diff --git a/src/lte/test/lte-test-carrier-aggregation.h b/src/lte/test/lte-test-carrier-aggregation.h index 080da0522..06455f926 100644 --- a/src/lte/test/lte-test-carrier-aggregation.h +++ b/src/lte/test/lte-test-carrier-aggregation.h @@ -71,7 +71,7 @@ class CarrierAggregationTestCase : public TestCase */ void DlScheduling(DlSchedulingCallbackInfo dlInfo); /** - * UL Scheduling function that is used in this test as callback function of UL sceduling trace + * UL Scheduling function that is used in this test as callback function of UL scheduling trace * \param frameNo the frame number * \param subframeNo the subframe number * \param rnti the RNTI diff --git a/src/network/test/lollipop-counter-test.cc b/src/network/test/lollipop-counter-test.cc index 9c6257ea6..519e03825 100644 --- a/src/network/test/lollipop-counter-test.cc +++ b/src/network/test/lollipop-counter-test.cc @@ -150,19 +150,19 @@ LollipopCounterTest::DoRun() * * \brief Lollipop Counter TestSuite */ -class LolipopCounterTestSuite : public TestSuite +class LollipopCounterTestSuite : public TestSuite { public: - LolipopCounterTestSuite(); + LollipopCounterTestSuite(); private: }; -LolipopCounterTestSuite::LolipopCounterTestSuite() +LollipopCounterTestSuite::LollipopCounterTestSuite() : TestSuite("lollipop-counter", Type::UNIT) { AddTestCase(new LollipopCounterTest(), TestCase::Duration::QUICK); } -static LolipopCounterTestSuite +static LollipopCounterTestSuite g_lollipopCounterTestSuite; //!< Static variable for test initialization diff --git a/src/traffic-control/examples/fqcodel-l4s-example.cc b/src/traffic-control/examples/fqcodel-l4s-example.cc index 8ba9f3434..06f06e910 100644 --- a/src/traffic-control/examples/fqcodel-l4s-example.cc +++ b/src/traffic-control/examples/fqcodel-l4s-example.cc @@ -681,7 +681,7 @@ main(int argc, char* argv[]) } else { - NS_FATAL_ERROR("Fatal error: scenario unavailble"); + NS_FATAL_ERROR("Fatal error: scenario unavailable"); } std::ofstream pingOfStream; diff --git a/src/wimax/helper/wimax-helper.cc b/src/wimax/helper/wimax-helper.cc index 62deae249..8a7bdfd65 100644 --- a/src/wimax/helper/wimax-helper.cc +++ b/src/wimax/helper/wimax-helper.cc @@ -442,14 +442,14 @@ WimaxHelper::AsciiTxEvent(Ptr stream, ServiceFlow WimaxHelper::CreateServiceFlow(ServiceFlow::Direction direction, - ServiceFlow::SchedulingType schedulinType, + ServiceFlow::SchedulingType schedulingType, IpcsClassifierRecord classifier) { CsParameters csParam(CsParameters::ADD, classifier); ServiceFlow serviceFlow = ServiceFlow(direction); serviceFlow.SetConvergenceSublayerParam(csParam); serviceFlow.SetCsSpecification(ServiceFlow::IPV4); - serviceFlow.SetServiceSchedulingType(schedulinType); + serviceFlow.SetServiceSchedulingType(schedulingType); serviceFlow.SetMaxSustainedTrafficRate(100); serviceFlow.SetMinReservedTrafficRate(1000000); serviceFlow.SetMinTolerableTrafficRate(1000000); diff --git a/src/wimax/helper/wimax-helper.h b/src/wimax/helper/wimax-helper.h index 87ddbfd4b..55c0f1a4b 100644 --- a/src/wimax/helper/wimax-helper.h +++ b/src/wimax/helper/wimax-helper.h @@ -245,13 +245,13 @@ class WimaxHelper : public PcapHelperForDevice, public AsciiTraceHelperForDevice /** * \brief Creates a transport service flow. * \param direction the direction of the service flow: UP or DOWN. - * \param schedulinType The service scheduling type to be used: UGS, RTPS, NRTPS, BE + * \param schedulingType The service scheduling type to be used: UGS, RTPS, NRTPS, BE * \param classifier The classifier to be used for this service flow * \return ServiceFlow * */ ServiceFlow CreateServiceFlow(ServiceFlow::Direction direction, - ServiceFlow::SchedulingType schedulinType, + ServiceFlow::SchedulingType schedulingType, IpcsClassifierRecord classifier); /**