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

How ProtoField name are displayed ?

Hello, I made some definition :

frame_type = ProtoField.int16("TGIP.frame_type" , "frameType" , base.DEC,families)
…
chunk_count = ProtoField.new("TGIP.chunk_count", "chunkCount", ftypes.UINT32)

When it is displayed : ![https://www.dropbox.com/s/93bu0pbuan4moja/Capture.JPG?dl=0]

I don't understand why one fied use "frameType" and the other "TGIP.chunk_count" and not "chunkCount" ?

Harvey's avatar
9
Harvey
asked 2019-06-13 07:07:02 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

As documented here, ProtoField.int16 and ProtoField.new have their 2 first parameters swapped. So what you see is normal, you need to modify your ProtoField.new function call.

Pascal Quantin's avatar
5.8k
Pascal Quantin
answered 2019-06-13 14:54:01 +0000
grahamb's avatar
23.8k
grahamb
updated 2019-06-13 16:51:14 +0000
edit flag offensive 0 remove flag delete link

Comments

Thank you very much, it is displayed correctly. I did not pay attention to that.

Harvey's avatar Harvey (2019-06-14 11:09:48 +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