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

Method __findaddr

scapy/fields.py:919–924  ·  view source on GitHub ↗
(self, pkt)

Source from the content-addressed store, hash-verified

917 IPField.__init__(self, name, None)
918
919 def __findaddr(self, pkt):
920 # type: (Packet) -> Optional[str]
921 if conf.route is None:
922 # unused import, only to initialize conf.route
923 import scapy.route # noqa: F401
924 return pkt.route()[1] or conf.route.route()[1]
925
926 def i2m(self, pkt, x):
927 # type: (Optional[Packet], Optional[Union[str, Net]]) -> bytes

Callers 2

i2mMethod · 0.95
i2hMethod · 0.95

Calls 1

routeMethod · 0.45

Tested by

no test coverage detected