|
123 |
{ |
123 |
{ |
124 |
NS_LOG_FUNCTION (this << static_cast<uint32_t> (type) << static_cast<uint32_t> (len)); |
124 |
NS_LOG_FUNCTION (this << static_cast<uint32_t> (type) << static_cast<uint32_t> (len)); |
125 |
NS_ASSERT (len <= MAX_SIZE); |
125 |
NS_ASSERT (len <= MAX_SIZE); |
126 |
return m_len == len && (m_type == type || m_type == 0); |
126 |
return m_len >= len && (m_type == type || m_type == 0); |
127 |
} |
127 |
} |
128 |
bool |
128 |
bool |
129 |
Address::IsMatchingType (uint8_t type) const |
129 |
Address::IsMatchingType (uint8_t type) const |