From f90f9df1d09e12ba64e9401530684d5a36220ad3 Mon Sep 17 00:00:00 2001 From: kali Date: Tue, 15 Jan 2013 22:17:56 +0900 Subject: todo about ping_gateway function --- src/leap/base/checks.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/leap') diff --git a/src/leap/base/checks.py b/src/leap/base/checks.py index c7839548..4d4a5d8b 100644 --- a/src/leap/base/checks.py +++ b/src/leap/base/checks.py @@ -120,6 +120,12 @@ class LeapNetworkChecker(object): # -- is it a valid ip? (there's something in util) # -- is it a domain? # -- can we resolve? -- raise NoDNSError if not. + + # XXX -- needs review! + # We cannout use this ping implementation; it needs root. + # We need to look for another, poors-man implementation + # or wrap around system traceroute (using sh module, fi) + # -- kali packet_loss = ping.quiet_ping(gateway)[0] if packet_loss > constants.MAX_ICMP_PACKET_LOSS: raise exceptions.NoConnectionToGateway -- cgit v1.2.3