Commit Graph

29536 Commits

Author SHA1 Message Date
Kovarththanan Rajaratnam b2f70634a7 Align value_string array properly
svn path=/trunk/; revision=30513
2009-10-11 15:03:57 +00:00
Gerald Combs 3c0689cf4d [Automatic manuf and enterprise-numbers update for 2009-10-11]
svn path=/trunk/; revision=30512
2009-10-11 15:03:30 +00:00
Kovarththanan Rajaratnam e6486705f7 Move make-sminmpec.pl to tools directory
svn path=/trunk/; revision=30511
2009-10-11 14:39:14 +00:00
Stig Bjørlykke 782138e1aa Corrected some HF_FIELD values.
svn path=/trunk/; revision=30510
2009-10-11 14:34:33 +00:00
Stig Bjørlykke 0e80b37df3 Change from C++ comments to C comments.
svn path=/trunk/; revision=30509
2009-10-11 14:34:02 +00:00
Stig Bjørlykke f47bd1e8bf Make ett_* values static.
svn path=/trunk/; revision=30508
2009-10-11 14:33:04 +00:00
Stig Bjørlykke e0fbe7624b Make ett_nt_unicode_string static.
svn path=/trunk/; revision=30507
2009-10-11 14:32:36 +00:00
Kovarththanan Rajaratnam 4f2332256c Remove unused variable
svn path=/trunk/; revision=30506
2009-10-11 14:21:50 +00:00
Kovarththanan Rajaratnam f86851262f Switch over to using seasonal memory since the mgcp dissector was using g_mem_chunks in a seasonal fashion (memory was only freed during file open)
svn path=/trunk/; revision=30505
2009-10-11 14:06:56 +00:00
Kovarththanan Rajaratnam f1f6777548 Remove temporary directory on shutdown
svn path=/trunk/; revision=30504
2009-10-11 10:45:48 +00:00
Kovarththanan Rajaratnam ba79395fc5 Add an option to randomize file list order
svn path=/trunk/; revision=30503
2009-10-11 10:39:21 +00:00
Kovarththanan Rajaratnam 1e32410765 Switch over to using seasonal memory instead of g_mem_chunkS which are deprecated
svn path=/trunk/; revision=30502
2009-10-11 10:00:01 +00:00
Kovarththanan Rajaratnam 996e27dbc7 Set INITIAL_NUM_PROTOCOL_HFINFO to a more sensible value, e.g. 1500. Currently it is set to 200 even though we have way more protocols in Wireshark:
$ ./tshark -G protocols | wc -l
1066

svn path=/trunk/; revision=30501
2009-10-11 09:35:34 +00:00
Kovarththanan Rajaratnam ee9ea561d2 As pointed out by Bill [1] we leak some header_field_info structs on shutdown. This change plugs that mem leak.
[1] http://www.wireshark.org/lists/wireshark-dev/200910/msg00074.html

svn path=/trunk/; revision=30500
2009-10-11 09:18:51 +00:00
Kovarththanan Rajaratnam 34e05c76f7 Replace g_malloc + memset with g_new0
svn path=/trunk/; revision=30499
2009-10-11 09:02:04 +00:00
Kovarththanan Rajaratnam ca53b00b7e Set tree_is_expanded to NULL after freeing it
svn path=/trunk/; revision=30498
2009-10-11 08:57:08 +00:00
Kovarththanan Rajaratnam b998cb04de Use the slice allocator if GLIB_CHECK_VERSION > (2,10,0)
svn path=/trunk/; revision=30497
2009-10-11 08:52:34 +00:00
Kovarththanan Rajaratnam cc6d443867 Use G_MEM_ALIGN when we have to determine the amount of padding needed instead of hard coding it to 8 bytes alignment.
Before:

Allocation distribution (sizes include canaries):
size <    32:   454120
size <    64:   401506

After:

Allocation distribution (sizes include canaries):
size <    32:   457281
size <    64:   398345

svn path=/trunk/; revision=30496
2009-10-11 08:20:40 +00:00
Jörg Mayer e00a9ba112 Readd stuff "lost" by previous undo (r30443, r30459)
svn path=/trunk/; revision=30495
2009-10-11 07:32:51 +00:00
Jörg Mayer ec7380a6b1 Creatig static sublibs was not a good idea:
=========================================================================
 "du -s build" with sublibs:
 396868  build
 -----------------------------------
 "du -s build" without sublibs:
 197588  build/
 =========================================================================
 tshark with sublibs:
 -rwxr-xr-x 1 jmayer users 27399706 2009-10-11 08:39 tshark*
 -----------------------------------
 tshark without sublibs:
 -rwxr-xr-x 1 jmayer users  226748 2009-10-11 09:05 tshark*
 =========================================================================

So undo the following patches:

 ------------------------------------------------------------------------
 r30459 | krj | 2009-10-10 07:08:48 +0200 (Sa, 10 Okt 2009) | 1 line
 
 Sort subdirectories alphabetically
 ------------------------------------------------------------------------
 r30458 | krj | 2009-10-10 07:03:36 +0200 (Sa, 10 Okt 2009) | 1 line
 
 Add epan/dissectors/CMakeLists.txt which creates a static dissectors library
 ------------------------------------------------------------------------
 --> readd!! *** r30443 | krj | 2009-10-09 21:43:42 +0200 (Fr, 09 Okt 2009) | 1 line
 
 Rename DISSECTOR_ASM_UTILS to LIBWIRESHARK_ASM_FILES since these files belongs to ep
 an not dissectors
 ------------------------------------------------------------------------
 r30442 | krj | 2009-10-09 21:17:26 +0200 (Fr, 09 Okt 2009) | 1 line
 
 Add epan/ftypes/CMakeLists.txt which creates a static ftypes library
 ------------------------------------------------------------------------
 r30441 | krj | 2009-10-09 21:13:01 +0200 (Fr, 09 Okt 2009) | 1 line
 
 Add epan/dfilter/CMakeLists.txt which creates a static dfilter library
 ------------------------------------------------------------------------
 r30440 | krj | 2009-10-09 21:05:29 +0200 (Fr, 09 Okt 2009) | 1 line
 
 Add epan/crypt/CMakeLists.txt which creates a static crypt library
 ------------------------------------------------------------------------
 r30439 | krj | 2009-10-09 20:22:22 +0200 (Fr, 09 Okt 2009) | 1 line
 
 Add epan/crc/CMakeLists.txt which creates a static crc library
 ------------------------------------------------------------------------

To avoid merge problems, I needed to revert r30443 as well, will readd this
one in my next patch.

svn path=/trunk/; revision=30494
2009-10-11 07:28:26 +00:00
Kovarththanan Rajaratnam 5ea31fa450 Rename emem_canary => emem_canary_init to make it clear that the function initializes the canary
svn path=/trunk/; revision=30493
2009-10-11 07:15:15 +00:00
Kovarththanan Rajaratnam 876f39f5a3 Only check to see if 'free_list' is empty when we've just moved over a chunk to the 'used_list'
svn path=/trunk/; revision=30492
2009-10-11 07:07:05 +00:00
Kovarththanan Rajaratnam 4255bd2e53 Tighten scope of some variables in emem_alloc()
svn path=/trunk/; revision=30491
2009-10-11 06:34:02 +00:00
Kovarththanan Rajaratnam 932f307117 Change EMEM_PACKET_CHUNK_SIZE to (10 * 1024 * 1024) to make it easier to see that we allocate in 10 MB chunks.
svn path=/trunk/; revision=30490
2009-10-11 06:26:24 +00:00
Kovarththanan Rajaratnam 88186e9b5a Annotate with GNUC_FORMAT_CHECK()
svn path=/trunk/; revision=30489
2009-10-11 06:22:55 +00:00
Kovarththanan Rajaratnam c394047159 Use g_strlcpy instead of providing our own string copy implementation
svn path=/trunk/; revision=30488
2009-10-11 06:04:58 +00:00
Kovarththanan Rajaratnam b5ce884cf4 Use memcpy when we already know the length of the string
svn path=/trunk/; revision=30487
2009-10-11 05:53:10 +00:00
Kovarththanan Rajaratnam 539980f441 Remember to create a temporary directory before dissecting
svn path=/trunk/; revision=30486
2009-10-11 05:14:04 +00:00
Kovarththanan Rajaratnam 08e0d21a4b Remove redundant forward declarations
svn path=/trunk/; revision=30485
2009-10-11 04:38:42 +00:00
Kovarththanan Rajaratnam bae07625ce Don't clear INFO column. We do that implicitly when we do a col_add_fstr().
svn path=/trunk/; revision=30484
2009-10-11 04:36:43 +00:00
Kovarththanan Rajaratnam 85181bcea1 Don't use C++ reserved keyword 'class'
svn path=/trunk/; revision=30483
2009-10-11 04:29:06 +00:00
Guy Harris 134b6b0f41 The q931_info argument to q931_calls_packet() is used. Don't mark it as
unused.

svn path=/trunk/; revision=30482
2009-10-10 22:00:07 +00:00
Bill Meier 9f24b1870b Replace use of GMemChunk by se_alloc;
This fixes a major memory leak in the NCP dissector
caused by the fact that "in recent versions of GLib" (>= 2.10 ?)
g_mem_chunk_destroy doesn't actually free up the mem_chunk memory.

Note that there still appears to be one or more smaller
memory leaks somehow associated with NCP dissection.

Example:

A 40M capture file with mostly NCP frames which resulted in a memory
usage increase of about 20M each time the file was reloaded now results 
in a 400K-800K memory usage increase each time the file is reloaded.

(If NCP dissection is disabled, there is minimal memory expansion
each time the file is reloaded).


svn path=/trunk/; revision=30481
2009-10-10 21:13:16 +00:00
Bill Meier 17a2e0b460 Fix a benign no-effect bug;
Use consistent indentation.

svn path=/trunk/; revision=30480
2009-10-10 17:49:28 +00:00
Bill Meier 9ac4174e41 Use consistent indentation
svn path=/trunk/; revision=30479
2009-10-10 16:57:20 +00:00
Kovarththanan Rajaratnam b57e27ef8e ns-cert-ext -> ns_cert_exts to make directory name consistent with filenames
svn path=/trunk/; revision=30478
2009-10-10 14:20:33 +00:00
Kovarththanan Rajaratnam 3d94638c3d Sort subdirectories alphabetically
svn path=/trunk/; revision=30477
2009-10-10 14:03:27 +00:00
Kovarththanan Rajaratnam 19ee815ea4 Regenerate asn1 dissectors (no functionality change)
svn path=/trunk/; revision=30476
2009-10-10 13:39:14 +00:00
Kovarththanan Rajaratnam 871970323c Update configure to reflect new asn1 folder names
svn path=/trunk/; revision=30475
2009-10-10 13:28:25 +00:00
Kovarththanan Rajaratnam 2210a09ce2 Update makefiles to reflect new names
svn path=/trunk/; revision=30474
2009-10-10 13:16:04 +00:00
Kovarththanan Rajaratnam a792248d0b pkixcmp -> cmp to make directory name consistent with filenames
svn path=/trunk/; revision=30473
2009-10-10 13:08:09 +00:00
Kovarththanan Rajaratnam fbe646b949 pkixcrmf -> crmf to make directory name consistent with filenames
svn path=/trunk/; revision=30472
2009-10-10 13:00:21 +00:00
Kovarththanan Rajaratnam e37134ff33 logotype-cert-extn -> logotypecertextn to make directory name consistent with filenames
svn path=/trunk/; revision=30471
2009-10-10 12:43:47 +00:00
Kovarththanan Rajaratnam cdcd98e0bb gsmmap -> gsm_map to make directory name consistent with filenames
svn path=/trunk/; revision=30470
2009-10-10 12:37:56 +00:00
Kovarththanan Rajaratnam 48724e961a ansi-tcap -> ansi_tcap to make directory name consistent with filenames
svn path=/trunk/; revision=30469
2009-10-10 12:31:07 +00:00
Guy Harris acf223006c Add req_resp_hdrs_do_reassembly to the list of functions that are
exported by libwireshark, so it's usable by plugins.

svn path=/trunk/; revision=30468
2009-10-10 09:38:37 +00:00
Kovarththanan Rajaratnam 251124a935 Introduce PROTOCOL_NAME variable in makefiles
svn path=/trunk/; revision=30467
2009-10-10 08:33:05 +00:00
Kovarththanan Rajaratnam 1f57b83867 Correct path to pidl
svn path=/trunk/; revision=30466
2009-10-10 08:14:38 +00:00
Kovarththanan Rajaratnam bf2ec50430 Autogenerating epan/dissectors/dcerpc/* now works
svn path=/trunk/; revision=30465
2009-10-10 08:10:28 +00:00
Kovarththanan Rajaratnam 0c8dbe1b49 Only dump to stderr if IDL2WRS_DEBUG is defined
svn path=/trunk/; revision=30464
2009-10-10 08:02:57 +00:00