Comments (2)
Hi - this bug worries me. On linux, changing the display filter during a live capture seems to work. Maybe it was too much to hope that things would just work across platforms. Unfortunately I don't have a mac to test on - a friend of mine exercised termshark for me on macOS before I pushed v1. Maybe I need to spring for a mac!
On my linux machine, here are the processes that are started by termshark when doing a live capture:
gcla 2569 0.0 0.0 64804 5924 pts/13 S+ 22:37 0:00 dumpcap -P -i wlan0 -w /home/gcla/.cache/termshark/wlan0-776447025.pcap
gcla 2570 0.3 0.3 361928 115736 pts/13 S+ 22:37 0:00 tshark -T psml -o gui.column.format:"No.","%m","Time","%t","Source","%s","Destination","%d","Protocol","%p","Length","%L","Info","%i" -i - -l -d udp.port==2075,cflow -d udp.port==9191,cflow -d udp.port==2055,cflow -d udp.port==2095,cflow
gcla 2571 0.0 0.0 7512 856 pts/13 S+ 22:37 0:00 tail -f -c +0 /home/gcla/.cache/termshark/wlan0-776447025.pcap
gcla 2593 0.0 0.0 62496 5040 pts/13 S+ 22:37 0:00 /usr/bin/dumpcap -n -i - -Z none
I'm running grep -i 'tshark|tail|dumpcap'. In the process list above, ignore the second dumpcap for now.
If I change the filter and hit apply, I see
gcla 2569 0.0 0.0 64804 5924 pts/13 S+ 22:37 0:00 dumpcap -P -i wlan0 -w /home/gcla/.cache/termshark/wlan0-776447025.pcap
gcla 4022 1.0 0.3 361932 115580 pts/13 S+ 22:38 0:00 tshark -T psml -o gui.column.format:"No.","%m","Time","%t","Source","%s","Destination","%d","Protocol","%p","Length","%L","Info","%i" -i - -l -Y ssdp -d udp.port==2075,cflow -d udp.port==9191,cflow -d udp.port==2055,cflow -d udp.port==2095,cflow
gcla 4023 0.0 0.0 7512 808 pts/13 S+ 22:38 0:00 tail -f -c +0 /home/gcla/.cache/termshark/wlan0-776447025.pcap
gcla 4046 0.0 0.0 62496 4896 pts/13 S+ 22:38 0:00 /usr/bin/dumpcap -n -i - -Z none
So you don't have to squint at that, (1) the first-listed dumpcap process is left alone (pid the same) - it reads from the selected interface and saves to a pcap in the cache dir, and (2) the other processes are restarted - tail to read from the cached pcap and feed it to tshark to generate PSML. You can see the "ssdp" filter I applied in there next to the -Y argument.
I'm not sure what's happening on macOS - maybe I'm failing to kill and restart the tail and tshark -T psml processes. Maybe you'll be able to tell with the info above? If the kill commands failed, there should be something in the log file - on macOS I believe it's under ~/Library/Caches/.
Thanks again for these bug reports.
from termshark.
This is a Wireshark bug. When I filter by "TCP", I see TCP and ICMP traffic in both tshark and termshark.
This is what I was seeing: https://superuser.com/questions/964134/is-icmp-port-unreachable-error-generated-by-both-tcp-and-udp
from termshark.
Related Issues (20)
- Consider using sharkd when it's available
- Consider SIP callflow HOT 7
- New installation fails to launch HOT 1
- Guide for performing a termshark upgrade to latest version
- help
- doesn't work: The termshark UI will start when packets are detected on eth0... HOT 4
- Support decrypting HTTPS/TLS traffic via SSLKEYLOGFILE
- pkg/system/dumpcapext.go build constraints are not specific enough
- Go to packet
- Invisible packets list HOT 2
- panic: runtime error: index out of range [70] with length 70
- High CPU usage when scrolling, or when a lot of packets get received
- Wierd UI looking
- Error starting UI: character set not supported
- Vulnerability of dependency "golang.org/x/net" HOT 2
- [Packet Index, Packet Data] Pair do not match what is seen in Wireshark form Exported PCap file.
- Use Croc in lieu of Wormhole?
- Support vi-style binds in copy mode
- Unable to Quit (from long-running sessions) HOT 1
- Easy transparent background support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termshark.