summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Troxel <gdt@ir.bbn.com>2010-06-04 19:54:06 -0400
committerGreg Troxel <gdt@ir.bbn.com>2010-06-04 19:54:06 -0400
commita5e71ebdccaa40672cf84d5a237a550e5c4f7b89 (patch)
tree0ab9f663fc0f8415314a350abaa2713ad56e9978
parent25d16ccde5228e426f2549ce79f4a4e83e0c1ddc (diff)
downloadgpsd-a5e71ebdccaa40672cf84d5a237a550e5c4f7b89.tar.gz
Use 127.0.0.1 for loopback tests.
Previously, the tests use 127.0.1.255. While it isn't clear if standards require communications to this address to work, historical behavior on BSD dating back to 4.4BSD is that 127.0.0.1 is the sole valid loopback address and the rest of 127/8 is unreachable due to a blackhole route. Therefore, avoid addresses other than 127.0.0.1 in 127/8. Causes et-332 test to pass on NetBSD.
-rw-r--r--gps/fake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gps/fake.py b/gps/fake.py
index ef8cf34b..d3e4bd0d 100644
--- a/gps/fake.py
+++ b/gps/fake.py
@@ -409,7 +409,7 @@ class TestSession:
if logfile not in self.fakegpslist:
testload = TestLoad(logfile, predump=self.predump)
if testload.sourcetype == "UDP" or self.udp:
- newgps = FakeUDP(testload, ipaddr="127.0.1.255", port="5000",
+ newgps = FakeUDP(testload, ipaddr="127.0.0.1", port="5000",
progress=self.progress)
else:
newgps = FakePTY(testload, speed=speed,