Commit Graph

87 Commits

Author SHA1 Message Date
Ulf Lamping 6f43fbb2f0 EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry!
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-24 21:31:56 +00:00
Guy Harris 86ea8b88f3 Add a "time_stat_init()" routine to initialize the fields of a
"timestat_t".

Move "nstime_to_msec()" to "epan/nstime.c", as it has nothing to do with
a "timestat_t".

Use structure assignment when possible.

Fix the "addtime()" macro and use it in "time_stat_update()".

Use "timestat_t"s, and the routines to manipulate them, in the service
response time table code.

svn path=/trunk/; revision=15509
2005-08-22 07:12:20 +00:00
Guy Harris d742f07d5c Export get_timesum().
svn path=/trunk/; revision=15507
2005-08-21 23:24:20 +00:00
Guy Harris 5adc2b6bf1 From Gisle Vanem: export get_timedelta() for use by AFP and SMB taps.
svn path=/trunk/; revision=15464
2005-08-20 10:03:07 +00:00
Guy Harris c58cbeba92 Export AFP's CommandCode_vals for use by the AFP taps.
svn path=/trunk/; revision=15461
2005-08-20 08:15:21 +00:00
Guy Harris 4ddd504bb4 Move the stats.[ch] stuff into epan, so plugins can use it.
svn path=/trunk/; revision=15429
2005-08-19 10:00:14 +00:00
Guy Harris b2807e2ab6 Move the APIs for registering and processing "-z" command-line arguments
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-19 09:29:41 +00:00
Ronnie Sahlberg ac6b2c68c4 add some symbols to libethereal.def
svn path=/trunk/; revision=15305
2005-08-12 09:47:33 +00:00
Gerald Combs 4744466e97 ep_tvb_get_string -> tvb_get_ephemeral_string
svn path=/trunk/; revision=15281
2005-08-10 19:28:08 +00:00
Luis Ontanon c5688891a1 new functions:
ep_tvb_memdup()
ep_alloc0()
ep_strsplit()

add all of the ep_ allocators to libethereal.def

svn path=/trunk/; revision=15100
2005-07-26 18:32:12 +00:00
Anders Broman 3e7c25ba16 Add ep_init_chunk.
svn path=/trunk/; revision=14988
2005-07-22 08:55:06 +00:00
Ronnie Sahlberg 0ca30abe65 change the symbol dissect_ber_CHOICE back into dissect_ber_choice
svn path=/trunk/; revision=14980
2005-07-21 21:12:09 +00:00
Anders Broman 53ff940b13 Remove an unused export
svn path=/trunk/; revision=14939
2005-07-16 19:58:23 +00:00
Tomas Kukosa b9703d0919 export of proto_tree_add_guid...() functions
svn path=/trunk/; revision=14846
2005-07-04 13:13:07 +00:00
Anders Broman 2d264e4314 Add an exported value string
svn path=/trunk/; revision=14839
2005-07-03 21:19:49 +00:00
Ulf Lamping 1c13be2c9c make dissect_CBA_Connection_Data available for plugins
svn path=/trunk/; revision=14816
2005-06-29 08:06:07 +00:00
Anders Broman fa7c5d4aac Missed from previous commit.
svn path=/trunk/; revision=14797
2005-06-27 08:55:39 +00:00
Guy Harris ab797734dd Get rid of the private "my_match_strval()" routine in many dissectors;
add a "match_strval_idx()" routine that does the same thing, and have
"match_strval()" call it.

Make those routines, and "val_to_str()", return a "const" pointer. 
Update dissectors as necessary to squelch compiler warnings produced by
that.

Use "val_to_str()" rather than using "match_strval()" and then, if the
result is null, substituting a specific string.  Clean up some other
"match_strval()"/"val_to_str()" usages.

Add a null pointer check in the NDPS dissector's "attribute_value()"
routine, as it's not clear that "global_attribute_name" won't be null at
that point.

Make some global variables in the AFS4INT dissector local.

Make some routines not used outside the module they're in static.

Make some tables "static const".

Clean up white space.

Fix Gerald's address in some files.

svn path=/trunk/; revision=14786
2005-06-26 19:56:52 +00:00
Ronnie Sahlberg 070e3b0970 update libethereal.def to the new name dissect_ber_CHOICE
svn path=/trunk/; revision=14760
2005-06-26 06:28:53 +00:00
Guy Harris 4a1414164f Add some more reassembly routines.
svn path=/trunk/; revision=14430
2005-05-25 08:25:14 +00:00
Ulf Lamping d2233711d9 add get_manuf_name_if_known (returns NULL if unknown) in addition to get_manuf_name
svn path=/trunk/; revision=14405
2005-05-20 21:44:17 +00:00
Ulf Lamping 48aee19b1a move the profinet related files to a plugin (step by step), to make prototyping and further development easier (at least for me :-)
svn path=/trunk/; revision=14248
2005-04-30 20:52:20 +00:00
Tomas Kukosa 130db4f23c Export of dissect_ber_null() and dissect_per_null()
svn path=/trunk/; revision=14202
2005-04-27 15:19:36 +00:00
Ulf Lamping 6e38159c25 add functions file_exists and file_identical to filesystem.c (coming from file.c)
svn path=/trunk/; revision=14057
2005-04-12 21:12:19 +00:00
Guy Harris 80c1907a36 Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as
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-04-01 09:08:27 +00:00
Anders Broman 5386a90485 From Alejandro Vaquero :
Find attached a patch for SDP sessions to:
- Dissect Dynamic payload types in RTP packets
- Add the dynamic payload type description in RTP packets
- Add RTP dynamic payload types description in the Voip Calls Graph, in the RTP and SDP.

svn path=/trunk/; revision=13936
2005-03-27 20:55:14 +00:00
Gerald Combs 46b36c7fd5 Add "cleanup_dissection".
svn path=/trunk/; revision=13882
2005-03-23 16:23:30 +00:00
Anders Broman c728f022df Export q850_cause_code_vals
svn path=/trunk/; revision=13861
2005-03-22 15:34:51 +00:00
Luis Ontanon 22084517ad Fix the names that were not consistent after the rename.
svn path=/trunk/; revision=13852
2005-03-21 17:51:07 +00:00
Ulf Lamping 58864f0b5a add capture_fr and stats_tree_branch_max_namelen
svn path=/trunk/; revision=13848
2005-03-21 09:56:55 +00:00
Ulf Lamping 0f790bc7cf fix stats_tree defs
svn path=/trunk/; revision=13847
2005-03-21 09:46:39 +00:00
Luis Ontanon 04dcf4e154 Rename all stats_tree extern functions to start with stats_tree_
svn path=/trunk/; revision=13840
2005-03-21 00:55:04 +00:00
Ulf Lamping 6e4536cb74 added two stats_tree functions
svn path=/trunk/; revision=13817
2005-03-20 00:49:57 +00:00
Lars Roland 42dcc095af Add subversion Id to libethereal.def
svn path=/trunk/; revision=13783
2005-03-16 23:22:28 +00:00
Guy Harris 5817da91dc Export another routine that's been asked for at least once.
svn path=/trunk/; revision=13757
2005-03-14 23:41:08 +00:00
Ulf Lamping b8a20994cb add missing dissector_dump_decodes function
svn path=/trunk/; revision=13723
2005-03-11 18:57:12 +00:00
Luis Ontanon e23d044fb8 add format_text() to the plugin API
svn path=/trunk/; revision=13636
2005-03-06 20:43:54 +00:00
Luis Ontanon 693f9f3838 Add register_all_plugin_tap_listeners() to libethereal.def
svn path=/trunk/; revision=13544
2005-02-27 23:43:12 +00:00
Ulf Lamping fed921bff9 add missing reinit_stats_tree symbol, so MSVC can compile again
svn path=/trunk/; revision=13536
2005-02-27 18:27:30 +00:00
Lars Roland b9325102e6 Add another function from epan/stats_tree.c to the list of exported functions in libethereal.def
Finally ethereal can be built again on windows.

svn path=/trunk/; revision=13525
2005-02-25 23:37:14 +00:00
Lars Roland f4f37d0fdf Add another function from epan/stats_tree.c to the list of exported functions in libethereal.def
svn path=/trunk/; revision=13520
2005-02-25 22:06:00 +00:00
Lars Roland 13e4abf336 Add some functions from epan/stats_tree.c to the list of exported functions in libethereal.def
svn path=/trunk/; revision=13519
2005-02-25 21:51:29 +00:00
Guy Harris 76ed6a51e1 There's no "tick_range_with_parent_name()" routine.
svn path=/trunk/; revision=13513
2005-02-25 09:56:04 +00:00
Guy Harris 35bba3db57 Add the stats tree routines.
Alphabetize, in dictionary order (case-insensitive).

svn path=/trunk/; revision=13510
2005-02-25 07:48:51 +00:00
Guy Harris 80cf6f4950 Export the routines to add 64-bit integer values, and export
tvb_ensure_length_remaining().

svn path=/trunk/; revision=13375
2005-02-10 08:10:18 +00:00
Lars Roland 197ceddab1 From Alejandro Vaquero:
h323 taps support up to 5 messages per packet now.

VoIP call analysis:
      - Collect ISUP, SIP and H323 calls from a capture and show them in window with the following info:
      - Start and Stop time of the call
      - Init

svn path=/trunk/; revision=13225
2005-02-01 12:12:35 +00:00
Ulf Lamping 1618e3697b Some dcerpc related stuff needed to write dcerpc plugin
svn path=/trunk/; revision=13163
2005-01-22 21:46:35 +00:00
Tomas Kukosa 5b3af778d6 ASN.1 PER VisibleString support
svn path=/trunk/; revision=13085
2005-01-17 10:09:43 +00:00
Tomas Kukosa e136ee34a4 Add a "hex_str_to_bytes()" routine
svn path=/trunk/; revision=13002
2005-01-10 09:06:07 +00:00
Guy Harris 3ae6f28d3f Add a "tvb_bytes_to_str_punct()" routine, which wraps
"bytes_to_str_punct()", and use it instead of extracting the bytes and
formatting them by hand.

Also, export "bytes_to_str_punct()".

svn path=/trunk/; revision=12879
2004-12-31 00:05:22 +00:00