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

Method mysummary

scapy/packet.py:1674–1680  ·  view source on GitHub ↗

DEV: can be overloaded to return a string that summarizes the layer. Only one mysummary() is used in a whole packet summary: the one of the upper layer, # noqa: E501 except if a mysummary() also returns (as a couple) a list of layers whose # noqa: E501 mysummary()

(self)

Source from the content-addressed store, hash-verified

1672 return s
1673
1674 def mysummary(self):
1675 # type: () -> str
1676 """DEV: can be overloaded to return a string that summarizes the layer.
1677 Only one mysummary() is used in a whole packet summary: the one of the upper layer, # noqa: E501
1678 except if a mysummary() also returns (as a couple) a list of layers whose # noqa: E501
1679 mysummary() must be called if they are present."""
1680 return ""
1681
1682 def _do_summary(self):
1683 # type: () -> Tuple[int, str, List[Any]]

Callers 1

_do_summaryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected