Commit Graph

19315 Commits

Author SHA1 Message Date
Guy Harris 0fe89db102 Revert the previous changes - the problem Paul Blankenbaker was fixing
was really a problem with bytes_repr_len() and zero-length FT_BYTES
fields, and it's not clear what to do about fields that have zero
length.  (Put in a comment about that.)

Clean up indentation a bit.

svn path=/trunk/; revision=19864
2006-11-07 21:04:41 +00:00
Guy Harris 5123a82b3c Fix bytes_repr_len() to correctly handle a zero-length FT_BYTES field
svn path=/trunk/; revision=19863
2006-11-07 20:30:34 +00:00
Guy Harris 4c2f1f7ccb Based on a change from Paul Blankenbaker, make the "show" attribute for
a field an empty string if the field is zero-length; for some reason,
the existing code doesn't handle that correctly.

Also, the NetPDL Visualization Extension:

	http://www.nbee.org/Docs/NetPDL/NetPDLVisualization.htm

seems to imply that "value" has to be present, so display it even if the
field is zero-length.

svn path=/trunk/; revision=19862
2006-11-07 19:49:58 +00:00
Anders Broman 8d8af34ba4 Fix bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1206
MEGACO message cannot be decoded correctly for ServiceChange Command
And decoding of serviceChangeReason.

svn path=/trunk/; revision=19861
2006-11-07 19:25:59 +00:00
Guy Harris ad3c10a20a Update to describe all that the read routine needs to return, and to
indicate what the seek_read routine needs to do and that you *have* to
have a seek_read routine.

svn path=/trunk/; revision=19860
2006-11-07 19:25:32 +00:00
Ronnie Sahlberg 5a0ba5b0c7 fix for bug 1200
there used to be a bug in tcp reassembly that even if the dissector only asked for x more bytes from the next segment   the entire segment would still be added to reassembly.
this caused some issues when there was a new multisegment pdu that started at the end of the segment   but this bug was fixed when tcp reassembly was refactored semi-recently.


there was also another "bug" in the http reassembly that it would only ask for one more byte at a time when doing reassembly.
this did work well however when we still had the bug in tcp reassembly   but made wireshark become very very very slow once this tcp bug was fixed  since it is very very very slow to reassemble a huge http pdu just one byte at a time.


this patch adds partial support (what we need for http   which does not use tcp_dissect_pdus() ) for the desegmentation flag : DESEGMENT_ONE_MORE_SEGMENT and also to the http dissector   so that reassembly of http headers spanning multiple semgents now become fast again



svn path=/trunk/; revision=19859
2006-11-07 13:19:31 +00:00
Jörg Mayer b3c98fecbc Another packet-acn.c leftover
svn path=/trunk/; revision=19858
2006-11-07 10:55:12 +00:00
Guy Harris 97939febb9 As Ulf Lamping notes:
if the pipename argument to cap_pipe_open_live() is null, that's
	a bug, and we want a crash so it's caught;

	if ld->pcap_h is null in capture_loop_dispatch(), that's a bug,
	and we want a crash so it's caught;

	if capture_opts is null in capture_loop_start(), that's a bug,
	and we want a crash so it's caught;

	there's no need to null out capture_opts->save_file twice.

Also, errmsg and secondary_errmsg are null-terminated strings, so the
array size should be the maximum length + 1.

svn path=/trunk/; revision=19857
2006-11-07 09:50:09 +00:00
Ulf Lamping e13cec2560 don't copy mibs.txt files to mibs, but to snmp\mibs
svn path=/trunk/; revision=19856
2006-11-07 09:36:26 +00:00
Guy Harris 8f3f19975d Add Yet Another Portability Recommendation.
svn path=/trunk/; revision=19855
2006-11-07 09:12:30 +00:00
Guy Harris a19025c3f6 Bitfields are bad - the C language spec does *NOT* guarantee which bits
will correspond to which bit fields.  Don't use them.

Use #defines rather than numbers in the appropriate places.

Constify some arguments.

Get rid of C++ comments.

svn path=/trunk/; revision=19854
2006-11-07 09:06:53 +00:00
Jörg Mayer 46df9a118a albert chin:
version_info.c has:
  #ifdef HAVE_LIBGCRYPT
  #include <gcrypt.h>
  #endif /* HAVE_LIBGCRYPT */

  #ifdef HAVE_LIBGNUTLS
  #include <gnutls/gnutls.h>
  #endif /* HAVE_LIBGNUTLS */

However, Makefile.am doesn't include the necessary CPPFLAGS/LDFLAGS to
resolve symbols from the above. Patch attached.


Note: dumpcap should not need to be linked to gnutls, but that's a
problem with the version infrastructure.

svn path=/trunk/; revision=19853
2006-11-07 08:41:46 +00:00
Ronnie Sahlberg 6a745262b4 from albert chin
The Solaris C compiler, among others, do not allow anonymous unions.
Patch attached.



thanks albert


svn path=/trunk/; revision=19852
2006-11-07 08:33:24 +00:00
Guy Harris 5ea6272700 You run perl, not make, on Makefile.PL files.
svn path=/trunk/; revision=19851
2006-11-07 08:19:57 +00:00
Jörg Mayer c16b5e2647 Warning fix about empty source file
svn path=/trunk/; revision=19850
2006-11-07 08:04:11 +00:00
Jörg Mayer 7acc35d3c6 regenerate with news pidl
svn path=/trunk/; revision=19849
2006-11-07 08:00:30 +00:00
Jörg Mayer e44e0795ce Update to use --includedir instead of copying idl_types.h.
svn path=/trunk/; revision=19847
2006-11-07 07:57:07 +00:00
Jörg Mayer bfffb8d4b8 Updated to revision 19604.
Update from samba tree revision 19582 to 19604
============================ Samba log start ============
------------------------------------------------------------------------
r19585 | jelmer | 2006-11-06 22:54:19 +0100 (Mon, 06 Nov 2006) | 10 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/idl.yp
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/ODL.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/EJS.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Add support for some more standard IDL instructions:
 - `include' (replaces helper())
 - `import' (replaces depends())

Add support for parsing importlib() - importlib() is now ignored (with a
warning), but no longer causes syntax errors.

helper() and depends() are now marked deprecated and will cause warnings.


------------------------------------------------------------------------
r19588 | jelmer | 2006-11-06 23:54:49 +0100 (Mon, 06 Nov 2006) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/idl.yp
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm

Use include and import statements rather than depends() and helper().

------------------------------------------------------------------------
r19599 | jelmer | 2006-11-07 02:00:27 +0100 (Tue, 07 Nov 2006) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/idl.yp
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm

Fix --includedir.

------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=19846
2006-11-07 07:52:53 +00:00
Jörg Mayer 80f82b9203 Warning fixes (void) instead of (), no newline at end of file.
svn path=/trunk/; revision=19845
2006-11-07 07:47:49 +00:00
Jaap Keuter 5f955a0fcc From Albert Chin:
Patch attached to convert usage of ntohl() -> g_ntohl(). On HP-UX,
ntohl() isn't available unless you -D_XOPEN_SOURCE_EXTENDED but there
are other uses of g_ntohl().

svn path=/trunk/; revision=19844
2006-11-07 07:39:16 +00:00
Guy Harris faed34492b Get rid of another ACN reference.
svn path=/trunk/; revision=19843
2006-11-07 00:56:45 +00:00
Guy Harris 6481d6f8d4 Get rid of another ACN reference.
svn path=/trunk/; revision=19842
2006-11-07 00:56:04 +00:00
Guy Harris 0c0c517dae Get rid of more ACN plugin references.
svn path=/trunk/; revision=19841
2006-11-07 00:55:14 +00:00
Guy Harris 4ceca9beb1 Split the ".." and subdirectory into two separate "cd"s, in the hopes of
reducing the chances that, if a plugin is removed, an extra ".."
reference will be left in.

Get rid of the extra ".."s that were left in when the ACN plugin was
recently removed.

svn path=/trunk/; revision=19840
2006-11-07 00:54:01 +00:00
Ulf Lamping ba962a91ea fix 1203 as found by stephen fisher
svn path=/trunk/; revision=19839
2006-11-06 23:59:49 +00:00
Gerald Combs 02735fce79 Remove ACN references.
svn path=/trunk/; revision=19838
2006-11-06 23:38:35 +00:00
Gerald Combs c77637f7fa Fix an inadvertent change.
svn path=/trunk/; revision=19837
2006-11-06 23:08:11 +00:00
Gerald Combs 7a6159175f Remove ACN.
svn path=/trunk/; revision=19836
2006-11-06 23:04:53 +00:00
Anders Broman 261a964be1 Remove the references to acn
svn path=/trunk/; revision=19835
2006-11-06 20:49:47 +00:00
Ronnie Sahlberg b84d470206 convert restrictiontype to be an enum
svn path=/trunk/; revision=19834
2006-11-06 20:47:37 +00:00
Anders Broman 6b45c9b92b Remove the references to acn
svn path=/trunk/; revision=19833
2006-11-06 20:36:43 +00:00
Ronnie Sahlberg 3c65eab84e building the nspi dissector depends also on the nspi.cnf file, add this dependency to the makefile
add tracking of policyhandles to the dissector


svn path=/trunk/; revision=19832
2006-11-06 20:28:19 +00:00
Jörg Mayer cbd40635b3 Update from samba tree revision 19578 to 19582
============================ Samba log start ============
------------------------------------------------------------------------
r19580 | jelmer | 2006-11-06 21:01:22 +0100 (Mon, 06 Nov 2006) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/idl.yp
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/IDL.pm
   M /branches/SAMBA_4_0/source/pidl/pidl

Add --includedir option.

------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=19831
2006-11-06 20:21:02 +00:00
Ronnie Sahlberg 258b3af063 new acn dissector from Bill Florac
svn path=/trunk/; revision=19830
2006-11-06 20:13:32 +00:00
Jörg Mayer 9cb8ab0b8a Fix some warnings about missing newline at end of file.
svn path=/trunk/; revision=19829
2006-11-06 19:58:06 +00:00
Jörg Mayer b9c69db9d3 Remove some // comments.
Fix a warning about nested comments.

svn path=/trunk/; revision=19828
2006-11-06 19:56:11 +00:00
Jörg Mayer c7d28461ce Don't do forward declarations in the file. I'll try to eventually
put this stuff into an external file but just doing a forward
declaration to squelch a compiler warning isn't the way to go - it
needs to be done right one day.

svn path=/trunk/; revision=19827
2006-11-06 19:53:39 +00:00
Jörg Mayer 207c844d36 Copy over the nspi.cnf file which was recently added
svn path=/trunk/; revision=19826
2006-11-06 19:47:39 +00:00
Jörg Mayer ef6d9f93ee Update from samba tree revision 19565 to 19578
============================ Samba log start ============
------------------------------------------------------------------------
r19572 | jelmer | 2006-11-06 15:07:20 +0100 (Mon, 06 Nov 2006) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm

Fix typo.

------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=19825
2006-11-06 19:44:09 +00:00
Luis Ontanon f8bc734cb2 Avoid ${ename}[...] being interpreted as $ename[...].
svn path=/trunk/; revision=19824
2006-11-06 18:16:56 +00:00
Jaap Keuter 29e756cb38 Add image/wiresharkdoc.ico to the EXTRA_DIST symbol
svn path=/trunk/; revision=19823
2006-11-06 14:20:59 +00:00
Jaap Keuter 9f0da21589 Remove the executable property from this datafile
svn path=/trunk/; revision=19822
2006-11-06 14:20:03 +00:00
Jörg Mayer edfa3b55b1 frederic heem:
Please find attached a patch to replace "#" with "*".
Check64BitFormat.c.in is a C file.


svn path=/trunk/; revision=19821
2006-11-06 14:16:29 +00:00
Jaap Keuter 7ffd4070df Let the manifest state that we're Wireshark.
svn path=/trunk/; revision=19820
2006-11-06 12:58:14 +00:00
Jaap Keuter cf9adce9be Fix bug 1207, simple swap of the two text strings.
svn path=/trunk/; revision=19819
2006-11-06 12:19:26 +00:00
Jaap Keuter 066cab237e Don't remove a preference, make it obsolete instead.
svn path=/trunk/; revision=19818
2006-11-06 11:41:02 +00:00
Ronnie Sahlberg e04e99427b some compilers dont like unnamed unions and structs
svn path=/trunk/; revision=19817
2006-11-06 09:30:15 +00:00
Ulf Lamping ecfa9c3d2b fix the return value of file_seek, as noted by Steve
svn path=/trunk/; revision=19816
2006-11-06 00:24:24 +00:00
Jörg Mayer 1189d52e1e Update from samba tree revision 19553 to 19565
============================ Samba log start ============
------------------------------------------------------------------------
r19553 | jelmer | 2006-11-04 16:40:05 +0100 (Sat, 04 Nov 2006) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm

Add check for correct API usage.

------------------------------------------------------------------------
r19557 | jelmer | 2006-11-04 21:24:35 +0100 (Sat, 04 Nov 2006) | 3 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Fix lookup table for WERROR.
Fix perl warnings when using NTSTATUS as return type.

------------------------------------------------------------------------
r19559 | jelmer | 2006-11-04 22:53:00 +0100 (Sat, 04 Nov 2006) | 3 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Fix handling of types where the name isn't prefixed by the interface name.
Based on patch by Julien Kerihuel.

------------------------------------------------------------------------
r19560 | jelmer | 2006-11-05 01:03:44 +0100 (Sun, 05 Nov 2006) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Fix handling of PARAM_VALUE.

------------------------------------------------------------------------
r19561 | jelmer | 2006-11-05 01:08:39 +0100 (Sun, 05 Nov 2006) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Remove debug statement.

------------------------------------------------------------------------
r19562 | jelmer | 2006-11-05 01:26:44 +0100 (Sun, 05 Nov 2006) | 2 lines
Changed paths:
   M /branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

Support returning simple scalars.

------------------------------------------------------------------------
------------------------------------------------------------------------
============================ Samba log end ==============


svn path=/trunk/; revision=19815
2006-11-05 23:33:28 +00:00
Ulf Lamping 59d6c8ea33 change all file offsets from long to gint64 so we can - theoretically - handle files > 2GB correct.
Please distclean Win32 builds!

svn path=/trunk/; revision=19814
2006-11-05 22:46:44 +00:00