MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_packet_summaries

Function get_packet_summaries

dpdk/dts/framework/utils.py:64–69  ·  view source on GitHub ↗
(packets: list[Packet])

Source from the content-addressed store, hash-verified

62
63
64def get_packet_summaries(packets: list[Packet]):
65 if len(packets) == 1:
66 packet_summaries = packets[0].summary()
67 else:
68 packet_summaries = json.dumps(list(map(lambda pkt: pkt.summary(), packets)), indent=4)
69 return f"Packet contents: \n{packet_summaries}"
70
71
72def RED(text: str) -> str:

Callers 3

send_packetsMethod · 0.90
verify_packetsMethod · 0.85

Calls 1

listClass · 0.50

Tested by 1

verify_packetsMethod · 0.68