Add a pcap-split tool

This commit is contained in:
2026-10-05 20:16:01 +02:00
parent 5b5cf211d0
commit c11c893845
13 changed files with 769 additions and 22 deletions
+3 -2
View File
@@ -102,7 +102,8 @@ func TestPcapFilename(t *testing.T) {
" ": "packet.pcap",
"dns query": "dns_query.pcap",
"x.pcap": "x.pcap",
"../etc/passwd": ".._etc_passwd.pcap",
"../etc/passwd": "passwd.pcap",
`C:\\x\\y.pcap`: "y.pcap",
`a"b`: "a_b.pcap",
} {
if got := pcapFilename(in); got != want {
@@ -112,7 +113,7 @@ func TestPcapFilename(t *testing.T) {
}
func TestHandlers(t *testing.T) {
srv, err := New()
srv, err := New(Config{MaxUploadBytes: 1 << 20})
if err != nil {
t.Fatal(err)
}