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

Method show

scapy/packet.py:1524–1536  ·  view source on GitHub ↗

Prints or returns (when "dump" is true) a hierarchical view of the packet. :param dump: determine if it prints or returns the string value :param int indent: the size of indentation for each layer :param str lvl: additional information about the layer lvl

(self, dump=False, indent=3, lvl="", label_lvl="")

Source from the content-addressed store, hash-verified

1522 return s
1523
1524 def show(self, dump=False, indent=3, lvl="", label_lvl=""):
1525 # type: (bool, int, str, str) -> Optional[Any]
1526 """
1527 Prints or returns (when "dump" is true) a hierarchical view of the
1528 packet.
1529
1530 :param dump: determine if it prints or returns the string value
1531 :param int indent: the size of indentation for each layer
1532 :param str lvl: additional information about the layer lvl
1533 :param str label_lvl: additional information about the layer fields
1534 :return: return a hierarchical view if dump, else print it
1535 """
1536 return self._show_or_dump(dump, indent, lvl, label_lvl)
1537
1538 def show2(self, dump=False, indent=3, lvl="", label_lvl=""):
1539 # type: (bool, int, str, str) -> Optional[Any]

Callers 2

displayMethod · 0.95
show2Method · 0.45

Calls 1

_show_or_dumpMethod · 0.95

Tested by

no test coverage detected