MCPcopy Index your code
hub / github.com/secdev/scapy / delt

Method delt

scapy/route.py:116–129  ·  view source on GitHub ↗

Remove a route from Scapy's IPv4 routing table. delt(host|net, gw|dev) Same syntax as add()

(self, *args, **kargs)

Source from the content-addressed store, hash-verified

114 self.routes.append(self.make_route(*args, **kargs))
115
116 def delt(self, *args, **kargs):
117 # type: (*Any, **Any) -> None
118 """Remove a route from Scapy's IPv4 routing table.
119 delt(host|net, gw|dev)
120
121 Same syntax as add()
122 """
123 self.invalidate_cache()
124 route = self.make_route(*args, **kargs)
125 try:
126 i = self.routes.index(route)
127 del self.routes[i]
128 except ValueError:
129 raise ValueError("No matching route found!")
130
131 def ifchange(self, iff, addr):
132 # type: (str, str) -> None

Callers

nothing calls this directly

Calls 2

invalidate_cacheMethod · 0.95
make_routeMethod · 0.95

Tested by

no test coverage detected