Ask Your Question
0

How ProtoField name are displayed ?

asked 2019-06-13 07:07:02 +0000

Harvey gravatar image

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" ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-06-13 14:54:01 +0000

Pascal Quantin gravatar image

updated 2019-06-13 16:51:14 +0000

grahamb gravatar image

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.

edit flag offensive delete link more

Comments

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

Harvey gravatar imageHarvey ( 2019-06-14 11:09:48 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-06-13 07:07:02 +0000

Seen: 480 times

Last updated: Jun 13 '19