Skip to content

Commit 4ec02ed

Browse files
committed
network: fixes Ipv4Mask default value (fixing c3256cb)
1 parent 912ff0f commit 4ec02ed

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/network/utils/ipv4-address.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ namespace ns3
2626
NS_LOG_COMPONENT_DEFINE("Ipv4Address");
2727

2828
Ipv4Mask::Ipv4Mask()
29-
: m_mask(0x66666666)
3029
{
3130
NS_LOG_FUNCTION(this);
3231
}

src/network/utils/ipv4-address.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class Ipv4Mask
332332
friend bool operator!=(const Ipv4Mask& a, const Ipv4Mask& b);
333333

334334
private:
335-
uint32_t m_mask{}; //!< IP mask
335+
uint32_t m_mask{0}; //!< IP mask
336336
};
337337

338338
ATTRIBUTE_HELPER_HEADER(Ipv4Address);

0 commit comments

Comments
 (0)