Fix typos in network emulation default routing

Bug: b/180750880
Change-Id: I8a927d5cb66af2292eff13382ed956def1585922
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208481
Reviewed-by: Andrey Logvin <landrey@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33318}
This commit is contained in:
Artem Titov 2021-02-22 15:01:38 +01:00 committed by Commit Bot
parent d44532afb7
commit 28547e96cc

View file

@ -447,7 +447,7 @@ EmulatedEndpointImpl::Options::Options(uint64_t id,
allow_send_packet_with_different_source_ip( allow_send_packet_with_different_source_ip(
config.allow_send_packet_with_different_source_ip), config.allow_send_packet_with_different_source_ip),
allow_receive_packets_with_different_dest_ip( allow_receive_packets_with_different_dest_ip(
config.allow_send_packet_with_different_source_ip), config.allow_receive_packets_with_different_dest_ip),
log_name(ip.ToString() + " (" + config.name.value_or("") + ")") {} log_name(ip.ToString() + " (" + config.name.value_or("") + ")") {}
EmulatedEndpointImpl::EmulatedEndpointImpl(const Options& options, EmulatedEndpointImpl::EmulatedEndpointImpl(const Options& options,
@ -583,7 +583,7 @@ rtc::IPAddress EmulatedEndpointImpl::GetPeerLocalAddress() const {
void EmulatedEndpointImpl::OnPacketReceived(EmulatedIpPacket packet) { void EmulatedEndpointImpl::OnPacketReceived(EmulatedIpPacket packet) {
RTC_DCHECK_RUN_ON(task_queue_); RTC_DCHECK_RUN_ON(task_queue_);
if (options_.allow_receive_packets_with_different_dest_ip) { if (!options_.allow_receive_packets_with_different_dest_ip) {
RTC_CHECK(packet.to.ipaddr() == options_.ip) RTC_CHECK(packet.to.ipaddr() == options_.ip)
<< "Routing error: wrong destination endpoint. Packet.to.ipaddr()=: " << "Routing error: wrong destination endpoint. Packet.to.ipaddr()=: "
<< packet.to.ipaddr().ToString() << packet.to.ipaddr().ToString()