dlt-daemon icon indicating copy to clipboard operation
dlt-daemon copied to clipboard

How to catch a packet

Open shtry opened this issue 4 years ago • 3 comments

Hi.

tcpdump doesn't seem to catch anything.

my command:

 ./dlt-daemon
 ./dlt-example-user 11111
Send 0 11111
Log level changed of context TEST, LogLevel=4, TraceState=0
Log level changed of context TS1, LogLevel=4, TraceState=0
Log level changed of context TS2, LogLevel=4, TraceState=0
Send 1 11111
Client disconnected!
Send 2 11111
Send 3 11111
Send 4 11111
Send 5 11111
Send 6 11111
Send 7 11111
Send 8 11111
tcpdump port 3490
tcpdump: verbose output suppressed, use -v

Thank you.

shtry avatar Nov 26 '20 11:11 shtry

@shtry I guess you need to specify interface to monitor. E.g. If it's localhost, you can do tcpdump -i lo port 3490.

ssugiura avatar Dec 08 '20 05:12 ssugiura

Thanks. @ssugiura

I succeeded in catching the packet.

However, you cannot see the filter in wireshark.

Do you know why?

Wireshark appears to support DLT.

: https://www.wireshark.org/docs/dfref/d/dlt.html

But only TCP exists in my screenshot.

: image

My pcap file : test.zip

shtry avatar Jan 26 '21 04:01 shtry

ctrl+shift+p -> protocol -> DLT . Check the ports there, they might be 0 by default.

zeerd avatar Aug 11 '21 09:08 zeerd

Hello @shtry ,

I guess this issue was resolved by comments/ supports from experts here. I'd like to close this issue and in case you have any further concerns, please create a new one.

Happy coding. Thanh

thanhbnq avatar Oct 06 '22 04:10 thanhbnq