Answer the question
In order to leave comments, you need to log in
How to make layer 2 dissector wireshark?
I wrote my warshark dissector in C, I wrote it under Linux.
For some reason, it starts parsing the packet only after the ethernet header, but I need to parse the packet starting from the very beginning of the packet. I'm not strong in C at all, but the documentation makes me even more bewildered.
void proto_reg_handoff_ebh(void)
{
static dissector_handle_t ERh_handle;
ERh_handle = create_dissector_handle(dissect_erh, proto_erh);
dissector_add_uint("ethertype", ERH_TYPE, ERh_handle);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question