MS_WARN_TAG(dtls,"fingerprint in the remote certificate (%s) does not match the announced one (%s)",hex_fingerprint,this->remoteFingerprint.value.c_str());
MS_WARN_TAG(dtls,
"fingerprint in the remote certificate (%s) does not match the announced one (%s)",
// Packet size must be >= header size + CSRC list + header extension size.
// Packet size must be >= header size + CSRC list + header extension size.
if(len<(ptr-data)+4+extension_value_size)
if(len<(ptr-data)+4+extensionValueSize)
{
{
MS_WARN_TAG(rtp,"not enough space for the announced header extension value, packet discarded");
MS_WARN_TAG(rtp,
"not enough space for the announced header extension value, packet discarded");
returnnullptr;
returnnullptr;
}
}
ptr+=4+extension_value_size;
ptr+=4+extensionValueSize;
}
}
// Get payload.
// Get payload.
...
@@ -85,7 +88,8 @@ namespace RTC
...
@@ -85,7 +88,8 @@ namespace RTC
// Must be at least a single payload byte.
// Must be at least a single payload byte.
if(payloadLength==0)
if(payloadLength==0)
{
{
MS_WARN_TAG(rtp,"padding bit is set but no space for a padding byte, packet discarded");
MS_WARN_TAG(rtp,
"padding bit is set but no space for a padding byte, packet discarded");
returnnullptr;
returnnullptr;
}
}
...
@@ -100,7 +104,8 @@ namespace RTC
...
@@ -100,7 +104,8 @@ namespace RTC
if(payloadLength<(size_t)payloadPadding)
if(payloadLength<(size_t)payloadPadding)
{
{
MS_WARN_TAG(rtp,"number of padding octets is greater than available space for payload, packet discarded");
MS_WARN_TAG(rtp,
"number of padding octets is greater than available space for payload, packet discarded");
returnnullptr;
returnnullptr;
}
}
...
@@ -110,9 +115,12 @@ namespace RTC
...
@@ -110,9 +115,12 @@ namespace RTC
if(payloadLength==0)
if(payloadLength==0)
payload=nullptr;
payload=nullptr;
MS_ASSERT(len==sizeof(Header)+csrc_list_size+(extensionHeader?4+extension_value_size:0)+payloadLength+(size_t)payloadPadding,"packet's computed size does not match received size");
MS_DEBUG_TAG(rtx,"could not resend all packets [seq:%"PRIu16", first:%s, bitmask:"MS_UINT16_TO_BINARY_PATTERN", sent_bitmask:"MS_UINT16_TO_BINARY_PATTERN"]",
MS_DEBUG_TAG(rtx,
seq,first_packet_sent?"yes":"no",
"could not resend all packets [seq:%"PRIu16", first:%s, "