/external/webrtc/p2p/base/ |
D | stun_request_unittest.cc | 39 void OnResponse(StunMessage* res) { in OnResponse() 43 void OnErrorResponse(StunMessage* res) { in OnErrorResponse() 50 static StunMessage* CreateStunMessage(StunMessageType type, in CreateStunMessage() 51 StunMessage* req) { in CreateStunMessage() 52 StunMessage* msg = new StunMessage(); in CreateStunMessage() 67 StunMessage* response_; 76 StunRequestThunker(StunMessage* msg, StunRequestTest* test) in StunRequestThunker() 81 virtual void OnResponse(StunMessage* res) { test_->OnResponse(res); } in OnResponse() 82 virtual void OnErrorResponse(StunMessage* res) { in OnErrorResponse() 87 virtual void Prepare(StunMessage* request) { in Prepare() [all …]
|
D | stun_server.h | 45 virtual void OnBindingRequest(StunMessage* msg, 47 void OnAllocateRequest(StunMessage* msg, const rtc::SocketAddress& addr); 48 void OnSharedSecretRequest(StunMessage* msg, const rtc::SocketAddress& addr); 49 void OnSendRequest(StunMessage* msg, const rtc::SocketAddress& addr); 52 void SendErrorResponse(const StunMessage& msg, 58 void SendResponse(const StunMessage& msg, const rtc::SocketAddress& addr); 61 void GetStunBindResponse(StunMessage* request, 63 StunMessage* response) const;
|
D | stun_server_unittest.cc | 45 void Send(const StunMessage& msg) { in Send() 54 StunMessage* Receive() { in Receive() 55 StunMessage* msg = NULL; in Receive() 60 msg = new StunMessage(); in Receive() 78 StunMessage req; in TEST_F() 85 StunMessage* msg = Receive(); in TEST_F() 100 StunMessage req; in TEST_F() 108 StunMessage* msg = Receive(); in TEST_F() 124 StunMessage req; in TEST_F() 131 StunMessage* msg = Receive(); in TEST_F()
|
D | stun_server.cc | 35 StunMessage msg; in OnPacket() 54 void StunServer::OnBindingRequest(StunMessage* msg, in OnBindingRequest() 56 StunMessage response; in OnBindingRequest() 61 void StunServer::SendErrorResponse(const StunMessage& msg, in SendErrorResponse() 65 StunMessage err_msg; in SendErrorResponse() 77 void StunServer::SendResponse(const StunMessage& msg, in SendResponse() 86 void StunServer::GetStunBindResponse(StunMessage* request, in GetStunBindResponse() 88 StunMessage* response) const { in GetStunBindResponse()
|
D | stun_request.h | 65 bool CheckResponse(StunMessage* msg); 91 explicit StunRequest(StunMessage* request); 116 const StunMessage* msg() const; 119 StunMessage* mutable_msg(); 131 virtual void Prepare(StunMessage* request) {} in Prepare() 134 virtual void OnResponse(StunMessage* response) {} in OnResponse() 135 virtual void OnErrorResponse(StunMessage* response) {} in OnErrorResponse() 149 StunMessage* msg_;
|
D | connection.h | 60 void Prepare(StunMessage* request) override; 61 void OnResponse(StunMessage* response) override; 62 void OnErrorResponse(StunMessage* response) override; 239 void HandlePiggybackCheckAcknowledgementIfAny(StunMessage* msg); 320 void SendStunBindingResponse(const StunMessage* request); 321 void SendGoogPingResponse(const StunMessage* request); 322 void SendResponseMessage(const StunMessage& response); 347 StunMessage* response); 349 StunMessage* response); 386 StunMessage* response); [all …]
|
D | turn_port.cc | 76 void Prepare(StunMessage* request) override; 78 void OnResponse(StunMessage* response) override; 79 void OnErrorResponse(StunMessage* response) override; 84 void OnAuthChallenge(StunMessage* response, int code); 85 void OnTryAlternate(StunMessage* response, int code); 86 void OnUnknownAttribute(StunMessage* response); 94 void Prepare(StunMessage* request) override; 96 void OnResponse(StunMessage* response) override; 97 void OnErrorResponse(StunMessage* response) override; 113 void Prepare(StunMessage* request) override; [all …]
|
D | stun_request.cc | 114 bool StunRequestManager::CheckResponse(StunMessage* msg) { in CheckResponse() 166 std::unique_ptr<StunMessage> response(iter->second->msg_->CreateNew()); in CheckResponse() 180 msg_(new StunMessage()), in StunRequest() 185 StunRequest::StunRequest(StunMessage* request) in StunRequest() 215 const StunMessage* StunRequest::msg() const { in msg() 219 StunMessage* StunRequest::mutable_msg() { in mutable_msg()
|
D | turn_server.h | 37 class StunMessage; variable 274 void HandleBindingRequest(TurnServerConnection* conn, const StunMessage* msg); 279 bool GetKey(const StunMessage* msg, std::string* key); 281 const StunMessage* msg, 293 const StunMessage* req, 298 const StunMessage* req, 303 const StunMessage* req, 306 void SendStun(TurnServerConnection* conn, StunMessage* msg);
|
D | test_stun_server.cc | 27 void TestStunServer::OnBindingRequest(StunMessage* msg, in OnBindingRequest() 32 StunMessage response; in OnBindingRequest()
|
D | turn_server.cc | 101 static bool InitResponse(const StunMessage* req, StunMessage* resp) { in InitResponse() 110 static bool InitErrorResponse(const StunMessage* req, in InitErrorResponse() 113 StunMessage* resp) { in InitErrorResponse() 297 bool TurnServer::GetKey(const StunMessage* msg, std::string* key) { in GetKey() 310 const StunMessage* msg, in CheckAuthorization() 349 if (key.empty() || !StunMessage::ValidateMessageIntegrity(data, size, key)) { in CheckAuthorization() 372 const StunMessage* req) { in HandleBindingRequest() 374 StunMessage response; in HandleBindingRequest() 482 const StunMessage* req, in SendErrorResponse() 494 const StunMessage* msg, in SendErrorResponseWithRealmAndNonce() [all …]
|
D | connection.cc | 169 void ConnectionRequest::Prepare(StunMessage* request) { in Prepare() 259 void ConnectionRequest::OnResponse(StunMessage* response) { in OnResponse() 263 void ConnectionRequest::OnErrorResponse(StunMessage* response) { in OnErrorResponse() 637 void Connection::SendStunBindingResponse(const StunMessage* request) { in SendStunBindingResponse() 650 StunMessage response; in SendStunBindingResponse() 693 void Connection::SendGoogPingResponse(const StunMessage* request) { in SendGoogPingResponse() 697 StunMessage response; in SendGoogPingResponse() 704 void Connection::SendResponseMessage(const StunMessage& response) { in SendResponseMessage() 867 void Connection::HandlePiggybackCheckAcknowledgementIfAny(StunMessage* msg) { in HandlePiggybackCheckAcknowledgementIfAny() 1073 StunMessage* response) { in OnConnectionRequestResponse() [all …]
|
D | port_interface.h | 31 class StunMessage; variable 108 virtual void SendBindingErrorResponse(StunMessage* request,
|
D | port.cc | 445 if (!StunMessage::IsStunMethod(types, data, size) && in GetStunMessage() 446 !StunMessage::ValidateFingerprint(data, size)) { in GetStunMessage() 612 bool Port::ParseStunUsername(const StunMessage* stun_msg, in ParseStunUsername() 719 void Port::SendBindingErrorResponse(StunMessage* request, in SendBindingErrorResponse() 727 StunMessage response; in SendBindingErrorResponse() 772 StunMessage* request, in SendUnknownAttributesErrorResponse() 778 StunMessage response; in SendUnknownAttributesErrorResponse()
|
D | turn_port.h | 306 void AddRequestAuthInfo(StunMessage* msg); 333 bool UpdateNonce(StunMessage* response); 353 void MaybeAddTurnLoggingId(StunMessage* message); 355 void TurnCustomizerMaybeModifyOutgoingStunMessage(StunMessage* message);
|
D | test_stun_server.h | 36 void OnBindingRequest(StunMessage* msg,
|
D | test_turn_customizer.h | 32 cricket::StunMessage* message) override { in MaybeModifyOutgoingStunMessage()
|
D | port.h | 294 void SendBindingErrorResponse(StunMessage* request, 299 StunMessage* request, 327 bool ParseStunUsername(const StunMessage* stun_msg,
|
D | stun_port.cc | 46 void Prepare(StunMessage* request) override { in Prepare() 50 void OnResponse(StunMessage* response) override { in OnResponse() 71 void OnErrorResponse(StunMessage* response) override { in OnErrorResponse()
|
D | tcp_port.h | 148 StunMessage* response) override;
|
/external/webrtc/api/transport/ |
D | stun_unittest.cc | 29 void CheckStunHeader(const StunMessage& msg, in CheckStunHeader() 36 void CheckStunTransactionID(const StunMessage& msg, in CheckStunTransactionID() 66 size_t ReadStunMessageTestCase(StunMessage* msg, in ReadStunMessageTestCase() 591 StunMessage msg; in TEST_F() 603 StunMessage msg; in TEST_F() 604 StunMessage msg2; in TEST_F() 617 StunMessage msg; in TEST_F() 630 StunMessage msg; in TEST_F() 643 StunMessage msg; in TEST_F() 659 StunMessage msg; in TEST_F() [all …]
|
D | stun.cc | 67 StunMessage::StunMessage() in StunMessage() function in cricket::StunMessage 75 StunMessage::~StunMessage() = default; 77 bool StunMessage::IsLegacy() const { in IsLegacy() 84 bool StunMessage::SetTransactionID(const std::string& str) { in SetTransactionID() 98 void StunMessage::AddAttribute(std::unique_ptr<StunAttribute> attr) { in AddAttribute() 116 std::unique_ptr<StunAttribute> StunMessage::RemoveAttribute(int type) { in RemoveAttribute() 136 void StunMessage::ClearAttributes() { in ClearAttributes() 144 std::vector<uint16_t> StunMessage::GetNonComprehendedAttributes() const { in GetNonComprehendedAttributes() 156 const StunAddressAttribute* StunMessage::GetAddress(int type) const { in GetAddress() 173 const StunUInt32Attribute* StunMessage::GetUInt32(int type) const { in GetUInt32() [all …]
|
D | stun.h | 146 class StunMessage { 148 StunMessage(); 149 virtual ~StunMessage(); 232 virtual StunMessage* CreateNew() const; 239 std::unique_ptr<StunMessage> Clone() const; 243 bool EqualAttributes(const StunMessage* other, 285 virtual void SetOwner(StunMessage* owner) {} in SetOwner() 299 StunMessage* owner); 389 StunXorAddressAttribute(uint16_t type, uint16_t length, StunMessage* owner); 392 void SetOwner(StunMessage* owner) override; [all …]
|
/external/webrtc/test/fuzzers/ |
D | stun_validator_fuzzer.cc | 20 cricket::StunMessage::ValidateFingerprint(message, size); in FuzzOneInput() 21 cricket::StunMessage::ValidateMessageIntegrity(message, size, ""); in FuzzOneInput()
|
/external/webrtc/api/ |
D | turn_customizer.h | 18 class StunMessage; variable 29 cricket::StunMessage* message) = 0;
|