aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/rtp_analysis.c
AgeCommit message (Collapse)AuthorFilesLines
2006-03-09coverity #62Ronnie Sahlberg1-0/+2
potential null dereference svn path=/trunk/; revision=17549
2006-03-07Solving various uninitialized variable warnings.Jaap Keuter1-8/+14
coverity reports 132, 133 and 134 svn path=/trunk/; revision=17501
2006-02-13add missing #include "tempfile.h"Ulf Lamping1-0/+1
svn path=/trunk/; revision=17294
2006-02-11 add an userdata argument to register_stat_cmd_arg() and its callback to use ↵Luis Ontanon1-2/+2
the callback for multiple registrations. svn path=/trunk/; revision=17252
2005-11-12Allow a progress dialog to have "Stop" or "Cancel" as the "terminateGuy Harris1-1/+2
button"; "Stop" should be used for operations that can only be stopped (meaning that what it's already done isn't undone), not cancelled (meaning that whatever it's already done *is* undone), for which "Cancel" is used. Allow the merging process to be cancelled. Clean up indentation. Update some comments. svn path=/trunk/; revision=16489
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-78/+71
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
2005-11-05Packet-amr Register as "AMR" not "amr".Anders Broman1-1/+62
Add Dynamic PT:s mimestring to rtp_info if avalable. Use Dynamic PT:s mime string to find clock rate. svn path=/trunk/; revision=16397
2005-10-29From Jaap KeuterAnders Broman1-18/+44
Improvments to PCMA and PCMU handling- svn path=/trunk/; revision=16356
2005-09-17Move a pile of protocol-related headers from the top-level sourceGuy Harris1-1/+1
directory to the epan directory. Some of them should perhaps ultimately be moved to epan/dissectors, if they pertain only to stuff exported by a particular dissector. Fix Gerald's e-mail address in files we're moving. svn path=/trunk/; revision=15844
2005-09-14Have cf_retap_packets() take an argument that indicates whether toGuy Harris1-3/+3
generate columns; use cf_retap_packets instead of cf_redissect_packets() when running taps (the general flow graph stat uses the Info column). svn path=/trunk/; revision=15793
2005-09-01From Tomer Shani:Anders Broman1-185/+335
Patch which will enable saving payload in raw (binary) format in addition to the existing au format. We have found it very useful to be able to extract the RTP data for use with other tools (especially when dealing with proprietary/uncommon coders). Changes: rtp_packet_save_payload: no longer transforms packet to linear coding, payload is saved in raw format copy_file: will perform the needed transcoding and save to needed format (au or raw) svn path=/trunk/; revision=15648
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-4/+4
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-21As per a suggestion by Ulf Lamping, rename gtk_*.[ch] to gui_*.[ch], soGuy Harris1-1/+1
that it doesn't appear to be part of GTK+. svn path=/trunk/; revision=15501
2005-08-21Add a "register_dfilter_stat()", to register stats that take a displayGuy Harris1-1/+2
filter as an argument on the command line and have a dialog box to enter the display filter through the GUI. Use it for all stats using "gtk_tap_dfilter_dlg_cb()". Add a top-level "stat_menu.h" file to declare "REGISTER_STAT_GROUP_E" for the benefit of the declaration of "register_dfilter_stat()" in the top-level "tap_dfilter_dlg.h". Rename the "stat_menu.h" in the gtk directory to "gtk_stat_menu.h", so as not to have two headers with the same name. Get rid of headers not declaring any functions not being used in the module. svn path=/trunk/; revision=15493
2005-08-20Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals withGuy Harris1-1/+1
implementing the "-z" command-line arguments, it doesn't deal with *all* issues for stats. svn path=/trunk/; revision=15483
2005-08-20- Declare some functions staticJörg Mayer1-2/+2
- Add plugins_dlg.h - Include .h files in their respective .c files - Include .h and remove extern declarations in .c files - set eol-style and keywords on gui_utils.[hc] svn path=/trunk/; revision=15471
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-19Move the stats.[ch] stuff into epan, so plugins can use it.Guy Harris1-1/+1
svn path=/trunk/; revision=15429
2005-08-19Move the APIs for registering and processing "-z" command-line argumentsGuy Harris1-3/+4
and "Statistics" menu items into "stat.h" and "stat.c", to separate them from the core tapping APIs. A tap could conceivably not register as a "-z" command-line argument or "Statistics" menu item, and a stat could conceivably not be implemented as a tap, and dissectors that implement tapping points don't need the UI-related stuff from "stat.h", they just want the tap-related stuff in <epan/tap.h>. svn path=/trunk/; revision=15427
2005-08-10removed tons of MSVC const related warnings.Ulf Lamping1-2/+2
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-) Please note that a lot of these warnings were GTK1.x related only! svn path=/trunk/; revision=15286
2005-08-06Last set of char -> const char trivial warning fixes.Jörg Mayer1-9/+9
svn path=/trunk/; revision=15244
2005-08-06Squelch more const warnings (and fix some memory leaks that found).Guy Harris1-1/+1
_U_-ify some unused arguments, rather than assigning them to themselves. Un-constify one variable that gets assigned a mallocated pointer. Clean up indentation. svn path=/trunk/; revision=15236
2005-07-05From Ainsley Pereira:Anders Broman1-1/+2
If you have an RTP stream in which the first packet is duplicated, and has the marker bit set, then the RTP stream analysis will try to pad silence into a temporary file from 0 upto whatever the RTP timestamp is (which is enough to fill up my disk...). The patch fixes this misbehaviour. svn path=/trunk/; revision=14850
2005-04-27With the speedup changes to epan/proto.c the tree will be faked to only ↵Ronnie Sahlberg1-1/+1
contain those fields actually referenced by a filter. Other nodes will never be created by the tree (sort of auto pruning of the tree). While this greatly spped up the processing performance of ethereal, it makes it "dangerous" for apps that try to walk the tree directly. rtp_analysis did not specify the fields "rtp.version" nor " rtp.ssrc" when dissecting the current packet and as such these fields were no longer part of the tree. This surprised rtp_analysis and a coredump resulted. This change will add the field that we walkt the tree to find to the filter string so that they will be there. svn path=/trunk/; revision=14200
2005-04-16add 12 new toolbar/menu iconsUlf Lamping1-1/+1
add two toolbar toggle buttons add icons to various menu items create new Statistics telephony group and put telephony and alike protocols in it svn path=/trunk/; revision=14098
2005-04-07From Didier:Ronnie Sahlberg1-1/+1
optimization for COLUMNS to make ethereal faster when filtering optimization to make the slow find_protocol_by_id() fast. (idea from Didier, implementation modified by me to be less intrusive) svn path=/trunk/; revision=14026
2005-04-01Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" asGuy Harris1-1/+1
it's used to register a callback for a tap listener invoked if the specified command line argument is specified to the "-z" flag. Move it, along with routines to: look up a "-z" argument in the table constructed by "register_tap_listener_cmd_arg()" and either save the full argument to "-z" and the corresponding listener if it's found or return a failure indication if it isn't; list the available tap listeners; call the "init" routines for the tap listeners saved in the table above; and have Ethereal and Tethereal use those routines. svn path=/trunk/; revision=13993
2005-03-29from Lars RuoffRonnie Sahlberg1-106/+52
rtp analysis optimization svn path=/trunk/; revision=13964
2005-03-21From Lars Ruoff:Guy Harris1-0/+10
when formatting numerical values for CSV lists, save the locale before formatting, set the locale to the "C" locale, and then restore the locale, so that numbers are always formatted with "." as the decimal point; add to the RTP streams window a Copy button that copies all data from the CList to the clipboard as CSV. svn path=/trunk/; revision=13842
2005-03-05When analyzing RTP streams, use the source address as well as the SSRCGerald Combs1-2/+4
to determine forward and reverse directions. This fixes a capture I have which has the same SSRC in the forward and reverse streams. svn path=/trunk/; revision=13599
2005-03-02This is the rest of the patch from Francisco Alcoba.Luis Ontanon1-26/+26
I forgot to check in changes to these files yesterday svn path=/trunk/; revision=13575
2005-02-16from lars ruoff a few extra columns for rtp analysisRonnie Sahlberg1-54/+11
svn path=/trunk/; revision=13410
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-4/+4
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
2005-02-02Get rid of an unused typedef.Guy Harris1-2/+0
svn path=/trunk/; revision=13239
2005-01-01Add casts of OBJECT_SET_DATA() arguments in cases where that'sGuy Harris1-9/+10
appropriate. Use %u, not %d, to convert unsigned values to strings. svn path=/trunk/; revision=12921
2005-01-01As we've made the tap_specific_data field of a tap_packet_t structure aGuy Harris1-10/+16
const pointer (so that we don't get complaints when we make the tap-specific data argument to "tap_queue_packet()" a const pointer, allowing dissectors to hand const data to a tap without a complaint), we should make the tap per-packet function take a const pointer as an argument as well. Do so. In some taps, use _U_, or actually use the argument, rather than sticking in dummy "X = X" assignments to fake use of parameters. (This means that the tap functions in question no longer have the notion that they act on a particular static structure wired in.) svn path=/trunk/; revision=12910
2004-12-31In column sort routines, make the row pointers "const" pointers, as theGuy Harris1-2/+2
arguments passed in corresponding to those pointers are gconstpointers. svn path=/trunk/; revision=12884
2004-12-29Make the tone of the error messages a bit less formal, by usingGuy Harris1-1/+1
contractions. (Safari does, at least when you're trying to open a file to which you don't have read access.) svn path=/trunk/; revision=12852
2004-12-02From Francisco Alcoba: handle inverted time stamps without hanging.Guy Harris1-2/+13
svn path=/trunk/; revision=12656
2004-12-01From Francisco Alcoba:Guy Harris1-78/+122
add IPv6 support; replace "delay" with "delta". svn path=/trunk/; revision=12636
2004-10-17From Alejandro Vaquero: in the RTP analysis code, don't analyze packetsGuy Harris1-0/+11
that have an RTP version other than 2. svn path=/trunk/; revision=12332
2004-10-11From: "Alejandro Vaquero : Add IP bandwidth calculation in RTP analysis (in ↵Anders Broman1-28/+61
Kbps). svn path=/trunk/; revision=12251
2004-10-06From Alejandro Vaquero: make the window bigger so we don't haveGuy Harris1-1/+1
overlapped buttons. svn path=/trunk/; revision=12213
2004-10-05Don't use a terminating entry in the clock_map table, compute the numberGuy Harris1-9/+18
of entries in it and check that many entries - that squelches a compiler warning. From Alejandro Vaquero: get rid of an unused argument to "rtp_packet_add_graph()". svn path=/trunk/; revision=12201
2004-10-01From Alejandro Vaquero:Guy Harris1-27/+1264
RTP graphic analysis; assorted bug fixes; display delay and jitter in milliseconds, and add the percentage of lost packets to the statistics. svn path=/trunk/; revision=12166
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-1/+1
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-07-17From Lars Ruoff: don't hardwire the RTP sampling clock rate to 8000Guy Harris1-1/+54
samples/second, determine it from the payload type for payload types with a known clock rate. svn path=/trunk/; revision=11390
2004-06-30On at least some platforms, a #define of O_BINARY is needed even ifGuy Harris1-1/+6
<fcntl.h> is included, as <fcntl.h> doesn't define it. svn path=/trunk/; revision=11276