1

ここでコードをエミュレートしようとしています: Scapy and tcpreplay: bypass temporary file for performance

そのコードを実行しようとすると、次の行で Python エラーが発生します。

    f = subprocess.Popen(argv, stdin=subprocess.PIPE)

エラーは言う

Failed: Error opening pcap file: truncated dump file; tried to read 4 file header bytes, only got 0

サブプロセスが標準入力に何かが書き込まれる前に標準入力から読み取ろうとしているため、そのエラーが発生していると思います。

助言がありますか?

4

1 に答える 1