You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like the main issue is that tshark -D is not correctly reporting the interfaces, even though capture works:
root@test-traffic-exporter:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
3: eth0@if141: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
root@test-traffic-exporter:/# tshark -D
Running as user "root" and group "root". This could be dangerous.
1. ciscodump (Cisco remote capture)
2. dpauxmon (DisplayPort AUX channel monitor capture)
3. randpkt (Random packet generator)
4. sdjournal (systemd Journal Export)
5. sshdump (SSH remote capture)
6. udpdump (UDP Listener remote capture)
7. wifidump (Wi-Fi remote capture)
There doesn't seem to be a way to disable the _verify_capture_parameters funtion, even though the parent function says Optionaly verify
Deploy a Pod in kubernetes with pyshark and try to capture packets from eth0 interface.
Expected behavior
The same packets that tshark command is able to capture should be captured by pyshark, but the capture doesn't even starts because a verification fails previously
Versions (please complete the following information):
OS: Linux
pyshark version: pyshark-0.6
tshark version: TShark (Wireshark) 4.0.11 (Git v4.0.11 packaged as 4.0.11-1~deb12u1).
Example pcap / packet
If applicable, add an example pcap file as an attachment, or post the packet as a hex string or a JSON/XML (export packet dissection in wireshark/tshark).
The text was updated successfully, but these errors were encountered:
Describe the bug
I want to run pyshark in a sidecar container in Kubernetes, but while starting a LiveCapture like this:
I'm getting the error:
I tried running the tshark command and it can actually capture packets:
Seems like the main issue is that tshark -D is not correctly reporting the interfaces, even though capture works:
There doesn't seem to be a way to disable the _verify_capture_parameters funtion, even though the parent function says
Optionaly verify
pyshark/src/pyshark/capture/capture.py
Line 161 in 414d013
To Reproduce
Steps to reproduce the behavior:
Deploy a Pod in kubernetes with pyshark and try to capture packets from eth0 interface.
Expected behavior
The same packets that tshark command is able to capture should be captured by pyshark, but the capture doesn't even starts because a verification fails previously
Versions (please complete the following information):
Example pcap / packet
If applicable, add an example pcap file as an attachment, or post the packet as a hex string or a JSON/XML (export packet dissection in wireshark/tshark).
The text was updated successfully, but these errors were encountered: