aboutsummaryrefslogtreecommitdiffstats
path: root/packet-nlm.c
AgeCommit message (Collapse)AuthorFilesLines
2000-08-14Reversed the latest changes for protocol enable/disable in RPC sub-dissectors.girlich1-16/+1
The RPC layer itself handles all this stuff. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2271 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-13Add the "Edit:Protocols..." feature which currently only implementsdeniel1-1/+16
the following: It is now possible to enable/disable a particular protocol decoding (i.e. the protocol dissector is void or not). When a protocol is disabled, it is displayed as Data and of course, all linked sub-protocols are disabled as well. Disabling a protocol could be interesting: - in case of buggy dissectors - in case of wrong heuristics - for performance reasons - to decode the data as another protocol (TODO) Currently (if I am not wrong), all dissectors but NFS can be disabled (and dissectors that do not register protocols :-) I do not like the way the RPC sub-dissectors are disabled (in the sub-dissectors) since this could be done in the RPC dissector itself, knowing the sub-protocol hfinfo entry (this is why, I've not modified the NFS one yet). Two functions are added in proto.c : gboolean proto_is_protocol_enabled(int n); void proto_set_decoding(int n, gboolean enabled); and two MACROs which can be used in dissectors: OLD_CHECK_DISPLAY_AS_DATA(index, pd, offset, fd, tree) CHECK_DISPLAY_AS_DATA(index, tvb, pinfo, tree) See also the XXX in proto_dlg.c and proto.c around the new functions. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2267 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-08NLM v1 dissector filled with some actual dissectors.girlich1-18/+252
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2226 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-02All 4 protocol versions included (as templates but not as decodings).girlich1-23/+95
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2195 f5534014-38df-0310-8fa8-9805f1628bb7
2000-04-04Use the new split between protocol registration and protocol handoffguy1-3/+5
registration routines to get rid of the special handling of ONC RPC protocols - dissectors for ONC RPC-based protocols should register their protocol, fields, and ETT values in a protocol registration routine, and register themselves with the ONC RPC dissector in their protocol handoff routine, so that the latter is done after the ONC RPC dissector's protocol registration routine is called, so that the data structures needed when dissectors for ONC RPC protocols register themselves with the ONC RPC dissector have been initialized. Get rid of "init_dissect_rpc()", which initializes said data structures; do that in "proto_register_rpc()" instead. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1789 f5534014-38df-0310-8fa8-9805f1628bb7
2000-01-07Fix Gerald's e-mail address.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1437 f5534014-38df-0310-8fa8-9805f1628bb7
1999-11-16Replace the ETT_ "enum" members, declared in "packet.h", withguy1-2/+8
dynamically-assigned "ett_" integer values, assigned by "proto_register_subtree_array()"; this: obviates the need to update "packet.h" whenever you add a new subtree type - you only have to add a call to "proto_register_subtree_array()" to a "register" routine and an array of pointers to "ett_", if they're not already there, and add a pointer to the new "ett_" variable to the array, if they are there; would allow run-time-loaded dissectors to allocate subtree types when they're loaded. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1043 f5534014-38df-0310-8fa8-9805f1628bb7
1999-11-15Fixed rpc dissector to upcase program name.nneul1-2/+2
Fixed nfs and nlm to use a lowercase protocol name so filtering will work. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1035 f5534014-38df-0310-8fa8-9805f1628bb7
1999-11-15Uwe Girlich's patches for nfs,mount,portmap and addition of nlm.nneul1-0/+85
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1034 f5534014-38df-0310-8fa8-9805f1628bb7