src/core/thread/network_data_tlvs.hpp
bool IsValid(void) const
    {
        return ((GetLength() >= sizeof(*this) - sizeof(NetworkDataTlv)) &&
                (GetLength() >= Ip6::Prefix::SizeForLength(mPrefixLength) + sizeof(*this) - sizeof(NetworkDataTlv)) &&
                (Ip6::Prefix::SizeForLength(mPrefixLength) <= sizeof(Ip6::Address)));
    }
/**
     * This method indicates whether or not the TLV appears to be well-formed.
     *
     * @retval TRUE   If the TLV appears to be well-formed.
     * @retval FALSE  If the TLV does not appear to be well-formed.
     *
     */
This method indicates whether or not the TLV appears to be well-formed.
@retval TRUE   If the TLV appears to be well-formed.
@retval FALSE  If the TLV does not appear to be well-formed.
This method indicates whether or not the TLV appears to be well - formed . @retval TRUE If the TLV appears to be well - formed . @retval FALSE If the TLV does not appear to be well - formed .
bool IsValid(void) const
    {
        return ((GetLength() >= sizeof(*this) - sizeof(NetworkDataTlv)) &&
                (GetLength() >= Ip6::Prefix::SizeForLength(mPrefixLength) + sizeof(*this) - sizeof(NetworkDataTlv)) &&
                (Ip6::Prefix::SizeForLength(mPrefixLength) <= sizeof(Ip6::Address)));
    }
bool IsValid ( void ) const { return ( ( GetLength ( ) >= sizeof ( * this ) - sizeof ( NetworkDataTlv ) ) && ( GetLength ( ) >= Ip6 :: Prefix :: SizeForLength ( mPrefixLength ) + sizeof ( * this ) - sizeof ( NetworkDataTlv ) ) && ( Ip6 :: Prefix :: SizeForLength ( mPrefixLength ) <= sizeof ( Ip6 :: Address ) ) ) ; }
This method indicates whether or not the TLV appears to be well-formed.
This method indicates whether or not the TLV appears to be well - formed .