Home
last modified time | relevance | path

Searched refs:stun_msg (Results 1 – 4 of 4) sorted by relevance

/external/webrtc/webrtc/p2p/base/
Dport.cc344 rtc::scoped_ptr<IceMessage> stun_msg(new IceMessage()); in GetStunMessage() local
346 if (!stun_msg->Read(&buf) || (buf.Length() > 0)) { in GetStunMessage()
350 if (stun_msg->type() == STUN_BINDING_REQUEST) { in GetStunMessage()
353 if (!stun_msg->GetByteString(STUN_ATTR_USERNAME) || in GetStunMessage()
354 !stun_msg->GetByteString(STUN_ATTR_MESSAGE_INTEGRITY)) { in GetStunMessage()
357 SendBindingErrorResponse(stun_msg.get(), addr, STUN_ERROR_BAD_REQUEST, in GetStunMessage()
365 if (!ParseStunUsername(stun_msg.get(), &local_ufrag, &remote_ufrag) || in GetStunMessage()
370 SendBindingErrorResponse(stun_msg.get(), addr, STUN_ERROR_UNAUTHORIZED, in GetStunMessage()
376 if (!stun_msg->ValidateMessageIntegrity(data, size, password_)) { in GetStunMessage()
380 SendBindingErrorResponse(stun_msg.get(), addr, STUN_ERROR_UNAUTHORIZED, in GetStunMessage()
[all …]
Dp2ptransportchannel.cc495 IceMessage* stun_msg, const std::string &remote_username, in OnUnknownAddress() argument
560 stun_msg->GetUInt32(STUN_ATTR_PRIORITY); in OnUnknownAddress()
565 port->SendBindingErrorResponse(stun_msg, address, STUN_ERROR_BAD_REQUEST, in OnUnknownAddress()
604 port->SendBindingErrorResponse(stun_msg, address, in OnUnknownAddress()
615 port->SendBindingErrorResponse(stun_msg, address, STUN_ERROR_SERVER_ERROR, in OnUnknownAddress()
624 connection->HandleBindingRequest(stun_msg); in OnUnknownAddress()
Dport.h272 bool ParseStunUsername(const StunMessage* stun_msg,
279 IceMessage* stun_msg,
Dp2ptransportchannel.h226 IceMessage* stun_msg,