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

Method __findaddr

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

Source from the content-addressed store, hash-verified

1006 IP6Field.__init__(self, name, None)
1007
1008 def __findaddr(self, pkt):
1009 # type: (Packet) -> Optional[str]
1010 if conf.route6 is None:
1011 # unused import, only to initialize conf.route
1012 import scapy.route6 # noqa: F401
1013 return pkt.route()[1]
1014
1015 def i2m(self, pkt, x):
1016 # type: (Optional[Packet], Optional[Union[str, Net6]]) -> bytes

Callers 2

i2mMethod · 0.95
i2hMethod · 0.95

Calls 1

routeMethod · 0.45

Tested by

no test coverage detected