6 Commits

Author SHA1 Message Date
Michael Stapelberg
7d278289f0 captured: directly call NextPacket() to prevent hanging reads
Using Packets() spawns off a separate goroutine which calls NextPacket in a loop
until io.EOF is returned. This goroutine will stick around after Close()
returned, resulting in only the first wireshark connection working.
2018-10-23 09:56:07 +02:00
Michael Stapelberg
ff7aa8f2cb add copyright notices 2018-06-28 20:08:23 +02:00
Michael Stapelberg
2b3cf0bf61 captured: use multilisten 2018-06-28 20:08:23 +02:00
Michael Stapelberg
bb6b901b90 captured: implement a packet ring buffer
So that when you connect with Wireshark, you’ll see the most recent
packets (takes up to 7 MB of RAM).
2018-06-17 17:47:26 +02:00
Michael Stapelberg
2c302d976d captured: plug goroutine leak from closed SSH connections 2018-06-17 16:49:37 +02:00
Michael Stapelberg
bb563e0798 add captured: sends packets to Wireshark SSH remote capture
Just point your wireshark to 10.0.0.1:5022.
2018-06-17 15:19:49 +02:00