aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ypserv.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed many senseless pinfo parameters in RPC dissection and the layers above.Uwe Girlich2002-04-031-50/+50
| | | | svn path=/trunk/; revision=5090
* Fix a bunch of bits of code that used "tvb_get_ntohl()" to fetch IPGuy Harris2002-04-021-11/+3
| | | | | | | addresses and then tried to compensate for that error using "htonl()" (or didn't bother compensating, in some cases). svn path=/trunk/; revision=5082
* Sun's "yp.x" appears to lie when it claims that the argument to a FIRSTGuy Harris2002-02-201-6/+25
| | | | | | | | | | | call is a "ypreq_key"; the argument appears to be a "ypreq_nokey" instead. The response to an ALL call isn't a single item, it's a sequence of items - all but the last item has the "more" field true, the last has it false. Show all the items. svn path=/trunk/; revision=4762
* When creating an subtree with variable-length items under it, use -1 asGuy Harris2002-02-021-11/+15
| | | | | | | the initial length, and set the length at the end, rather than constructing the length from "tvb_length_remaining()". svn path=/trunk/; revision=4673
* From Ronnie Sahlberg: initial NDMPv3 support, and an update to hisGuy Harris2001-12-231-2/+2
| | | | | | e-mail address. svn path=/trunk/; revision=4444
* From Joerg Mayer: explicitly fill in all members of aGuy Harris2001-06-181-15/+15
| | | | | | | "header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
* There are no more old-style (non-tvbuffified) ONC RPC dissectors, so getGuy Harris2001-05-301-38/+38
| | | | | | | | | rid of support for them, and remove the "_tvb" from the end of the names of RPC type dissection routines. Update Gerald's e-mail address. svn path=/trunk/; revision=3477
* YPSERV tvbuffified, and additional dissection added, by Ronnie Sahlberg.Guy Harris2001-03-171-71/+251
| | | | svn path=/trunk/; revision=3142
* Allow dissectors of ONC RPC-based protocols to register themselvesGuy Harris2001-01-281-5/+5
| | | | | | | | | | | | | | | | | | | either with a table of old-style dissectors or a table of tvbuffified dissectors, and have the RPC dissector pass the appropriate arguments to the dissectors. Finish tvbuffifying the NLM dissector, getting rid of the last traces of old-style dissector code. In those routines in the NFS dissector that take new-style arguments (because they're called from the NLM dissector), make them take an offset as an argument, so they don't assume that they're handed a tvbuff starting at the stuff they're supposed to dissect, and make the versions that take old-style arguments construct a tvbuff and call the versions that take new-style arguments. Do the latter with the routines in "packet-rpc.c" as well. svn path=/trunk/; revision=2943
* Fix comments to reflect what a null function pointer in a "vsff" tableGuy Harris2001-01-181-4/+4
| | | | | | | | really means. Make the "XXX_proc" arrays static. svn path=/trunk/; revision=2920
* Have "proto_register_protocol()" build a list of data structures forGuy Harris2001-01-031-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. svn path=/trunk/; revision=2810
* Add routines for adding items to a protocol tree that take arguments ofGuy Harris2000-05-311-4/+4
| | | | | | | | | | | | | | | | | a particular type, rather than taking a varargs list, along the lines of the "proto_tree_add_XXX_format()" routines. Replace most calls to "proto_tree_add_item()" and "proto_tree_add_item_hidden()" with calls to those routines. Rename "proto_tree_add_item()" and "proto_tree_add_item_hidden()" to "proto_tree_add_item_old()" and "proto_tree_add_item_hidden_old()", and add new "proto_tree_add_item()" and "proto_tree_add_item_hidden()" routines that don't take the item to be added as an argument - instead, they fetch the argument from the packet whose tvbuff was handed to them, from the offset handed to them. svn path=/trunk/; revision=2031
* Add tvbuff class.Gilbert Ramirez2000-05-111-4/+4
| | | | | | | | | | | | | | | Add exceptions routines. Convert proto_tree_add_*() routines to require tvbuff_t* argument. Convert all dissectors to pass NULL argument ("NullTVB" macro == NULL) as the tvbuff_t* argument to proto_tree_add_*() routines. dissect_packet() creates a tvbuff_t, wraps the next dissect call in a TRY block, will print "Short Frame" on the proto_tree if a BoundsError exception is caught. The FDDI dissector is converted to use tvbuff's. svn path=/trunk/; revision=1939
* Use the new split between protocol registration and protocol handoffGuy Harris2000-04-041-1/+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. svn path=/trunk/; revision=1789
* Give "dissect_rpc_string()" an extra "char **" argument; if it'sGuy Harris2000-01-221-13/+14
| | | | | | | | | | non-null, it returns through that argument a pointer to the displayed version of the string, otherwise it just frees that string. Use that to put, in the tree item for READDIR and READDIRPLUS reply directory entry items, the file name from the directory entry. svn path=/trunk/; revision=1521
* Fix Gerald's e-mail address.Guy Harris2000-01-071-2/+2
| | | | svn path=/trunk/; revision=1437
* Replace the ETT_ "enum" members, declared in "packet.h", withGuy Harris1999-11-161-3/+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. svn path=/trunk/; revision=1043
* Got rid of dissect_rpc_string routine, renamed dissect_rpc_string_item toNathan Neulinger1999-11-151-13/+13
| | | | | | | | | | | | dissect_rpc_string. Replaced only instance of this routine being called. Added display filtering to rpc dissector. Replaced most instances of proto_tree_add_text with proto_tree_add_item. Added program version and procedure to the program tree in addition to it being in the RPC tree. svn path=/trunk/; revision=1037
* enhancements to ypserv dissectorNathan Neulinger1999-11-121-8/+51
| | | | svn path=/trunk/; revision=1018
* Additions to bootparams, portmap, and ypserv dissectorsNathan Neulinger1999-11-111-28/+141
| | | | svn path=/trunk/; revision=1013
* Changed protocol names to all lowercase. It looks weird in listing though.Nathan Neulinger1999-11-101-2/+2
| | | | | | I'm presuming packet-rpc.c will be fixed soon. svn path=/trunk/; revision=1002
* Added stubs for various RPC routines:Nathan Neulinger1999-11-101-0/+90
portmap ypserv ypxfr ypserv bootparams Stubs currently just map procedure numbers to names. I'll add some more decoding of the actual procedure call/reply contents eventually. svn path=/trunk/; revision=998