aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtp.c
AgeCommit message (Collapse)AuthorFilesLines
2004-06-29From Martin Mathieson:etxrab1-4/+6
packet-rtp.c packet_rtsp.cand packet-rtcp.c ------------------------------------------ Make sure that the RTP RTSP and RTCP dissectors show the setup frame corresponding to the destination address git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11270 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-15From Thomas Anders: Navigating from RTP/RTCP packets to setup where it was ↵etxrab1-26/+188
set up git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11154 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-12From Ainsley Pereira: add a text description PT_CN_OLD.guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11144 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-01Don't define data variables in header files included by more than oneguy1-2/+31
file - that keeps the variable from being shared, and also produces compiler warnings if the variable isn't used by all the files that include the header in question. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11067 f5534014-38df-0310-8fa8-9805f1628bb7
2004-06-01From Thomas Anders dissects the RTP Payload Type (if media protocol is RTP/AVP)etxrab1-31/+2
with its descriptive name rather than the raw value string, much like packet-rtp.c does already. To avoid duplicate definitions, the existing rtp_payload_type_vals[] definition is moved from packet-rtp.c and gtk/rtp_stream_dlg.c to rtp_pt.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11060 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-14Update Andreas Sikkema's e-mail address.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10065 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-31Add to the _rtp_info structure a "info_all_data_present" boolean, whichguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9920 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-20From Lars Roland:guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9051 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-09From Martin Mathieson: display the bitfields forguy1-26/+26
- the first 2 bytes of RTP headers - the first byte of RTCP report. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8923 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-23Add a dissector table for RTP payload types, and have dissectorsguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8215 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-23From Niklas Ogrensahlberg1-1/+9
New Protocol: H.263 called and used by the RTP dissector git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8211 f5534014-38df-0310-8fa8-9805f1628bb7
2003-05-20From Miha Jemec: clean up and simplify the RTP dissector and tap code.guy1-102/+113
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7701 f5534014-38df-0310-8fa8-9805f1628bb7
2003-03-06From Miha Jemec :sahlberg1-2/+18
Functionality to reassemble a RTP stream and save it as a file. Support for G.711 coded git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7297 f5534014-38df-0310-8fa8-9805f1628bb7
2003-02-28Add some additional payload types, put in a URL for the IANA page withguy1-27/+37
RTP parameters (including payload types), put in comments giving citations for the payload types, and improve the descriptions of some payload types. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7223 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-149/+149
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6117 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hjmayer1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-30Don't pass "tvb_reported_length_remaining(tvb, offset)" as the fourthguy1-2/+4
argument to "tvb_new_subset()" - just use -1 if the subset tvbuff is to run to the end of the parent tvbuff. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5597 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-24Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4605 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-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/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4586 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4370 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-03Get rid of the lists of conversation dissectors; instead, have aguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4311 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4308 f5534014-38df-0310-8fa8-9805f1628bb7
2001-11-27Change "conversation_set_dissector()" to take a dissector handle, ratherguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4281 f5534014-38df-0310-8fa8-9805f1628bb7
2001-11-26Switched from using CHECK_DISPLAY_AS_DATA to using CHECK_DISPLAY_AS_Xhagbard1-2/+2
which also takes a handle as an argument and thus doesn't call dissect_data directly. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4270 f5534014-38df-0310-8fa8-9805f1628bb7
2001-11-26Moved from using dissect_data() to using call_dissector()hagbard1-2/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4269 f5534014-38df-0310-8fa8-9805f1628bb7
2001-09-08From Jason Lango:guy1-1/+3
Clean up RTSP Transport parsing and sub-conversation code. Dissect RTP/MP4 (and other RTP/xxx) as RTP/AVP (for now). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3912 f5534014-38df-0310-8fa8-9805f1628bb7
2001-09-03Instead of having a single datum attached to a conversation, have a listguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3901 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-16Convert a bunch of "proto_tree_add_bytes(tree, hf, tvb, offset, length,guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3726 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-03Use the "pinfo" argument, rather than the global "pi", to refer to theguy1-5/+5
packet information in tvbuffified dissectors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3645 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-18From Joerg Mayer: explicitly fill in all members of aguy1-17/+17
"header_field_info" structure, including the ones that are later set by the routines to register fields. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3561 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-15Clean up the handling of RTP padding.guy1-28/+73
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3550 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-14Bug fix from Francisco Javier Cabello.guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3549 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-14Set the reported length of the tvbuff we hand to the MPEG1 dissector.guy1-3/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3545 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-14RFC 2250 MPEG1 support, from Francisco Javier Cabello.guy1-2/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3544 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-14If we see an RTP packet for a version of the protocol other than versionguy1-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.... git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3541 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-12Give a number of files RCS IDs.guy1-1/+2
Give "proto_hier_stats.h" a standard header. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3540 f5534014-38df-0310-8fa8-9805f1628bb7
2001-05-27Call the H.261 dissector through a handle.guy1-11/+24
Set the reported length of the tvbuff we hand to the H.261 dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3464 f5534014-38df-0310-8fa8-9805f1628bb7
2001-02-07Add in the various payload type definitions from RFC 1890.guy1-17/+46
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2997 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-09Add an additional "protocol index" argument to "{old_}dissector_add()",guy1-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....) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2849 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-09Add tables of "conversation" dissectors, which are associated withguy1-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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2848 f5534014-38df-0310-8fa8-9805f1628bb7
2001-01-03Have "proto_register_protocol()" build a list of data structures forguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2810 f5534014-38df-0310-8fa8-9805f1628bb7
2000-11-19For each column, have both a buffer into which strings for that columnguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2670 f5534014-38df-0310-8fa8-9805f1628bb7
2000-11-05Make the RTCP, RTP, WSP, and WTP dissectors check whether theirguy1-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". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2568 f5534014-38df-0310-8fa8-9805f1628bb7
2000-10-21Support for conversations with "wildcard" destination addresses, fromguy1-4/+7
Jeff Foster. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2523 f5534014-38df-0310-8fa8-9805f1628bb7
2000-10-19Andreas Sikkema's new H.261 and TPKT dissectors, replacement RTCP andguy1-153/+555
RTP dissectors, and changes to the Q.931 dissector for use with H.323. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2511 f5534014-38df-0310-8fa8-9805f1628bb7
2000-08-13Add the "Edit:Protocols..." feature which currently only implementsdeniel1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2267 f5534014-38df-0310-8fa8-9805f1628bb7
2000-05-31Add routines for adding items to a protocol tree that take arguments ofguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2031 f5534014-38df-0310-8fa8-9805f1628bb7
2000-05-11Add tvbuff class.gram1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1939 f5534014-38df-0310-8fa8-9805f1628bb7
2000-05-09Change from Jason Lango to put timestamps in the RTP summary column.guy1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1929 f5534014-38df-0310-8fa8-9805f1628bb7
2000-04-21Support for RTCP and RTP, from Jason Lango.guy1-0/+215
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1885 f5534014-38df-0310-8fa8-9805f1628bb7