Ask Your Question

do_more's profile - activity

2018-12-02 18:14:44 +0000 marked best answer Setting a field optional when registering the header? (possible?)

I am a complete newbie when it comes to Wireshark and know just some basics of networking. This is my first time trying to make a dissector and I am using C++ to make the dissector. I have a protocol that has a large number of messages with unique element which tells me what kind of message it is, in the header. But, there are two formats for the header in the spec, one has 4 values while the other has 3. The 3 values are common between them. Is there any way I can set the header value to be optional? (and if I do set it optional, how would wireshark know is it is present or not?) If there is no way to do that, what would be a good way of making a dissector that meets the aforementioned requirements?

2018-12-02 18:14:44 +0000 received badge  Scholar (source)
2018-12-02 04:56:39 +0000 commented answer Setting a field optional when registering the header? (possible?)

Gotcha. I also see there is a method to that goes like proto_tree_add_subtree. I tried finding a good explaination for t

2018-11-27 05:24:14 +0000 commented answer Setting a field optional when registering the header? (possible?)

Okay. So, from what I understand- 1) Register all fields in the header for all the types of header. 2) Dissect only th

2018-11-27 05:23:42 +0000 commented answer Setting a field optional when registering the header? (possible?)

Okay. So, from what I understand- 1) Register all fields in the header for all the types of header. 2) Dissect only th

2018-11-26 00:07:59 +0000 commented answer Setting a field optional when registering the header? (possible?)

Thank you so much Graham for the answer. Although I have a question on the proto_tree_add_item thing. I have to register

2018-11-26 00:05:02 +0000 commented question Setting a field optional when registering the header? (possible?)

Hi Harris, I have a field which says which type of message I have and from the message I know what it's header looks lik

2018-11-21 20:00:56 +0000 edited question Setting a field optional when registering the header? (possible?)

Setting a field optional when registering the header? (possible?) I am a complete newbie when it comes to Wireshark and

2018-11-21 20:00:54 +0000 edited question Setting a field optional when registering the header? (possible?)

Setting a field optional when registering the header. I am a complete newbie when it comes to Wireshark and know just so

2018-11-21 20:00:30 +0000 received badge  Editor (source)
2018-11-21 20:00:30 +0000 edited question Setting a field optional when registering the header? (possible?)

Setting a field optional when registering the header. I am a complete newbie when it comes to Wireshark and know just so

2018-11-21 19:59:37 +0000 asked a question Setting a field optional when registering the header? (possible?)

Setting a field optional when registering the header. I am a complete newbie when it comes to Wireshark and know just so