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}
diff --git a/test/network/network_emulation.cc b/test/network/network_emulation.cc
index 9251cfe..33de45b 100644
--- a/test/network/network_emulation.cc
+++ b/test/network/network_emulation.cc
@@ -447,7 +447,7 @@
       allow_send_packet_with_different_source_ip(
           config.allow_send_packet_with_different_source_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("") + ")") {}
 
 EmulatedEndpointImpl::EmulatedEndpointImpl(const Options& options,
@@ -583,7 +583,7 @@
 
 void EmulatedEndpointImpl::OnPacketReceived(EmulatedIpPacket packet) {
   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)
         << "Routing error: wrong destination endpoint. Packet.to.ipaddr()=: "
         << packet.to.ipaddr().ToString()