metze/wireshark/wip.git
18 years agoadd two new callbacks:
Ulf Lamping [Tue, 20 Sep 2005 08:42:35 +0000 (08:42 -0000)]
add two new callbacks:
cf_cb_file_closing (called before closing a capture file) cf_cb_file_closed will be called afterwards, but both only if a file is really closed as cf_close is called more often ...

If we are closing large capture files (~20MB), the screen looks ugly while the file is closed. Change this so the screen will immediately go back to initial state and a dialog (without buttons) is shown that the file is currently closed. As the operation which takes most of the time to close the file is a single eth_clist_clear call, we can't use a progress bar here.

cf_cb_live_capture_stopping: called when the user wants to stop the capture (toolbar or menu clicked). At least on Win32, the time between this and the actual stop completed can be noticeable (1-2 seconds), so the user doesn't know if the button press did anything at all. Do something similar as above, show a dialog box without buttons to inform that the close is in progress.

svn path=/trunk/; revision=15891

18 years agofix a compiler warning (... copied from RFC2553 :-)
Ulf Lamping [Tue, 20 Sep 2005 08:31:09 +0000 (08:31 -0000)]
fix a compiler warning (... copied from RFC2553 :-)

svn path=/trunk/; revision=15890

18 years agoif the capture child pops up it's own console, title it as such
Ulf Lamping [Tue, 20 Sep 2005 08:18:41 +0000 (08:18 -0000)]
if the capture child pops up it's own console, title it as such

svn path=/trunk/; revision=15889

18 years agoSquelch a compiler warning.
Guy Harris [Tue, 20 Sep 2005 08:01:00 +0000 (08:01 -0000)]
Squelch a compiler warning.

svn path=/trunk/; revision=15888

18 years agothe buildbot has a problem not knowing sa_family_t, define eth_sa_family_t and use...
Ulf Lamping [Tue, 20 Sep 2005 02:10:48 +0000 (02:10 -0000)]
the buildbot has a problem not knowing sa_family_t, define eth_sa_family_t and use it here (ok, this *is* a dirty hack)

don't know why the last commit compiled on my machine and not on the buildbot.

svn path=/trunk/; revision=15887

18 years agoenhance simple dialog: add the possibility to use no buttons at all and add a stop...
Ulf Lamping [Tue, 20 Sep 2005 01:53:38 +0000 (01:53 -0000)]
enhance simple dialog: add the possibility to use no buttons at all and add a stop icon (similar to the splash_window, but with a slightly different layout and a way to choose the icon shown)

svn path=/trunk/; revision=15886

18 years agoadd a new stop icon 48x48 for (simple) dialogs (derived from the openoffice stock...
Ulf Lamping [Tue, 20 Sep 2005 01:45:35 +0000 (01:45 -0000)]
add a new stop icon 48x48 for (simple) dialogs (derived from the openoffice stock icons and slightly enlarged using the Gimp)

svn path=/trunk/; revision=15885

18 years ago avoid freeing the last location twice.
Luis Ontanon [Tue, 20 Sep 2005 00:31:53 +0000 (00:31 -0000)]
 avoid freeing the last location twice.

add some #ifed out code to help debugging the parser

svn path=/trunk/; revision=15884

18 years agoRevert back to local copy: The samba svn server does not support svn
Jörg Mayer [Mon, 19 Sep 2005 23:31:47 +0000 (23:31 -0000)]
Revert back to local copy: The samba svn server does not support svn
over http - this was a much requested feature for Ethereals svn server.

svn path=/trunk/; revision=15882

18 years agoUpdate faq
Jörg Mayer [Mon, 19 Sep 2005 21:24:46 +0000 (21:24 -0000)]
Update faq

svn path=/trunk/; revision=15880

18 years agoJim Young: LLDP improvements
Jörg Mayer [Mon, 19 Sep 2005 21:24:07 +0000 (21:24 -0000)]
Jim Young: LLDP improvements

svn path=/trunk/; revision=15879

18 years agofix #340: define the missing sockaddr_storage struct to be able to use Packet32.h...
Ulf Lamping [Mon, 19 Sep 2005 20:59:50 +0000 (20:59 -0000)]
fix #340: define the missing sockaddr_storage struct to be able to use Packet32.h even with WinPcap 3.1 and without the platform SDK

svn path=/trunk/; revision=15878

18 years agoSmall whitespace cleanup.
Gerald Combs [Mon, 19 Sep 2005 20:50:51 +0000 (20:50 -0000)]
Small whitespace cleanup.

svn path=/trunk/; revision=15877

18 years agoThrow an exception instead of trying to read past the end of a buffer.
Gerald Combs [Mon, 19 Sep 2005 20:50:10 +0000 (20:50 -0000)]
Throw an exception instead of trying to read past the end of a buffer.
Fixes bug 455.

svn path=/trunk/; revision=15876

18 years agodisplay something useful in the radius VSA item
Luis Ontanon [Mon, 19 Sep 2005 19:48:55 +0000 (19:48 -0000)]
display something useful in the radius VSA item

svn path=/trunk/; revision=15875

18 years agoDon't dereference a null pointer. Fixes bug 460.
Gerald Combs [Mon, 19 Sep 2005 19:46:25 +0000 (19:46 -0000)]
Don't dereference a null pointer.  Fixes bug 460.

svn path=/trunk/; revision=15874

18 years agoChange "Value" into "VSA" for Vendor SPecific Attributes
Luis Ontanon [Mon, 19 Sep 2005 19:36:32 +0000 (19:36 -0000)]
Change "Value" into "VSA" for Vendor SPecific Attributes

svn path=/trunk/; revision=15873

18 years agoAdd a preference to decode different types of AMR payload.
Anders Broman [Mon, 19 Sep 2005 19:11:50 +0000 (19:11 -0000)]
Add a preference to decode different types of AMR payload.

svn path=/trunk/; revision=15872

18 years agoThrow an exception if our ACL length is flat-out wrong.
Gerald Combs [Mon, 19 Sep 2005 17:50:38 +0000 (17:50 -0000)]
Throw an exception if our ACL length is flat-out wrong.

svn path=/trunk/; revision=15871

18 years ago- allow multiple attributes inside one VSA (fixes bug 438)
Luis Ontanon [Mon, 19 Sep 2005 17:42:02 +0000 (17:42 -0000)]
- allow multiple attributes inside one VSA (fixes bug 438)
- preference to choose whether to add the AVP's payload length items
- preference to add an alternate UDP port

svn path=/trunk/; revision=15870

18 years agoIn the SPNEGO dissector, don't call a subdissector if we don't have a TVB.
Gerald Combs [Mon, 19 Sep 2005 16:23:05 +0000 (16:23 -0000)]
In the SPNEGO dissector, don't call a subdissector if we don't have a TVB.
Fixes bugs 448, 449, 451, 452, 454, 456, and 461.

Add similar TVB checks to the BER dissector.

svn path=/trunk/; revision=15869

18 years agoChange README to reflect the fact that tools/pidl is now a
Jörg Mayer [Mon, 19 Sep 2005 14:59:32 +0000 (14:59 -0000)]
Change README to reflect the fact that tools/pidl is now a
svn:externals reference.

svn path=/trunk/; revision=15868

18 years agoChange pidl to svn:externals
Jörg Mayer [Mon, 19 Sep 2005 14:50:23 +0000 (14:50 -0000)]
Change pidl to svn:externals

svn path=/trunk/; revision=15866

18 years agoAdd idl_types.h from samba to fix warning
Jörg Mayer [Mon, 19 Sep 2005 13:26:49 +0000 (13:26 -0000)]
Add idl_types.h from samba to fix warning

svn path=/trunk/; revision=15865

18 years agoPoint to tools/pidl/README.ethereal
Jörg Mayer [Mon, 19 Sep 2005 09:23:52 +0000 (09:23 -0000)]
Point to tools/pidl/README.ethereal

svn path=/trunk/; revision=15864

18 years agoFix a typo.
Guy Harris [Mon, 19 Sep 2005 08:09:41 +0000 (08:09 -0000)]
Fix a typo.

svn path=/trunk/; revision=15863

18 years agosometimes it seems that we have the text based h248/megaco running ontop of
Ronnie Sahlberg [Mon, 19 Sep 2005 08:06:25 +0000 (08:06 -0000)]
sometimes it seems that we have the text based h248/megaco running ontop of
m3ua  and not the binary one.

make the binary dissector check if it is really the text based one to be used and if so
call that dissector instead.

svn path=/trunk/; revision=15862

18 years agoremove unused parameter 'name' from dissect_per_choice()
Tomas Kukosa [Mon, 19 Sep 2005 07:35:05 +0000 (07:35 -0000)]
remove unused parameter 'name' from dissect_per_choice()

svn path=/trunk/; revision=15861

18 years agoSmall update
Jörg Mayer [Sun, 18 Sep 2005 21:58:39 +0000 (21:58 -0000)]
Small update

svn path=/trunk/; revision=15860

18 years agoUpdate README.ethereal and sync with current samba tree
Jörg Mayer [Sun, 18 Sep 2005 21:57:59 +0000 (21:57 -0000)]
Update README.ethereal and sync with current samba tree

svn path=/trunk/; revision=15859

18 years agoassert that tvb is not NULL
Ulf Lamping [Sun, 18 Sep 2005 20:11:54 +0000 (20:11 -0000)]
assert that tvb is not NULL

svn path=/trunk/; revision=15858

18 years agoChange some of the asn1 functions to use packet-ber ones.
Anders Broman [Sun, 18 Sep 2005 20:04:04 +0000 (20:04 -0000)]
Change some of the asn1 functions to use packet-ber ones.

svn path=/trunk/; revision=15857

18 years agoIf the tag field is a bitfield, always show it as such, otherwise always
Guy Harris [Sun, 18 Sep 2005 16:54:00 +0000 (16:54 -0000)]
If the tag field is a bitfield, always show it as such, otherwise always
show the value of 1 1111 as "Continued" in the bitfield and the actual
tag value in the following bytes.

Show the BER identifier data before an OID if we're showing internal BER
fields.

svn path=/trunk/; revision=15856

18 years agoas discussed in the Users list: replace "Short Frame" by "Packet size limited during...
Ulf Lamping [Sun, 18 Sep 2005 11:18:42 +0000 (11:18 -0000)]
as discussed in the Users list: replace "Short Frame" by "Packet size limited during capture" message

svn path=/trunk/; revision=15855

18 years agoadd dtds to EXTRA_DIST
Luis Ontanon [Sun, 18 Sep 2005 09:10:03 +0000 (09:10 -0000)]
add dtds to EXTRA_DIST

svn path=/trunk/; revision=15854

18 years agoIf unkown Tag's are found in a set add length.
Anders Broman [Sat, 17 Sep 2005 21:02:51 +0000 (21:02 -0000)]
If unkown Tag's are found in a set add length.

svn path=/trunk/; revision=15853

18 years agoGet the first few dtds installed.
Luis Ontanon [Sat, 17 Sep 2005 17:17:42 +0000 (17:17 -0000)]
Get the first few dtds installed.

svn path=/trunk/; revision=15852

18 years agoBecause there's more than just text in XML...
Luis Ontanon [Sat, 17 Sep 2005 17:05:46 +0000 (17:05 -0000)]
Because there's more than just text in XML...

DTDs are imported to create fields

svn path=/trunk/; revision=15851

18 years agousing heur_dissector_add("cotp_is") doesn't seem to be enough, if H1 is used over...
Ulf Lamping [Sat, 17 Sep 2005 14:14:24 +0000 (14:14 -0000)]
using heur_dissector_add("cotp_is") doesn't seem to be enough, if H1 is used over TCP/TPKT (RFC1006). Add heur_dissector_add("cotp") so it will be dissected correctly, hopefully this won't introduce new problems with other "cotp" heuristics ...

svn path=/trunk/; revision=15850

18 years agoremove some strcpy()
Ronnie Sahlberg [Sat, 17 Sep 2005 12:16:11 +0000 (12:16 -0000)]
remove some strcpy()

svn path=/trunk/; revision=15849

18 years agoremove some strcpy()
Ronnie Sahlberg [Sat, 17 Sep 2005 12:09:36 +0000 (12:09 -0000)]
remove some strcpy()

svn path=/trunk/; revision=15848

18 years agoFix Gerald's e-mail address (and possibly provoke a copy of the main
Guy Harris [Sat, 17 Sep 2005 02:14:44 +0000 (02:14 -0000)]
Fix Gerald's e-mail address (and possibly provoke a copy of the main
repository to the anonymous repository - the current anonymous
repository appears to be out-of-date, which is breaking the buildbot).

svn path=/trunk/; revision=15847

18 years agoMark some unused and unremovable arguments as unused.
Guy Harris [Sat, 17 Sep 2005 00:39:52 +0000 (00:39 -0000)]
Mark some unused and unremovable arguments as unused.

svn path=/trunk/; revision=15846

18 years agoMove some headers for stuff defined by a dissector into epan/dissectors
Guy Harris [Sat, 17 Sep 2005 00:31:15 +0000 (00:31 -0000)]
Move some headers for stuff defined by a dissector into epan/dissectors
- and rename smb.h to packet-smb.h, as it's packet-smb.c's header file.

svn path=/trunk/; revision=15845

18 years agoMove a pile of protocol-related headers from the top-level source
Guy Harris [Sat, 17 Sep 2005 00:02:31 +0000 (00:02 -0000)]
Move a pile of protocol-related headers from the top-level source
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

18 years agoadd an expert info based on QualityCode and a COL_INFO output
Ulf Lamping [Fri, 16 Sep 2005 22:17:50 +0000 (22:17 -0000)]
add an expert info based on QualityCode and a COL_INFO output

svn path=/trunk/; revision=15843

18 years agoslightly shrink COL_INFO output
Ulf Lamping [Fri, 16 Sep 2005 22:14:33 +0000 (22:14 -0000)]
slightly shrink COL_INFO output

svn path=/trunk/; revision=15842

18 years agosplit call id's with a #, if more than one DCE/RPC call is in a data PDU
Ulf Lamping [Fri, 16 Sep 2005 22:05:50 +0000 (22:05 -0000)]
split call id's with a #, if more than one DCE/RPC call is in a data PDU

svn path=/trunk/; revision=15841

18 years agoSort each conversation column numerically. Fix up whitespace.
Gerald Combs [Fri, 16 Sep 2005 16:25:53 +0000 (16:25 -0000)]
Sort each conversation column numerically.  Fix up whitespace.

It looks like we can't put "COPYCMD=/Y" in config.nmake and expect nmake
to do the right thing.  Add a comment, and set COPYCMD explicitly in the
root Makefile.nmake.  The rest of the occurrences of xcopy will have to
be taken care of at some point.

svn path=/trunk/; revision=15840

18 years agoAargh - undo r15838 as I missed jmayer's commit of r15835.
Tim Potter [Fri, 16 Sep 2005 12:30:33 +0000 (12:30 -0000)]
Aargh - undo r15838 as I missed jmayer's commit of r15835.

svn path=/trunk/; revision=15839

18 years agoComment out pidl dissectors for the moment to get the win32 build
Tim Potter [Fri, 16 Sep 2005 12:11:17 +0000 (12:11 -0000)]
Comment out pidl dissectors for the moment to get the win32 build
going again.  I have most of a patch to get it working but I don't
think it will be finished tonight.

svn path=/trunk/; revision=15838

18 years agoIf we've enabled the display of BER encapsulation tokens, only put them
Guy Harris [Fri, 16 Sep 2005 09:47:18 +0000 (09:47 -0000)]
If we've enabled the display of BER encapsulation tokens, only put them
into the protocol tree once.

Fix the offsets and lengths used to put the variable binding values into
the protocol tree.

svn path=/trunk/; revision=15837

18 years agoAdd a local copy of pidl, add a README.ethereal to include
Jörg Mayer [Fri, 16 Sep 2005 09:31:05 +0000 (09:31 -0000)]
Add a local copy of pidl, add a README.ethereal to include
minimalistic building and usage instructions.

svn path=/trunk/; revision=15836

18 years agoMove the packet-dcerpc-*.[hc] from pidl/ back to dissectors.
Jörg Mayer [Fri, 16 Sep 2005 08:55:51 +0000 (08:55 -0000)]
Move the packet-dcerpc-*.[hc] from pidl/ back to dissectors.
This makes Ethereal build again - there's no real reason that
ethereal fails to build for such a long time on so many platforms.

svn path=/trunk/; revision=15835

18 years agowka.tmpl:
Jörg Mayer [Fri, 16 Sep 2005 08:40:08 +0000 (08:40 -0000)]
wka.tmpl:
        Show MS NLB Adresses individually
manuf:
        Update

svn path=/trunk/; revision=15834

18 years agoNote problems with some values that appear in, for example, some SNMP
Guy Harris [Fri, 16 Sep 2005 08:30:35 +0000 (08:30 -0000)]
Note problems with some values that appear in, for example, some SNMP
captures.

svn path=/trunk/; revision=15833

18 years agoFix a type.
Guy Harris [Fri, 16 Sep 2005 07:50:02 +0000 (07:50 -0000)]
Fix a type.

svn path=/trunk/; revision=15832

18 years agoAdd conformance file used for building winreg dissector.
Tim Potter [Fri, 16 Sep 2005 04:25:12 +0000 (04:25 -0000)]
Add conformance file used for building winreg dissector.

svn path=/trunk/; revision=15831

18 years agofixing the fix, it's time to go to bed ...
Ulf Lamping [Fri, 16 Sep 2005 00:02:31 +0000 (00:02 -0000)]
fixing the fix, it's time to go to bed ...

svn path=/trunk/; revision=15830

18 years agobugfix: don't crash (assert), if jumping to the first packet and packet_list is curre...
Ulf Lamping [Thu, 15 Sep 2005 23:44:07 +0000 (23:44 -0000)]
bugfix: don't crash (assert), if jumping to the first packet and packet_list is currently empty. Can happen at capture start.

svn path=/trunk/; revision=15829

18 years agoDon't use u_char - not all platforms define it, and even those that do
Guy Harris [Thu, 15 Sep 2005 23:39:08 +0000 (23:39 -0000)]
Don't use u_char - not all platforms define it, and even those that do
might require other files to be included to get it.

svn path=/trunk/; revision=15828

18 years agoAdd a Makefile.
Guy Harris [Thu, 15 Sep 2005 23:17:42 +0000 (23:17 -0000)]
Add a Makefile.

svn path=/trunk/; revision=15827

18 years agoAdd more information regarding call legs.
Luis Ontanon [Thu, 15 Sep 2005 19:30:44 +0000 (19:30 -0000)]
Add more information regarding call legs.
Make the release cause value filterable.

svn path=/trunk/; revision=15826

18 years agoleak fix
Luis Ontanon [Thu, 15 Sep 2005 19:26:05 +0000 (19:26 -0000)]
leak fix

svn path=/trunk/; revision=15825

18 years agoFix fragment length checks. Fixes bugs 440 and 442-446.
Gerald Combs [Thu, 15 Sep 2005 18:42:04 +0000 (18:42 -0000)]
Fix fragment length checks.  Fixes bugs 440 and 442-446.

svn path=/trunk/; revision=15824

18 years agoremove some redundant strcpy()
Ronnie Sahlberg [Thu, 15 Sep 2005 13:41:56 +0000 (13:41 -0000)]
remove some redundant strcpy()

svn path=/trunk/; revision=15823

18 years agoremove some redundant strcpy()
Ronnie Sahlberg [Thu, 15 Sep 2005 13:36:31 +0000 (13:36 -0000)]
remove some redundant strcpy()

svn path=/trunk/; revision=15822

18 years agoremove a whole bunch of strcpy() fix minor bug where whe checked the wrong string...
Ronnie Sahlberg [Thu, 15 Sep 2005 13:31:05 +0000 (13:31 -0000)]
remove a whole bunch of strcpy()     fix minor bug where whe checked the wrong string before we display it

svn path=/trunk/; revision=15821

18 years agoupdate for ospf from Senthil Kumar Nagappan
Ronnie Sahlberg [Thu, 15 Sep 2005 13:20:32 +0000 (13:20 -0000)]
update for ospf from Senthil Kumar Nagappan

svn path=/trunk/; revision=15820

18 years agodelete the old dissector
Ronnie Sahlberg [Thu, 15 Sep 2005 10:20:08 +0000 (10:20 -0000)]
delete the old dissector

svn path=/trunk/; revision=15819

18 years agodelete the old dissector and point the makefile to the new dissector
Ronnie Sahlberg [Thu, 15 Sep 2005 10:19:25 +0000 (10:19 -0000)]
delete the old dissector and point the makefile to the new dissector

svn path=/trunk/; revision=15818

18 years agonew pidl generated atsvc dissector and its conformance file
Ronnie Sahlberg [Thu, 15 Sep 2005 10:18:08 +0000 (10:18 -0000)]
new  pidl generated atsvc dissector and its conformance file

svn path=/trunk/; revision=15817

18 years agoGet rid of a no-longer-used variable.
Guy Harris [Thu, 15 Sep 2005 09:09:00 +0000 (09:09 -0000)]
Get rid of a no-longer-used variable.

svn path=/trunk/; revision=15816

18 years agoMove OUIs from LLDP dissector to oui.h.
Guy Harris [Thu, 15 Sep 2005 08:57:51 +0000 (08:57 -0000)]
Move OUIs from LLDP dissector to oui.h.

Get rid of remaining sprintf'ing into on-the-stack buffers.

Note where some items came from.

svn path=/trunk/; revision=15815

18 years agoUse ep_strdup_printf() to generate the "not found in value_string table"
Guy Harris [Thu, 15 Sep 2005 08:55:43 +0000 (08:55 -0000)]
Use ep_strdup_printf() to generate the "not found in value_string table"
string for val_to_str().

svn path=/trunk/; revision=15814

18 years agoTag ep_strdup_printf() and se_strdup_printf() as printf-like functions,
Guy Harris [Thu, 15 Sep 2005 08:54:56 +0000 (08:54 -0000)]
Tag ep_strdup_printf() and se_strdup_printf() as printf-like functions,
so we get compile-time checking of arguments when possible.

svn path=/trunk/; revision=15813

18 years agoA first go at importing some pidl generated code into ethereal. This
Tim Potter [Thu, 15 Sep 2005 07:34:52 +0000 (07:34 -0000)]
A first go at importing some pidl generated code into ethereal.  This
commit replaces the hand written dcerpc initshutdown and winreg
interfaces with autogenerated ones.

The pidl generated code is still a bit rought around the edges but will
hopefully improve with time.

svn path=/trunk/; revision=15812

18 years agoAdd PRIX64, as we now use it.
Guy Harris [Thu, 15 Sep 2005 06:04:33 +0000 (06:04 -0000)]
Add PRIX64, as we now use it.

svn path=/trunk/; revision=15811

18 years agoReplace the spnego dissector with an asn2eth generated one.
Anders Broman [Thu, 15 Sep 2005 05:38:37 +0000 (05:38 -0000)]
Replace the spnego dissector with an asn2eth generated one.

svn path=/trunk/; revision=15810

18 years agoRename TLV_INFO_MASK to TLV_INFO_LEN_MASK, to match TLV_TYPE_MASK.
Guy Harris [Thu, 15 Sep 2005 05:22:20 +0000 (05:22 -0000)]
Rename TLV_INFO_MASK to TLV_INFO_LEN_MASK, to match TLV_TYPE_MASK.

Use "tvb_format_stringzpad()" rather than "tvb_format_text()" on
strings, as some of them are null-padded.  (XXX - are they null-padded
or null-terminated?)

Clean up the TLV length checks, and do many more such checks.

svn path=/trunk/; revision=15809

18 years agoWe already define ETHERTYPE_LLDP in "etypes.h" - use that, don't define
Guy Harris [Thu, 15 Sep 2005 04:08:53 +0000 (04:08 -0000)]
We already define ETHERTYPE_LLDP in "etypes.h" - use that, don't define
our own.

Get rid of MAC_to_str() - ether_to_str() suffices.

Don't copy to on-the-stack fixed-size string buffers, just save the
results of various formatting calls as pointers.

Use tvb_format_text() to get displayable versions of text strings.

Use tvb_get_ipv4() and tvb_get_ipv6().

Don't put an item into the protocol tree as text and then put in a
hidden item that, if unhidden, would display the same or almost exactly
the same; just put the item into the tree unhidden.

svn path=/trunk/; revision=15808

18 years agoProperly handle 64-bit integer constants (they don't happen by magic,
Guy Harris [Thu, 15 Sep 2005 03:09:40 +0000 (03:09 -0000)]
Properly handle 64-bit integer constants (they don't happen by magic,
and the stuff you have to do is compiler-dependent, so use
G_GINT64_CONSTANT()).

Properly handle formatting 64-bit quantities (they don't format
correctly by magic, and the stuff you have to do is compiler-dependent,
so use PRI[duoxX]64).

Don't copy the result of tvb_bytes_to_str() to a string buffer and then
only use it as an argument to a "%s" - just use the result directly.

Don't copy constant strings to a buffer - just use the strings directly.

Fetch 64-bit integral quantities with tvb_get_ntoh64(); they're
presumably in a standard byte order, which is probably big-endian for
Internet-family protocols, and using tvb_memcpy() is *guaranteed* to be
wrong on some platforms.

Fix up a format string.

Fix up indentation a bit.

svn path=/trunk/; revision=15807

18 years agoSquelch some warnings, fix some typoes.
Guy Harris [Thu, 15 Sep 2005 03:03:29 +0000 (03:03 -0000)]
Squelch some warnings, fix some typoes.

svn path=/trunk/; revision=15806

18 years agofix wtap_dump_flush function name and don't check for it's return value. We don't...
Ulf Lamping [Wed, 14 Sep 2005 23:15:12 +0000 (23:15 -0000)]
fix wtap_dump_flush function name and don't check for it's return value. We don't do this check in Ethereal either and we will recognize problems at next write anyway ...

svn path=/trunk/; revision=15805

18 years agoadded compression support for capture file output. The Save/As dialog now has a check...
Ulf Lamping [Wed, 14 Sep 2005 21:57:30 +0000 (21:57 -0000)]
added compression support for capture file output. The Save/As dialog now has a checkbox "Compress with gzip"

currently limited to Ethereal and all the variants of libpcap filetypes only.

We might want to add output compression support to the other tools as well (tethereal, mergecap, ...).

We might also want to add support for the other filetypes, but this is only possible if the filetype functions doesn't use special output operations like fseek.

One bug is still left: if the input and output filetypes while saving are the same, Ethereal currently optimizes this by simply copy the binary file instead of using wiretap (so it will be faster but it will ignore the compress setting).

Don't know a good workaround for this, as I don't know a way to find out if the input file is currently compressed or not. One idea might be to use a heuristic on the filesize (compared to the packet size summmary). Another workaround I see is to remove this optimization, which is of course not the way I like to do it ...

svn path=/trunk/; revision=15804

18 years agoadd E_OUTOFMEMORY
Ulf Lamping [Wed, 14 Sep 2005 20:09:17 +0000 (20:09 -0000)]
add E_OUTOFMEMORY

svn path=/trunk/; revision=15803

18 years agoFrom Peter Johansson
Anders Broman [Wed, 14 Sep 2005 19:14:23 +0000 (19:14 -0000)]
From Peter Johansson
I added a description for the call to DISSECTOR_ASSERT in proto.c to be
printed to stderr.

svn path=/trunk/; revision=15802

18 years agoFix a warning.
Anders Broman [Wed, 14 Sep 2005 19:11:23 +0000 (19:11 -0000)]
Fix a warning.

svn path=/trunk/; revision=15801

18 years agoFrom Brian Bogora:
Anders Broman [Wed, 14 Sep 2005 19:06:54 +0000 (19:06 -0000)]
From Brian Bogora:
Our company (Mitel) has developed an LLDP-MED plug-in for Ethereal.

svn path=/trunk/; revision=15800

18 years agoFrom Dinesh G Dutt
Anders Broman [Wed, 14 Sep 2005 18:40:16 +0000 (18:40 -0000)]
From Dinesh G Dutt

Support some new messages and fix a couple of bugs.

packet-fc.h - Added a #define for a Cisco MDS-specific frame called OHMS (online health mgmt srv) packet-fc.c - Support for OHMS frame, fixed an incorrect "malformed frame" error caused on ACK1 frames (they
                   don't contain anything but (encap hdr + FC hdr + encap trailer), fixed incorrect detection of
                   last-data-frame

packet-fcct.h - Support for new service type, "Fabric Controller", used in conjunction with FC-SW3 ESS message,
                     exported the service name value string definitions and
packet-fcct.c - Support for recognizing "Fabric Controller" service type and "vendor-specific" service

packet-fcswils.h - Support for ESS & MRRA messages, defined as part of FC-SW3 packet-fcswils.c - Support for ESS & MRRA messages, defined as part of FC-SW3

packet-scsi.c - Support for Verify and Write&Verify SBC commands.

svn path=/trunk/; revision=15799

18 years agoDo the variable binding with dissect_ber_x() routines rather than asn1 ones.
Anders Broman [Wed, 14 Sep 2005 17:08:41 +0000 (17:08 -0000)]
Do the variable binding with dissect_ber_x() routines rather than asn1 ones.

svn path=/trunk/; revision=15798

18 years agoDont't carsh if dissect_ber_null() isn't passed a hf_id.
Anders Broman [Wed, 14 Sep 2005 17:04:36 +0000 (17:04 -0000)]
Dont't carsh if dissect_ber_null() isn't passed a hf_id.

svn path=/trunk/; revision=15797

18 years agoAllow dissection of dcerpc of short frames instead of aborting as soon as it is...
Ronnie Sahlberg [Wed, 14 Sep 2005 16:06:11 +0000 (16:06 -0000)]
Allow dissection of dcerpc of short frames   instead of aborting as soon as it is detected the pdu is "short"

svn path=/trunk/; revision=15796

18 years agofor octet strings that span beyond the end of a "short" tvb, create a new subset...
Ronnie Sahlberg [Wed, 14 Sep 2005 16:04:59 +0000 (16:04 -0000)]
for octet strings that span beyond the end of a "short" tvb,   create a new subset tvb of what we have and use that  instead of bailing out completely.

svn path=/trunk/; revision=15795

18 years agowhen we have raw keberos inside the spnego blob, pass it as is over to
Ronnie Sahlberg [Wed, 14 Sep 2005 16:02:54 +0000 (16:02 -0000)]
when we have raw keberos inside the spnego blob,   pass it as is over to
the kerberos dissector  and do not strip the ber tag and lengths off

svn path=/trunk/; revision=15794

18 years agoHave cf_retap_packets() take an argument that indicates whether to
Guy Harris [Wed, 14 Sep 2005 08:59:41 +0000 (08:59 -0000)]
Have cf_retap_packets() take an argument that indicates whether to
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

18 years agofix #388: add /desktopicon and /quicklaunchicon command line options to the NSIS...
Ulf Lamping [Wed, 14 Sep 2005 02:07:20 +0000 (02:07 -0000)]
fix #388: add /desktopicon and /quicklaunchicon command line options to the NSIS installer

update the User's Guide accordingly

svn path=/trunk/; revision=15792

18 years agoMove "Expert Info" from "Statistics" to "Analyze" menu item.
Ulf Lamping [Tue, 13 Sep 2005 23:46:42 +0000 (23:46 -0000)]
Move "Expert Info" from "Statistics" to "Analyze" menu item.

*significantly* improve performance (100000 infos from ~5min to 25sec!)

Add a simple severity based filter mechanism.

replace // style comments by /**/

svn path=/trunk/; revision=15791

18 years agoTurn around the sequence of PATH, so the former PATH will be in front of the newly...
Ulf Lamping [Tue, 13 Sep 2005 19:01:08 +0000 (19:01 -0000)]
Turn around the sequence of PATH, so the former PATH will be in front of the newly added things.

This way, the cygwin link.exe command will be behind the link.exe from MSVC.

Also added a definition of the docbook dir, floating around in my personal file for a while. This will be needed if the User's Guide is included in the NSIS installer later.

svn path=/trunk/; revision=15790

18 years agoIn smb_trans_defragment(), throw an exception if we encounter a too-large
Gerald Combs [Tue, 13 Sep 2005 19:01:01 +0000 (19:01 -0000)]
In smb_trans_defragment(), throw an exception if we encounter a too-large
fragment size.  The limit is conservatively set at 65536 bytes.  It may
have to be increased.  Fixes bug 421.

Add an entry to the release notes.

svn path=/trunk/; revision=15789