MCPcopy Index your code
hub / github.com/coder/coder / CapturePackets

Method CapturePackets

tailnet/test/integration/network.go:75–81  ·  view source on GitHub ↗
(t *testing.T, name, dir string)

Source from the content-addressed store, hash-verified

73}
74
75func (p TestNetworkingProcess) CapturePackets(t *testing.T, name, dir string) {
76 dumpfile := path.Join(dir, name+".pcap")
77 _, _ = ExecBackground(t, name+".pcap", p.NetNS, "tcpdump", []string{
78 "-i", "any",
79 "-w", dumpfile,
80 })
81}
82
83// NetworkingLoopback creates a network namespace with a loopback interface
84// for all tests to share. This is the simplest networking setup. The network

Callers

nothing calls this directly

Calls 1

ExecBackgroundFunction · 0.85

Tested by

no test coverage detected