Functions
tap2pcap Namespace Reference

Functions

def dump_event (direction, timestamp, data)
 
def tap2pcap (tap_path, pcap_path)
 

Detailed Description

Tool to convert Envoy tap trace format to PCAP.

Uses od and text2pcap (part of Wireshark) utilities to translate the Envoy
tap trace proto format to a PCAP file suitable for consuming in Wireshark
and other tools in the PCAP ecosystem. The TCP stream in the output PCAP is
synthesized based on the known IP/port/timestamps that Envoy produces in its
tap files; it is not a literal wire tap.

Usage:

bazel run @envoy_api//tools:tap2pcap <tap .pb/.pb_text> <pcap path>

Known issues:
- IPv6 PCAP generation has malformed TCP packets. This appears to be a text2pcap
issue.

TODO(htuch):
- Figure out IPv6 PCAP issue above, or file a bug once the root cause is clear.

Function Documentation

◆ dump_event()

def tap2pcap.dump_event (   direction,
  timestamp,
  data 
)

Definition at line 34 of file tap2pcap.py.

◆ tap2pcap()

def tap2pcap.tap2pcap (   tap_path,
  pcap_path 
)

Definition at line 46 of file tap2pcap.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:44