aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtp.c
Commit message (Collapse)AuthorAgeFilesLines
* Update Andreas Sikkema's e-mail address.Guy Harris2004-02-141-2/+2
| | | | svn path=/trunk/; revision=10065
* Add to the _rtp_info structure a "info_all_data_present" boolean, whichGuy Harris2004-01-311-16/+40
| | | | | | | | | | | | | | | | | is TRUE if all the RTP raw data is present in the tvbuff and FALSE otherwise. If it's not all present, also set "info_data_len" to 0 and "info_data" to NULL. In the RTP Analysis "Save Payload..." operation, check the "info_all_data_present" flag and fail if it's not set, and use "rtpinfo->info_data" and "rtpinfo->info_payload_offset" to get at the payload, rather than using "cfile.pd", as the latter doesn't necessarily refer to the current frame data. Note that the RTP Streams save operation should also check the "info_all_data_present" flag. svn path=/trunk/; revision=9920
* From Lars Roland:Guy Harris2003-11-201-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - added a pointer to raw rtp data to _rtp_info that can be used by taps; - RTP packets are passed to the tap queue only if they are not error packets (so that you don't need to filter out ICMP packets) - use that pointer in rtp_stream, so it handles packets with padding, and should handle RTP packets fragmented across lower-level packets - moved rtp_stream from tap sources to normal files (prevents on-start-up registration of the rtp_stream tap listener) - rtp_stream tap gets registered/unregistered with the "RTP Streams" dialog box i.e. the tap is registered as long as the dialog box is open. Alternatively, it is de-/registered on demand if RTP Analysis is called directly on a packet. - rtp_stream tap listener no longer uses a filter in dissection ` and does not need to have a proto tree being built. (performance increase) - fixed: RTP Streams list will get updated in real time if the dialog box is open while a redissection takes place. svn path=/trunk/; revision=9051
* From Martin Mathieson: display the bitfields forGuy Harris2003-11-091-26/+26
| | | | | | | - the first 2 bytes of RTP headers - the first byte of RTCP report. svn path=/trunk/; revision=8923
* Add a dissector table for RTP payload types, and have dissectorsGuy Harris2003-08-231-67/+11
| | | | | | | | register themselves in that table rather than exporting their dissectors by name and having the RTP dissector know about particular dissectors for particular payload types. svn path=/trunk/; revision=8215
* From Niklas OgrenRonnie Sahlberg2003-08-231-1/+9
| | | | | | New Protocol: H.263 called and used by the RTP dissector svn path=/trunk/; revision=8211
* From Miha Jemec: clean up and simplify the RTP dissector and tap code.Guy Harris2003-05-201-102/+113
| | | | svn path=/trunk/; revision=7701
* From Miha Jemec :Ronnie Sahlberg2003-03-061-2/+18
| | | | | | | Functionality to reassemble a RTP stream and save it as a file. Support for G.711 coded svn path=/trunk/; revision=7297
* Add some additional payload types, put in a URL for the IANA page withGuy Harris2003-02-281-27/+37
| | | | | | | | RTP parameters (including payload types), put in comments giving citations for the payload types, and improve the descriptions of some payload types. svn path=/trunk/; revision=7223
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-149/+149
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
* Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer2002-08-021-9/+1
| | | | | | | | equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
* Don't pass "tvb_reported_length_remaining(tvb, offset)" as the fourthGuy Harris2002-05-301-2/+4
| | | | | | | argument to "tvb_new_subset()" - just use -1 if the subset tvbuff is to run to the end of the parent tvbuff. svn path=/trunk/; revision=5597
* Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inGuy Harris2002-01-241-3/+3
| | | | | | | | | | | | arguments to "proto_tree_add_text()", and to "proto_tree_add_XXX()" calls that add FT_NONE or FT_PROTO items to the protocol tree, with -1. Replace some calls to "tvb_length()" or "tvb_length_remaining()" with calls to "tvb_reported_length()" and "tvb_reported_length_remaining()", as those give the actual length of the data in the packet, not just the data that happened to be captured. svn path=/trunk/; revision=4605
* Include files from the "epan" directory and subdirectories thereof withGuy Harris2002-01-211-3/+3
| | | | | | | | | | | | | "epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
* Move the pointer to the "column_info" structure in the "frame_data"Guy Harris2001-12-101-9/+9
| | | | | | | | | | | | | | | structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. svn path=/trunk/; revision=4370
* Get rid of the lists of conversation dissectors; instead, have aGuy Harris2001-12-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dissector table contain both a hash table, to use to look up port numbers to find a dissector, and a list of all dissectors that *could* be assigned to ports in that hash table, to be used by user interface code. Make the "Decode As" dialog box code use that. Also make it *not* let you choose whether to set the dissector for both the UDP and TCP versions of a port; some protocols run only atop TCP, some run only atop UDP, and even those that can run atop both may have different dissector handles to use over TCP and UDP, so handling a single merged list would be a mess. (If the user is setting the dissector for a TCP port, only those protocols that Ethereal can handle over TCP should be listed; if the user is setting the dissector for a UDP port, only those protocols that Ethereal can handle over TCP should be listed; if the user is setting a dissector for both, only those protocols that Ethereal can handle over *both* TCP *and* UDP should be listed, *and* there needs to be a way to let the "Decode As" code get both the TCP handle *and* the UDP handle and use the right ones. If somebody really wants that, they need to implement all of the above if they want the code to be correct.) Fix the code that handles setting the dissection for the IP protocol number to correctly update the lists of protocols being dissected as TCP and as UDP; the code before this change wasn't updating the single such list to add new protocols. svn path=/trunk/; revision=4311
* Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris2001-12-031-2/+5
| | | | | | | | take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. svn path=/trunk/; revision=4308
* Change "conversation_set_dissector()" to take a dissector handle, ratherGuy Harris2001-11-271-10/+8
| | | | | | | | | | | | | | | | | | | | | than a pointer to a dissector function, as an argument. This means that the conversation dissector is called through "call_dissector()", so the dissector itself doesn't have to worry about checking whether the protocol is enabled or setting "pinfo->current_proto", so get rid of the code that does that in conversation dissectors. Also, make the conversation dissectors static. Get rid of some direct calls to dissectors; replace them with calls through handles, and, again, get rid of code to check whether a protocol is enabled and set "pinfo->current_proto" where that code isn't needed. Make those dissectors static if they aren't already static. Add a routine "create_dissector_handle()" to create a dissector handle without registering it by name, if the dissector isn't used outside the module in which it's defined. svn path=/trunk/; revision=4281
* Switched from using CHECK_DISPLAY_AS_DATA to using CHECK_DISPLAY_AS_XEd Warnicke2001-11-261-2/+2
| | | | | | | which also takes a handle as an argument and thus doesn't call dissect_data directly. svn path=/trunk/; revision=4270
* Moved from using dissect_data() to using call_dissector()Ed Warnicke2001-11-261-2/+4
| | | | svn path=/trunk/; revision=4269
* From Jason Lango:Guy Harris2001-09-081-1/+3
| | | | | | | Clean up RTSP Transport parsing and sub-conversation code. Dissect RTP/MP4 (and other RTP/xxx) as RTP/AVP (for now). svn path=/trunk/; revision=3912
* Instead of having a single datum attached to a conversation, have a listGuy Harris2001-09-031-15/+20
| | | | | | | | | | | of protocol-id-plus-datum pairs, so that multiple protocols can attach information to the same conversation. Dissectors that attach information to a conversation should not assume that if they find a conversation it has one of its data attached to it; the conversation might've been created by another dissector. svn path=/trunk/; revision=3901
* Convert a bunch of "proto_tree_add_bytes(tree, hf, tvb, offset, length,Guy Harris2001-07-161-2/+2
| | | | | | | | | | tvb_get_ptr(tvb, offset, length))" calls to "proto_tree_add_item()" calls. Do the same, in "packet-iscsi.c" and "packet-mrdisc.c", for "proto_tree_add_uint()" and "proto_tree_add_boolean()" calls. svn path=/trunk/; revision=3726
* 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