Wireshark mailing list archives

why cannot I use heur_dissector_add("ip", .....


From: John x <xiachangqin66 () hotmail com>
Date: Sun, 26 Jun 2011 13:26:47 +0800


the following is an example from README.heuristic

-------------------------------
void
proto_reg_handoff_PROTOABBREV(void)
{
    static int PROTOABBREV_inited = FALSE;
 
    if ( !PROTOABBREV_inited )
    {
        /* register as heuristic dissector for both TCP and UDP */
        heur_dissector_add("tcp", dissect_PROTOABBREV, proto_PROTOABBREV);
        heur_dissector_add("udp", dissect_PROTOABBREV, proto_PROTOABBREV);
    }
}

----------------------------------

Why cannot I use ip, like: heur_dissector_add("ip", dissect_PROTOABBREV, proto_PROTOABBREV);   ?


Thanks
John
                                          
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: