THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Use UDS dissector inside DoIP dissector

UDS is a diagnostic protocol used in cars. It can be used on any bus that provides a transport protocol.

DoIP (ISO 13400) is a transport protocol created to convey diagnostic messages and other information over TCP or UDP.

I used a custom dissector written in lua to reconstruct and parse DoIP messages and then passed it to a custom uds dissector for the diagnostic message content using

Dissector.get("uds"):call(tvb(8+4):tvb(),pinfo,tree)

Since 2.4.0, an official uds protocol has landed in Wireshark (yeah!). But it seems I can't call the dissector

Lua Error: dissect_tcp_pdus dissect_func: [string "C:\Program Files\Wireshark\plugins\2.4.2\doip..."]:160: bad argument #1 to 'get' (Dissector_get: No such dissector)

How am I supposed to use the new UDS dissector?

Cilyan's avatar
5
Cilyan
asked 2017-12-13 17:20:18 +0000, updated 2017-12-13 17:20:54 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

But it seems I can't call the dissector

More precisely, you can't get a handle for the dissector.

This is because the dissector doesn't register itself by name.

How am I supposed to use the new UDS dissector?

Wait for the next 2.4 release, use one of the automated builds, or build a version from source - I've changed the UDS dissector to register itself with the name "uds".

Guy Harris's avatar
19.9k
Guy Harris
answered 2017-12-14 03:18:55 +0000
edit flag offensive 0 remove flag delete link

Comments

Oh, thanks, nice. I saw your change in git. I was confused, I thought that registering the protocol was enough to register the dissector at the same time. I probably misinterpreted how it is done in lua compared to C.

Cilyan's avatar Cilyan (2017-12-14 08:47:59 +0000) edit
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