First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

How to restart during the standard input capture

Im a car engineer. I try to capture car CAN protocol msg and use Wireshark to analysis. There is no way to capture directly from car. So I write a demo to test whether it can be imported by stdin. And Its works. But I click restart button, pop up error “Unrecognized libpcap format”. I don't want restart whole program every time. What shall I do, or how could I get signal of restart.

Chasen's avatar
1
Chasen
asked 2018-12-03 17:45:34 +0000, updated 2018-12-03 17:52:23 +0000
edit flag offensive 0 remove flag close merge delete

Comments

More details provided over at https://stackoverflow.com/questions/5...

cmaynard's avatar cmaynard (2018-12-03 21:35:47 +0000) edit
add a comment see more comments

1 Answer

1

Restart from stdin requires the source to send a new libpcap header, which the source cannot do. Therefore the error.

What you could look into is to develop an extcap utility.

Jaap's avatar
13.7k
Jaap
answered 2018-12-03 18:11:49 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer