aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtp.c
Commit message (Collapse)AuthorAgeFilesLines
* Use the "pinfo" argument, rather than the global "pi", to refer to theGuy Harris2001-07-031-5/+5
| | | | | | packet information in tvbuffified dissectors. svn path=/trunk/; revision=3645
* From Joerg Mayer: explicitly fill in all members of aGuy Harris2001-06-181-17/+17
| | | | | | | "header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
* Clean up the handling of RTP padding.Guy Harris2001-06-151-28/+73
| | | | svn path=/trunk/; revision=3550
* Bug fix from Francisco Javier Cabello.Guy Harris2001-06-141-1/+2
| | | | svn path=/trunk/; revision=3549
* Set the reported length of the tvbuff we hand to the MPEG1 dissector.Guy Harris2001-06-141-3/+5
| | | | svn path=/trunk/; revision=3545
* RFC 2250 MPEG1 support, from Francisco Javier Cabello.Guy Harris2001-06-141-2/+9
| | | | svn path=/trunk/; revision=3544
* If we see an RTP packet for a version of the protocol other than versionGuy Harris2001-06-141-10/+54
| | | | | | | | | 2, don't try to dissect any of it other than the version field. Don't try to dissect the RTP data and padding if there's more padding than data.... svn path=/trunk/; revision=3541
* Give a number of files RCS IDs.Guy Harris2001-06-121-1/+2
| | | | | | Give "proto_hier_stats.h" a standard header. svn path=/trunk/; revision=3540
* Call the H.261 dissector through a handle.Guy Harris2001-05-271-11/+24
| | | | | | Set the reported length of the tvbuff we hand to the H.261 dissector. svn path=/trunk/; revision=3464
* Add in the various payload type definitions from RFC 1890.Guy Harris2001-02-071-17/+46
| | | | svn path=/trunk/; revision=2997
* Add an additional "protocol index" argument to "{old_}dissector_add()",Guy Harris2001-01-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | "{old_}heur_dissector_add()", "{old_}conv_dissector_add()", and "register_dissector()", so that an entry in those tables has associated with it the protocol index of the protocol the dissector handles (or -1, if there is no protocol index for it). This is for future use in a number of places. (Arguably, "proto_register_protocol()" should take a dissector pointer as an argument, but 1) it'd have to handle both regular and heuristic dissectors; 2) making it take either a "dissector_t" or a union of that and a "heur_dissector_t" introduces some painful header-file interdependencies so I'm punting on that for now. As with other Ethereal internal APIs, these APIs are subject to change in the future, at least until Ethereal 1.0 comes out....) svn path=/trunk/; revision=2849
* Add tables of "conversation" dissectors, which are associated withGuy Harris2001-01-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | particular protocols, and which keep track of all dissectors that could be associated with conversations using those particular protocols - for example, the RTP and RTCP dissectors could be assigned to UDP conversations. This is for future use with UI features allowing the dissector for a given conversation to be set from the UI, to allow 1) conversations between two ports, both of which have dissectors associated with them, that have been given to the wrong dissector to be given to the right dissector; 2) conversations between two ports, neither of which have dissectors associated with them, to be given to a dissector (RTP and RTCP, for example, typically run on random ports, and if you don't have, in a capture, traffic that would say "OK, traffic between these two hosts and ports will be RTP traffic", you may have to tell Ethereal explicitly what protocol the conversation is). svn path=/trunk/; revision=2848
* Have "proto_register_protocol()" build a list of data structures forGuy Harris2001-01-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* For each column, have both a buffer into which strings for that columnGuy Harris2000-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | can be put, and a pointer to the string for the column, which might or might not point to that buffer. Add a routine "col_set_str()", which sets the string for the column to the string passed to it as an argument; it should only be handed a static string (a string constant would be ideal). It doesn't do any copying, so it's faster than "col_add_str()". Make the routines that append to columns check whether the pointer to the string for the column points to the buffer for the column and, if not, copy the string for the column to the buffer for the column so that you can append to it (so you can use "col_set_str()" and then use "col_append_str()" or "col_append_fstr()"). Convert a bunch of "col_add_str()" calls that take a string constant as an argument to "col_set_str()" calls. Convert some "col_add_fstr()" calls that take a string constant as the only argument - i.e., the format string doesn't have any "%" slots into which to put strings for subsequent arguments to "col_set_str()" calls (those calls are just like "col_add_str()" calls). Replace an END_OF_FRAME reference in a tvbuffified dissector with a "tvb_length(tvb)" call. svn path=/trunk/; revision=2670
* Make the RTCP, RTP, WSP, and WTP dissectors check whether theirGuy Harris2000-11-051-4/+12
| | | | | | | | | | | protocols have been disabled. Get rid of the "no tvbuff" dissectors for WSP and WTP - they're not used (and shouldn't ever be used). Make "dissect_wtp()" static, as it's not used outside "packet-wtp.c". svn path=/trunk/; revision=2568
* Support for conversations with "wildcard" destination addresses, fromGuy Harris2000-10-211-4/+7
| | | | | | Jeff Foster. svn path=/trunk/; revision=2523
* Andreas Sikkema's new H.261 and TPKT dissectors, replacement RTCP andGuy Harris2000-10-191-153/+555
| | | | | | RTP dissectors, and changes to the Q.931 dissector for use with H.323. svn path=/trunk/; revision=2511
* Add the "Edit:Protocols..." feature which currently only implementsLaurent Deniel2000-08-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. svn path=/trunk/; revision=2267
* Add routines for adding items to a protocol tree that take arguments ofGuy Harris2000-05-311-2/+2
| | | | | | | | | | | | | | | | | 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-17/+17
| | | | | | | | | | | | | | | 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
* Change from Jason Lango to put timestamps in the RTP summary column.Guy Harris2000-05-091-5/+5
| | | | svn path=/trunk/; revision=1929
* Support for RTCP and RTP, from Jason Lango.Guy Harris2000-04-211-0/+215
svn path=/trunk/; revision=1885