Commit Graph

14742 Commits

Author SHA1 Message Date
Ulf Lamping 10f6e3ba94 as the buildbot is updated now:
using the /SOLID switch in SetCompressor again, making NSIS at least 2.07 a requirement

svn path=/trunk/; revision=15052
2005-07-25 07:42:06 +00:00
Ulf Lamping 4d6daa907c packet-http.c(484) : warning C4101: 'i' : unreferenced local variable
packet-http.c(486) : warning C4101: 'si' : unreferenced local variable
packet-kink.c(628) : warning C4101: 'quick_mode_payloads_length' : unreferenced local variable

svn path=/trunk/; revision=15051
2005-07-25 01:22:03 +00:00
Guy Harris 72560a2e04 Fix indentation.
svn path=/trunk/; revision=15050
2005-07-24 22:01:14 +00:00
Ulf Lamping 0ef752136a make the default to not use the /SOLID switch for SetCompressor, so buildbot is working again
svn path=/trunk/; revision=15049
2005-07-24 21:25:29 +00:00
Ulf Lamping 156e034ef9 include pinfo_stats_tree.c in the build process, so MSVC compiles again
don't use extern before a function body, that don't make sense

svn path=/trunk/; revision=15048
2005-07-24 21:23:10 +00:00
Gerald Combs 7743ecf3c9 Break out of another infinite loop. Fixes bug 293.
svn path=/trunk/; revision=15047
2005-07-24 21:02:40 +00:00
Guy Harris 255b302a82 Fix some typoes.
Call "dissect_attribute_value_pairs()" regardless of whether we're
building a protocol tree, so the EAP subdissector is always called.

"dissect_attribute_value_pairs()" is only called when the length of AVPs
in the packet is non-zero; don't bother checking for a zero length.

Don't put two items in for each AVP - one is sufficient.

Add some more length checks when processing AVPs.  Don't require AVPs to
be at least 3 bytes long - they might have just a type and length; let
an exception be thrown if that's a problem.

Don't require that the entire AVP be available in the tvbuff before
processing it; let an exception be thrown as we're processing the AVP if
we don't have all the data, so the stuff before the end is processed.

Give the tvbuff for the AVP data a length that reflects the length of
data left in the tvbuff, so that the appropriate exception is thrown if
the packet was cut short by a snapshot length.

Don't have a fixed-length buffer for reassembled EAP messages; grow it
as necessary.

Don't special-case the initial part of the processing of EAP messages;
put in the standard length item, as well as, for fragments, an item for
the fragment data.

Check for non-consecutive EAP-Message attributes.

Set the columns non-writable while dissecting the EAP message, so
Protocol and Info reflect the RADIUS packet.

Doing the reassembly by gluing together all the consecutive EAP-Message
attributes means we don't need help from the EAP dissector, returning
the total length of the EAP message.  Get rid of the no-longer-needed
eap_fragment dissector; just call the regular EAP dissector.

svn path=/trunk/; revision=15046
2005-07-24 20:39:19 +00:00
Michael Tüxen 200571c143 Fix a typo.
svn path=/trunk/; revision=15044
2005-07-24 19:58:05 +00:00
Guy Harris 554f620001 Constify to remove a bunch of warnings. Add some casts to squelch
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst
warnings.

In the TACACS dissector, clean up the variables used in option parsing
to avoid some const-to-nonconst warnings.

Clean up some white space.

svn path=/trunk/; revision=15043
2005-07-24 19:01:28 +00:00
Guy Harris 72c01a62f8 "fragment_add_common()" isn't used outside this file - make it static.
Move to "show_fragment()" the code to append the fragment information to
the top-level item.

Fix indentation.

svn path=/trunk/; revision=15042
2005-07-24 17:48:10 +00:00
Ulf Lamping bb847366a3 from Graeme Hewson: "Fixes for ethereal config files"
svn path=/trunk/; revision=15041
2005-07-24 14:35:12 +00:00
Ulf Lamping 9eedc98db7 Update to zlib 1.2.3
svn path=/trunk/; revision=15040
2005-07-24 14:16:54 +00:00
Ulf Lamping d043a722ee Update to zlib 1.2.3
svn path=/trunk/; revision=15039
2005-07-24 13:54:19 +00:00
Jörg Mayer cb2d67351c Lars Ruoff:
Use correct offsets to decode bssid in all cases:
        Depending on the packet type the header contains
        up to 4 addresses but may contain less. The position/
        definition of the bssid changes as a result of this.

svn path=/trunk/; revision=15038
2005-07-24 11:35:41 +00:00
Guy Harris a58c119084 Register the port range preferences as such, rather than doing our own
range implementation.

Make string preferences "const", to squelch compiler warnings, and make
other variables and arguments "const" to match.

Port numbers are unsigned; display them as such.

svn path=/trunk/; revision=15037
2005-07-24 11:14:13 +00:00
Luis Ontanon 3c8376dcf8 register the dissector by name
svn path=/trunk/; revision=15036
2005-07-24 10:32:37 +00:00
Guy Harris e4f089af58 Add "pinfo_stats_tree.h" to declare "register_pinfo_stat_trees()", and
include it in "pinfo_stats_tree.c" (which defines it) and
"stats_tree_plugin.c" (which refers to it).

Make all the other routines defined in "pinfo_stats_tree.c" static, as
they're not used outside "pinfo_stats_tree.c".

Get rid of declaration of unused "register_http_stat_trees()".

svn path=/trunk/; revision=15035
2005-07-24 10:32:22 +00:00
Ronnie Sahlberg 699e51ccdd some more ep_tvb_get_string updates
svn path=/trunk/; revision=15034
2005-07-24 04:24:30 +00:00
Luis Ontanon 05c7ac167e Autogenerate the sminmpec.c file from iana's enterprise-numbers file
svn path=/trunk/; revision=15033
2005-07-24 03:36:21 +00:00
Luis Ontanon 411ab7fa9d fix a leak of tap info data by replacing g_strdup with ep_strdup
svn path=/trunk/; revision=15032
2005-07-24 03:05:08 +00:00
Ronnie Sahlberg 9ef6568c56 some more dissectors converted to ep_tvb_get_string
again   at least one obvious memleak was found in the old code



svn path=/trunk/; revision=15031
2005-07-24 03:01:41 +00:00
Luis Ontanon b8a874be21 use ep_alloc instead of statically allocated buffers
svn path=/trunk/; revision=15030
2005-07-24 02:59:17 +00:00
Luis Ontanon 273dc953ea change g_strdup() calls with ep_strdup calls (fixing a significant leakage of tap data)
svn path=/trunk/; revision=15029
2005-07-24 02:56:41 +00:00
Luis Ontanon e9ec2c51aa - change the report_failure dialog for a less painful g_warning
- use ep_alloc for reassemling eap fragments instead of a static buffer
- use ep_strdup_printf() instead of a static buffe to return the cosine's VP/VC AVP label
- add few TODO comments


svn path=/trunk/; revision=15028
2005-07-24 02:53:09 +00:00
Ronnie Sahlberg 835df3a1d2 convert some uses of tvb_get_string() to ep_tvb_get_string()
there was at least one obvious memleak in one of the uses of tvb_get_string()



svn path=/trunk/; revision=15027
2005-07-24 02:43:41 +00:00
Luis Ontanon 910f98eb86 Replace two calls to tvb_get_string with the new ep_tvb_get_string (this fixes a leak I introdduced at the last checkin)
remove the stat_infos PtrArray as we do not need to free our tap data anymore, YEAH!


svn path=/trunk/; revision=15026
2005-07-24 02:43:20 +00:00
Luis Ontanon 378cc8ac46 Remove the isup messages tap as it's been superceeded by the stats_tree one
svn path=/trunk/; revision=15025
2005-07-24 02:12:33 +00:00
Ronnie Sahlberg 0d385f730f add
ep_tvb_get_string
that acts the same as tvb_get_string   but the buffer returned need not be freed.



svn path=/trunk/; revision=15024
2005-07-24 01:56:01 +00:00
Luis Ontanon 37636903bc From Alejandro Vaquero:
fix a crash when graphing packets whose src and dst is the same address


svn path=/trunk/; revision=15023
2005-07-24 01:48:01 +00:00
Luis Ontanon 4f5c0a8cb2 move the stats_tree tap into the http dissector (not anymore in the plugin)
change several calls to g_memdup into ep_strndup, fix the free calls


svn path=/trunk/; revision=15022
2005-07-24 01:42:41 +00:00
Luis Ontanon ec941c4a8c http_stats_tree is moving to a new home (packet-http.c)
svn path=/trunk/; revision=15021
2005-07-24 01:39:04 +00:00
Luis Ontanon 47a4bc1156 remove the old http packet count tap as it has been superceeded by the new stats tree tap
svn path=/trunk/; revision=15020
2005-07-24 01:31:59 +00:00
Luis Ontanon 2803839cba I believe we should use DISSECTOR_ASSERT instead of g_assert.
fix and clean g_strdup_printf()


svn path=/trunk/; revision=15019
2005-07-24 01:21:38 +00:00
Luis Ontanon d9c2273262 add some utility functions that use ep_alloc instead of g_malloc.
ep_memdup
ep_strdup
ep_strndup
ep_strdup_printf


svn path=/trunk/; revision=15018
2005-07-24 00:29:57 +00:00
Ulf Lamping 38f827806a ... I should switch compression back on, the installer would otherwise become a bit large ...
svn path=/trunk/; revision=15017
2005-07-23 20:37:00 +00:00
Ulf Lamping dda9beb85c Installer:
- Installer now includes and installs WinPcap 3.0 (with detection)
- Install Sections are grouped now
- New Seperate page to select additional tasks like: icons, file extensions ...
- New Seperate page for WinPcap detection/installation
- Start WinPcap "NPF" service doesn't require a reboot

Uninstaller:
- New Uninstall sections page (uninstall, settings, plugins, WinPcap)
- If uninstallation selected, plugins will now be completely uninstalled (all versions, not only the current one)
- If selected, uninstallation of WinPcap

svn path=/trunk/; revision=15016
2005-07-23 20:34:43 +00:00
Jörg Mayer 30a8557868 More 'char*' -> 'const char*' changes to fix warnings.
svn path=/trunk/; revision=15015
2005-07-23 11:41:25 +00:00
Jörg Mayer cb4ac62893 'char*' -> 'const char*' to fix warnings
svn path=/trunk/; revision=15014
2005-07-23 08:18:44 +00:00
Jörg Mayer c5ab5374c2 Some more 'char*' -> 'const char*' changes
svn path=/trunk/; revision=15013
2005-07-23 06:53:59 +00:00
Jörg Mayer cd0744efd1 Add includes to fix warnings of type
gencode.c:383: warning: no previous declaration for
                        'dfw_interesting_fields'

svn path=/trunk/; revision=15012
2005-07-23 06:51:57 +00:00
Jörg Mayer fd9291e9c6 Move declaration of sttype_register_* functions from
syntax-tree.c to syntax-tree.h.

This fixes some warning of type
sttype-integer.c:33: warning: no previous declaration for
                                'sttype_register_integer'


svn path=/trunk/; revision=15011
2005-07-23 06:49:07 +00:00
Jörg Mayer fc4a2ddfe0 Move declaration of void ftype_register_* to ftypes-int.h.
This fixes some warnings like
ftype-bytes.c:52: warning: no previous declaration for 'bytes_fvalue_free'


svn path=/trunk/; revision=15010
2005-07-23 06:21:17 +00:00
Jörg Mayer 23486b484e Fix lots of warnings of type:
ftypes.c:257: warning: passing argument 1 of 'logfunc' discards
                        qualifiers from pointer target type
by changing 'char*' -> 'const char*'

svn path=/trunk/; revision=15009
2005-07-23 06:19:08 +00:00
Luis Ontanon 10f8560838 avoid a crash when tree is null
svn path=/trunk/; revision=15008
2005-07-23 02:07:02 +00:00
Ronnie Sahlberg ab0698d089 ICMP MPLS updates and a new preference option from
Brice Augustin and Maria-Luiza



svn path=/trunk/; revision=15007
2005-07-23 00:46:14 +00:00
Ronnie Sahlberg 91a0b13eb6 add back two entries that must have been removed by mistake
svn path=/trunk/; revision=15006
2005-07-23 00:42:31 +00:00
Ronnie Sahlberg 6aaaedd633 we no longer need to g_free() teh string returned by dissect_rpc_string.
when checking the calls in packet-ndmp.c  we must have had a memleak there since it never freed those strings.



svn path=/trunk/; revision=15005
2005-07-23 00:22:02 +00:00
Ronnie Sahlberg c13d85f62d include stdlib instead of malloc.h
svn path=/trunk/; revision=15004
2005-07-22 23:38:51 +00:00
Ronnie Sahlberg 01206d0bd4 recode tvb_memdup() into more efficient emem fucntions.
Now that we dont have to  free() the memory explicitely we got rid of a few unnessecary g_strdup() as well.



svn path=/trunk/; revision=15003
2005-07-22 23:33:12 +00:00
Anders Broman d6babe2f76 No longer needed
svn path=/trunk/; revision=15002
2005-07-22 23:12:26 +00:00