MCPcopy Create free account
hub / github.com/secdev/scapy / resync

Method resync

scapy/route6.py:59–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.ipv6_ifaces.clear()
58
59 def resync(self):
60 # type: () -> None
61 # TODO : At the moment, resync will drop existing Teredo routes
62 # if any. Change that ...
63 self.invalidate_cache()
64 self.routes = read_routes6()
65 self.ipv6_ifaces = set()
66 for route in self.routes:
67 self.ipv6_ifaces.add(route[3])
68 if self.routes == []:
69 log_loading.info("No IPv6 support in kernel")
70
71 def __repr__(self):
72 # type: () -> str

Callers 1

__init__Method · 0.95

Calls 3

invalidate_cacheMethod · 0.95
read_routes6Function · 0.90
addMethod · 0.45

Tested by

no test coverage detected