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

When dissecting packet, higher level protocol overwrites lower level custom protocol

Hello,

When dissecting packet, my custom protocol gets overwritten by higher level UDP. I can see my protocol being displayed for few seconds and then gets overwritten by higher level UPD in the Protocol and Info columns.

Any idea what could be causing this?

Thanks in advance.

MSK's avatar
3
MSK
asked 2018-06-19 01:34:35 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Is it a higher-level UDP protocol that's overwriting it? I.e., your protocol is carrying (tunneling) UDP?

Or is it the lower-level UDP (i.e., your protocol is over UDP)?

Finally, what version of Wireshark are we talking about here?

Given your description that your protocol is displayed for a few seconds before being overwritten it sounds like (regardless of the answers to the above questions) that your dissector is not setting the columns on the 2nd (and subsequent) dissections of the packets. Check to make sure your col_set*() calls aren't inside a check on/conditional of pinfo->fd->flags.visited or whether tree is set or not.

JeffMorriss's avatar
6.4k
JeffMorriss
answered 2018-06-19 13:20:27 +0000
edit flag offensive 0 remove flag delete link

Comments

It is the higher level-UDP protocol which is overwriting my protocol. I am using wireshark 2.6. I can confirm that col_set*() is not inside a condition. The dissector has been implemented using tap so perhaps tap_listener is overwriting it?

MSK's avatar MSK (2018-06-21 02:26:32 +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