Prints or returns (when "dump" is true) a hierarchical view of an assembled version of the packet, so that automatic fields are calculated (checksums, etc.) :param dump: determine if it prints or returns the string value :param int indent: the size of indent
(self, dump=False, indent=3, lvl="", label_lvl="")
| 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] |
| 1540 | """ |
| 1541 | Prints or returns (when "dump" is true) a hierarchical view of an |
| 1542 | assembled version of the packet, so that automatic fields are |
| 1543 | calculated (checksums, etc.) |
| 1544 | |
| 1545 | :param dump: determine if it prints or returns the string value |
| 1546 | :param int indent: the size of indentation for each layer |
| 1547 | :param str lvl: additional information about the layer lvl |
| 1548 | :param str label_lvl: additional information about the layer fields |
| 1549 | :return: return a hierarchical view if dump, else print it |
| 1550 | """ |
| 1551 | return self.__class__(raw(self)).show(dump, indent, lvl, label_lvl) |
| 1552 | |
| 1553 | def sprintf(self, fmt, relax=1): |
| 1554 | # type: (str, int) -> str |