Return a PacketInfo object for dual-mode packet formatting. Callers do not need to change — PacketInfo.__str__() produces the same full output as before. When passed to logger.debug(), the test framework automatically uses the fast brief() representation instead.
(headline, packet)
| 80 | |
| 81 | |
| 82 | def ppp(headline, packet): |
| 83 | """Return a PacketInfo object for dual-mode packet formatting. |
| 84 | |
| 85 | Callers do not need to change — PacketInfo.__str__() produces the same |
| 86 | full output as before. When passed to logger.debug(), the test framework |
| 87 | automatically uses the fast brief() representation instead. |
| 88 | """ |
| 89 | return PacketInfo(headline, packet) |
| 90 | |
| 91 | |
| 92 | def ppc(headline, capture, limit=10): |