Skip to content

Commit eb085af

Browse files
committed
tcp: Fix variable typo
1 parent 8f3a058 commit eb085af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/internet/test/tcp-advertised-window-test.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class TcpSocketAdvertisedWindowProxy : public TcpSocketMsgBase
5252
: TcpSocketMsgBase(other)
5353
{
5454
m_segmentSize = other.m_segmentSize;
55-
m_inwalidAwndCb = other.m_inwalidAwndCb;
55+
m_invalidAwndCb = other.m_invalidAwndCb;
5656
}
5757

5858
/**
@@ -78,7 +78,7 @@ class TcpSocketAdvertisedWindowProxy : public TcpSocketMsgBase
7878

7979
private:
8080
uint16_t OldAdvertisedWindowSize(bool scale = true) const;
81-
InvalidAwndCallback m_inwalidAwndCb; //!< Callback
81+
InvalidAwndCallback m_invalidAwndCb; //!< Callback
8282

8383
/**
8484
* @brief Test meta-information: size of the segments that are received.
@@ -93,7 +93,7 @@ void
9393
TcpSocketAdvertisedWindowProxy::SetInvalidAwndCb(InvalidAwndCallback cb)
9494
{
9595
NS_ASSERT(!cb.IsNull());
96-
m_inwalidAwndCb = cb;
96+
m_invalidAwndCb = cb;
9797
}
9898

9999
TypeId
@@ -148,9 +148,9 @@ TcpSocketAdvertisedWindowProxy::AdvertisedWindowSize(bool scale) const
148148

149149
if (static_cast<uint16_t>(newAwndKnownDifference) != oldAwnd)
150150
{
151-
if (!m_inwalidAwndCb.IsNull())
151+
if (!m_invalidAwndCb.IsNull())
152152
{
153-
m_inwalidAwndCb(oldAwnd, newAwnd);
153+
m_invalidAwndCb(oldAwnd, newAwnd);
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)