Commit graph

6848 commits

Author SHA1 Message Date
Guy Harris
1bc049906a Add some GCC warnings to the standard set, and add some others to the
--enable-extra-gcc-checks set.

If we turn on -pedantic, try turning on -Wno-long-long as well, so that
it's not *so* pedantic that it rejects the 64-bit integral data types
that we explicitly require.

Constify a bunch of stuff, and make some other changes, to get rid of
warnings.

Clean up some indentation.

svn path=/trunk/; revision=21526
2007-04-23 10:59:26 +00:00
Guy Harris
7dc9df5f26 Just use -1 to go to the end of a tvbuff.
svn path=/trunk/; revision=21525
2007-04-23 10:57:34 +00:00
Jeff Morriss
20a3a52951 Mark all the items for TCAP statistics as generated
svn path=/trunk/; revision=21524
2007-04-23 10:45:00 +00:00
Ronnie Sahlberg
c84eda3a80 add request/response matching for ctdb
svn path=/trunk/; revision=21523
2007-04-23 09:44:13 +00:00
Anders Broman
9344195101 Formating changes and align a bit to spec.
svn path=/trunk/; revision=21521
2007-04-23 06:24:39 +00:00
Guy Harris
c5beaef29e "call_ber_syntax_callback()" isn't used outside packet-ber.c, isn't
declared in any header file, and isn't in epan/libwireshark.def; make it
static, to squelch compiler warnings.

svn path=/trunk/; revision=21518
2007-04-23 00:32:04 +00:00
Jörg Mayer
b16106f89f Only #deinfe __USE_XOPEN if not already defined. On my Suse 10.2 it was
already #defined to 1, so this would create a warning/error.


svn path=/trunk/; revision=21508
2007-04-22 20:04:34 +00:00
Guy Harris
065be642f4 Get rid of some const warnings.
Use the "pnto" macros to fetch 16-bit quantities from a buffer - not
only do they have the right casts to avoid const warnings, they also
work even on platforms (such as SPARC) where you can't dereference
unaligned pointers without a trap.

Similarly, compare a possibly-unaligned (we make no alignment guarantees
in Wireshark) 16-bit quantity against 0 a byte at a time.

svn path=/trunk/; revision=21507
2007-04-22 18:26:45 +00:00
Guy Harris
6327554e6c Check the GLib version number, not the GTK+ version number; it's GLib we
care about, and this code doesn't use GTK+, so it doesn't include any
GTK+ headers and therefore doesn't get the GTK+ version number defined.

svn path=/trunk/; revision=21506
2007-04-22 18:04:52 +00:00
Ronnie Sahlberg
7a97135752 GString.len has changed signednedd between gtk1 and gtk2
this will hopefully again compile under both gtk1 and 2


svn path=/trunk/; revision=21499
2007-04-22 15:22:53 +00:00
Jörg Mayer
7b20d35047 Fix a signedness warning.
svn path=/trunk/; revision=21497
2007-04-22 11:51:36 +00:00
Jaap Keuter
647446dadf Fix for bug 1541. Adjust offset for long longs by 8, not by 4.
svn path=/trunk/; revision=21496
2007-04-22 10:29:47 +00:00
Ronnie Sahlberg
99bc488535 fix the sign of a variable to prevent a singed/unsigned warning during
compiling


svn path=/trunk/; revision=21494
2007-04-22 09:58:12 +00:00
Anders Broman
4960e68578 EXPORT DialoguePDU UniDialoguePDU and make them callable by OID.
svn path=/trunk/; revision=21487
2007-04-21 20:53:35 +00:00
Anders Broman
eab3eb5c68 Put some missing TAG:s in the tree if internal BER fields shown.
svn path=/trunk/; revision=21486
2007-04-21 20:27:05 +00:00
Gerald Combs
02926636da Move some data frame back out of the control frame scope, so Wireshark
will stop crashing.

More .11n additions and updates from Dustin:

  - Power Capability tag
  - Supported Channels tag
  - Block Ack/Block Ack Request

Fixup whitespace.

svn path=/trunk/; revision=21484
2007-04-20 22:29:11 +00:00
Gerald Combs
2c9c0f3651 Fix 64-bit integer handling and whitespace.
svn path=/trunk/; revision=21483
2007-04-20 18:09:31 +00:00
Gerald Combs
24b3b66ba8 More .11n-related updates and additions from Dustin Johnson and myself:
- MIMO Control frame support
  - Control Wrapper frame support
  - Measurement Pilot
  - Action No Ack
  - Block Ack Action
  - PCO Phase Control
  - PSMP Parameter Set
  - Antenna Selection
  - Extended Channel Switch Announcement
  - HT Information
  - HT Action
  - MIMO CSI Matrices Report
  - Fill in and update a bunch of hf strings
  
Fixup(?) whitespace.

svn path=/trunk/; revision=21482
2007-04-20 17:40:13 +00:00
Sebastien Tandel
def734249e Since code generated by lex may trigger gcc warnings, we are now generating two
libraries.  A single library is generated with the lex code without the barrier
"stop on warning". An other library is generated from the remaining source
files with the "stop on warning" barrier.


svn path=/trunk/; revision=21481
2007-04-20 14:30:48 +00:00
Sebastien Tandel
366716e31d get rid of some unused parameters in process_ssl_payload
svn path=/trunk/; revision=21480
2007-04-20 14:19:20 +00:00
Anders Broman
5954b97ac4 Add EXTERNAL to the value string and add comments about UNIVERSAL tags.
svn path=/trunk/; revision=21479
2007-04-20 13:54:56 +00:00
Jörg Mayer
31937c3b30 Add Recognition of ELRP (Extreme Loop Recognition Protocol) Elements.
I don't know how to decode them though.

Fix some typos.

Change some Element descriptions.

svn path=/trunk/; revision=21478
2007-04-20 09:26:59 +00:00
Richard van der Hoff
5c50b6f96f From Hannes Gredler:
attached a small bugfix that uses the correct bits
for determining if the ATM payload is a OAM cell.


svn path=/trunk/; revision=21477
2007-04-19 17:13:49 +00:00
Tomas Kukosa
1bf555aa2f export dissect_ber_tagged_type()
svn path=/trunk/; revision=21474
2007-04-19 12:57:23 +00:00
Tomas Kukosa
840b4e46a9 register the right dissector for SIP over SSL/TLS
svn path=/trunk/; revision=21473
2007-04-19 07:09:59 +00:00
Richard van der Hoff
674306a87d following advice from Gerald, Graham Bloice, and others, let's try copying the unit test executables into the wireshark-gtk2 directory before running them.
svn path=/trunk/; revision=21472
2007-04-18 22:31:47 +00:00
Anders Broman
e7e9a81155 Fix to BUG GSM CAMEL-3 GPRS InvokeInitialDPGPRS.APN decoded incorrectly
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1543

svn path=/trunk/; revision=21471
2007-04-18 21:52:11 +00:00
Martin Mathieson
d01b682f52 Make specifier string match args
(may not be the intended formatting, but it builds...)

svn path=/trunk/; revision=21468
2007-04-18 09:23:27 +00:00
Tomas Kukosa
a6a0a76c45 usage of new #.MAKE_DEFINES asn2wrs directive in RNSAP
svn path=/trunk/; revision=21467
2007-04-18 08:58:48 +00:00
Jeff Morriss
ee73a2aff2 Don't use DISSECTOR_ASSERT to (essentially) verify packet data. Instead
add an expert info entry if the AVP length is 0 and just return after
dissecting that AVP.

svn path=/trunk/; revision=21465
2007-04-18 07:06:56 +00:00
Anders Broman
5e859c36d7 Add a comment.
svn path=/trunk/; revision=21464
2007-04-18 06:32:00 +00:00
Anders Broman
3f3d0d3d44 From Michael Lum:
This patch implements parameter dissection for about 1/2 to 2/3 of the messages in IS-801.

Built and tested against the latest source as of Friday April 13th 2007.

svn path=/trunk/; revision=21463
2007-04-18 06:31:25 +00:00
Anders Broman
cca5f4cfbc Add an IE.
svn path=/trunk/; revision=21462
2007-04-18 06:30:23 +00:00
Jeff Morriss
bc1a33021c Pass NULL (instead of proto_) in the last parameter of tap_queue_packet()
because NULL is just as interesting as the proto_ entry and the latter
generates a compiler warning.

svn path=/trunk/; revision=21460
2007-04-18 04:13:50 +00:00
Luis Ontanon
fdbc713314 register the right dissector for tcp
Fixes Bug 1429

svn path=/trunk/; revision=21457
2007-04-17 15:46:05 +00:00
Jörg Mayer
e8d1c6bff7 Detect ELSM as such - meaning of the elements is still unknown.
svn path=/trunk/; revision=21456
2007-04-17 15:17:06 +00:00
Luis Ontanon
869b908463 Make sure ENDTRY gets evaluated
svn path=/trunk/; revision=21455
2007-04-17 15:13:17 +00:00
Jeff Morriss
ab97c31bb2 Fix warnings of the form "long long unsigned int format, guint64 arg": use
the PRI macros instead of %llu, etc.

svn path=/trunk/; revision=21454
2007-04-17 10:11:41 +00:00
Gerald Combs
5285c91f9a More .11k/n updates from Dustin Johnson:
- Measurement Pilot frame support
  - Various Block Ack fields
  - Various Power fields
  - Measurement Pilot field
  - Country String field
  - Channel Width field
  - QoS Information fields

svn path=/trunk/; revision=21452
2007-04-17 00:34:32 +00:00
Luis Ontanon
b46c4dd535 revert back to 20437
svn path=/trunk/; revision=21451
2007-04-16 23:15:03 +00:00
Gerald Combs
d0a793c353 From Tuomas Maattanen:
the current SVN (rev 21448) 802.11 WMM TSPEC dissector seems to have
some bugs.

TS Info field should be three bytes long, not two.  Suspension Interval
field is missing altogether, shifting all other fields by four bytes.
Maximum Burst Size, Minimum PHY Rate, Peak Data Rate and Delay Bound
are in wrong order.


svn path=/trunk/; revision=21450
2007-04-16 18:35:22 +00:00
Michael Tüxen
2a10f9ea96 Use recent IANA port assignments.
svn path=/trunk/; revision=21449
2007-04-16 17:03:30 +00:00
Jeff Morriss
80c7330166 Replace g_assert() with DISSECTOR_ASSERT()
svn path=/trunk/; revision=21448
2007-04-16 09:03:11 +00:00
Jeff Morriss
aaf6cfb252 From Victor Fajardo: update the PANA dissector to draft-15a
svn path=/trunk/; revision=21447
2007-04-16 08:53:33 +00:00
Jeff Morriss
3f68c1395b Fix a couple warnings
svn path=/trunk/; revision=21446
2007-04-16 08:37:39 +00:00
Tomas Kukosa
111d18c4b3 move string tables from packet-ssl-utils.h to packet-ssl-utils.c and export them
svn path=/trunk/; revision=21445
2007-04-16 06:41:56 +00:00
Jeff Morriss
00cf2ec89c Frame numbers are unsigned, print them as such
svn path=/trunk/; revision=21443
2007-04-16 04:52:51 +00:00
Jeff Morriss
1295039ee9 Wireshark now requires support for 64-bit types so there's no need to #ifdef
around them.  Print 64-bit types using the PRI macros; add inttypes.h to
tap.h (if necessary) to pick up those macros for all the taps.

svn path=/trunk/; revision=21442
2007-04-16 04:34:07 +00:00
Jörg Mayer
f59e6b9e1e Revert commit 21430 and use #if 0/#endif instead
svn path=/trunk/; revision=21440
2007-04-15 00:40:05 +00:00
Stephen Fisher
a3a02dd82e From Sake Blok:
Fix false malformed SSL handshake messages


svn path=/trunk/; revision=21438
2007-04-14 19:04:19 +00:00
Sebastien Tandel
7d89f5bf5f "false" unused variables (they are not use in wiretap repo)
svn path=/trunk/; revision=21437
2007-04-14 18:39:07 +00:00
Sebastien Tandel
06deb19f7d move ipsec to DISSECTOR_SRC
fix some more MacOSX gcc warnings

svn path=/trunk/; revision=21433
2007-04-14 15:57:03 +00:00
Sebastien Tandel
aa17869bf7 remove "treat warnings as errors" barrier for every repo containing code
generated by $(LEX) until a solution is found to compile them separately.


svn path=/trunk/; revision=21432
2007-04-14 14:07:46 +00:00
Sebastien Tandel
68ad2f4b9b fix MacOSX gcc-3.3 warnings about unused tfs/value_string variables
most have been tagged unused (few have been deleted if dissector has not been
modified since a long time)

move packet-ssl-utils.c to DISSECTOR_SRC


svn path=/trunk/; revision=21431
2007-04-14 14:01:53 +00:00
Sebastien Tandel
c3530274e0 get rid of unused variables (tfs, value_string)
svn path=/trunk/; revision=21430
2007-04-14 13:15:52 +00:00
Sebastien Tandel
84e1cfee7f delete Td4 as it is used only in rijndaelDecrypt and rijndaelDecryptRound not
present in the wireshark code

svn path=/trunk/; revision=21429
2007-04-14 11:55:19 +00:00
Sebastien Tandel
454e23c936 typo fix
svn path=/trunk/; revision=21428
2007-04-14 07:55:43 +00:00
Jörg Mayer
8f3934e243 Beginnings of a Cisco ERSPAN dissector - the only thing missing is the code
to actually call this (aka to handle the ambiguities of DLT values).

svn path=/trunk/; revision=21427
2007-04-14 01:07:36 +00:00
Sebastien Tandel
2878fd21d6 don't treat warnings as errors until a solution is found for scanner.c
depending on the lex used, it may generates warning.

svn path=/trunk/; revision=21424
2007-04-13 23:40:50 +00:00
Stephen Fisher
fa57c8fc44 Fix some Solaris buildbot warnings
svn path=/trunk/; revision=21423
2007-04-13 23:32:21 +00:00
Stephen Fisher
63692e83f8 Remove unused variable that is causing a warning
svn path=/trunk/; revision=21420
2007-04-13 22:50:47 +00:00
Sebastien Tandel
e51e1e7560 move to CLEAN_DISSECTOR_SRC
svn path=/trunk/; revision=21418
2007-04-13 22:40:42 +00:00
Sebastien Tandel
be81a9cabb fix gcc warning
svn path=/trunk/; revision=21416
2007-04-13 20:38:19 +00:00
Gerald Combs
1295325704 802.11k/n updates from Dustin Johnson:
- Refactored Frame Control into its own function
  - Refactored the Action field
  - Add Block Ack/Block Ack Request
  - Add a Control Wrapper stub
  - Add the Neigbor Report tag
  - Add the Extended Channel Switch Announcement tag
  - Add the Supported Regulatory Classes tag
  - Add the Secondary Channel Offset tag

svn path=/trunk/; revision=21415
2007-04-13 19:28:03 +00:00
Sebastien Tandel
75d1cac3a9 ultimate declaration of a volatile variable to let gcc-3.4 happy.
svn path=/trunk/; revision=21414
2007-04-13 18:08:27 +00:00
Luis Ontanon
06a52917ad Have the h248term handle evaluated as late as possible.
svn path=/trunk/; revision=21413
2007-04-13 17:46:54 +00:00
Sebastien Tandel
a7615a1afb another attempt to let windows buildbot becoming green
fix rev21398 (gcc warning fix)

svn path=/trunk/; revision=21412
2007-04-13 17:16:24 +00:00
Sebastien Tandel
7be3171467 miss some volatile qualifiers in scsi-osd
svn path=/trunk/; revision=21411
2007-04-13 15:52:04 +00:00
Sebastien Tandel
8dc9e333ea fix some gcc warnings and put dissectors in CLEAN_DISSECTOR_SRC
svn path=/trunk/; revision=21410
2007-04-13 15:25:33 +00:00
Sebastien Tandel
42791e157b use of volatile for every functions and not only the ones using the Exception
mechanisms. (fix rev21398)

Windows buildbot sould be green again as formal parameters are the same as the
ones in the declaration now.

svn path=/trunk/; revision=21409
2007-04-13 15:23:47 +00:00
Sebastien Tandel
a9db1f7a77 fix gcc warning :
use of new_register_dissector instead of register_dissector

svn path=/trunk/; revision=21408
2007-04-13 14:55:55 +00:00
Tomas Kukosa
18808d7525 H.235.7: MIKEY in H.323
svn path=/trunk/; revision=21406
2007-04-13 14:15:12 +00:00
Jeff Morriss
07953c95a6 From Kevin A. Noll via bug 1522:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1522

Support for WLCCP version 0xC1.

Also updated his email address in AUTHORS.


svn path=/trunk/; revision=21404
2007-04-13 06:49:22 +00:00
Jeff Morriss
46e52aa261 Change the prototypes of dissect_spc_inquiry() and dissect_spc_reportluns()
as per the change in rev 21398 to get Windows builds working again.


svn path=/trunk/; revision=21403
2007-04-13 06:24:58 +00:00
Gerald Combs
536dd665a4 Fix a mis-labeled field reported in Ethereal bug 1101. Update all
of the short descriptions and fill in all of the long descriptions.
Fix up whitespace.

svn path=/trunk/; revision=21401
2007-04-13 05:44:57 +00:00
Bill Meier
e6a1e67017 Fix for link commands for exntest.exe, tvbtest.exe and reassemble_test.exe;
(Seems to work using vc6 on Windows XP).

svn path=/trunk/; revision=21400
2007-04-13 01:53:14 +00:00
Stephen Fisher
994846f215 Fix unused variable warning when neither SSL_DECRYPT_DEBUG nor HAVE_LIBGNUTLS is defined.
svn path=/trunk/; revision=21399
2007-04-13 01:03:55 +00:00
Stephen Fisher
f002ac6db5 Fix various warnings
Move packet-cops.c out of clean dissectors due to a #define conflict
in the headers of net-snmp with our config.h


svn path=/trunk/; revision=21398
2007-04-13 00:50:23 +00:00
Luis Ontanon
5f5f656108 From: Balint Reczey
I would like to handle the rare situation of Little Endian encoded
IP addresses, so i added a function which reads the address with
tvb_get_ipv4(), then swaps the bytes before SET_ADDRESS().


svn path=/trunk/; revision=21397
2007-04-12 22:45:22 +00:00
Sebastien Tandel
bbf2ad0977 move dissectors which compiles without any warning from DISSECTOR_SRC to
CLEAN_DISSECTOR_SRC

svn path=/trunk/; revision=21396
2007-04-12 22:43:45 +00:00
Sebastien Tandel
07eec0b469 include packet-ipv6.h for capture_ipv6 function
svn path=/trunk/; revision=21395
2007-04-12 22:42:31 +00:00
Sebastien Tandel
9eb8eca6c4 get rid of unused variable
svn path=/trunk/; revision=21394
2007-04-12 22:39:16 +00:00
Sebastien Tandel
e26748f068 set unused parameters flags to fiw some gcc warnings
svn path=/trunk/; revision=21393
2007-04-12 22:38:36 +00:00
Anders Broman
2d7b1da3bf Workaround for the ber CHOICE crash.
svn path=/trunk/; revision=21392
2007-04-12 20:37:08 +00:00
Gerald Combs
94dbb06046 Additional 802.11k/n support from Dustin Johnson and myself:
- Break out and display A-MSDUs
  - HT Control field (currently disabled)
  - Action No Ack
  - HT Information IE
  - HT Capability IE
  - Block Ack Request
  - Secondary Channel Offset Tag
  - Measurement Request Tag
  - Measurement Report Tag

...along with a bunch of other updates, including displaying the
type/subtype as a hex value (first nibble: type, second nibble: subtype).

svn path=/trunk/; revision=21391
2007-04-12 18:42:19 +00:00
Sebastien Tandel
d99d6ccba5 From Matthijs Mekking :
New dissector support, SHIM6

checked in with the following modifications :
  - use of proto_tree_add_item whenever possible (addition of several hf_items),
  - use distinct subtree idx for each subtree,
  - addition of some subtrees,
  - split shim_opts in several functions,
  - accurate incrementation of offset in locator preferences (in case of option length > 3)
  - add true_false_string for critical options and protocol differentiation (hip, shim6)
  - add ipv6.shim6.checkksum_good, ipv6.shim6.checkksum_bad, cksum expert info

section added to AUTHORS


svn path=/trunk/; revision=21390
2007-04-12 17:34:30 +00:00
Martin Mathieson
4b18fbc8a5 Add Via sigcomp-id param (from draft-ietf-rohc-sigcomp-sip)
svn path=/trunk/; revision=21389
2007-04-12 14:31:49 +00:00
Richard van der Hoff
dae27a8aa6 try linking against user32.lib and wsock32.lib
svn path=/trunk/; revision=21386
2007-04-11 23:20:02 +00:00
Luis Ontanon
5b08821866 have tvbrange:get_ipv4() not modifying the byte order of the extraced data.
have Proto.new() registering the protocol by name.


svn path=/trunk/; revision=21385
2007-04-11 19:24:19 +00:00
Gerald Combs
19ac60d3a7 From Stig Bjørlykke:
This patch adds an option to IEEE 802.11 to ignore the wep bit with IV,
as mentioned in
http://www.wireshark.org/lists/wireshark-dev/200704/msg00021.html

I also fixed a bug where the packet is dissected different in the Packet
List with and without "Colorize Packet List" (actually when dissecting
with and without "tree").  Try toggling "Colorize Packet List" with my
previous posted ieee80211-wep.pcap without this patch to see the bug.

The patch is tested on OSX.

svn path=/trunk/; revision=21384
2007-04-11 15:15:28 +00:00
Martin Mathieson
c958b0b8fc Dissect IPPRIM conn_id field.
svn path=/trunk/; revision=21383
2007-04-11 14:34:56 +00:00
Richard van der Hoff
0d6e4649f5 fix typos
svn path=/trunk/; revision=21382
2007-04-11 12:26:02 +00:00
Tomas Kukosa
fa4e3ac28b make packet-ssl-utils.c compileable without GnuTLS
svn path=/trunk/; revision=21381
2007-04-11 05:54:15 +00:00
Richard van der Hoff
d1f795d28e right; this is going badly.
Let's take a different tack: include only the bare minimum, and set up stubs for everything else.

svn path=/trunk/; revision=21379
2007-04-11 00:22:58 +00:00
Anders Broman
8d756c3049 Add a reference.
svn path=/trunk/; revision=21377
2007-04-10 21:02:50 +00:00
Anders Broman
6898074943 Dissect a bit more of the h263 data.
svn path=/trunk/; revision=21376
2007-04-10 21:01:54 +00:00
Luis Ontanon
31a68c4802 fix another warning
svn path=/trunk/; revision=21374
2007-04-10 18:50:57 +00:00
Richard van der Hoff
5a7c666d1e From Sake Blok:
- changed dissect_ssl2_hnd_client_hello to use hf_ssl_handshake_version instead
of hf_ssl_record_version. SSLv2 client hello's did not display when the filter
ssl.handshake.version == 0x0002 was used, only SSLv2 server hello's were
displayed. Now they are both displayed

- Added generated hf_ssl_record_version to SSLv2 handshake. Since the SSLv2
does not include a record layer version field (unlike SSLv3), this field is
generated so that all packets with a SSLv2 record layer can be filtered out.
[this is actually what bug 1503 was all about]


svn path=/trunk/; revision=21373
2007-04-10 18:40:05 +00:00
Richard van der Hoff
794b272985 From Sake Blok:
wireshark SHOULD be able to filter on multiple hf's with the
same field-name, BUT there is a little bug in the code. I have pinpointed it to
the following in epan/dfilter/dfvm.c:
...
It actually loops through all the hf's with the same name, but only checks
against the original (first) hf.


svn path=/trunk/; revision=21372
2007-04-10 18:31:36 +00:00
Richard van der Hoff
3608bc694a fix a number of warnings, and type of ssl_decrypt_record when HAVE_LIBGNUTLS is not defined.
svn path=/trunk/; revision=21371
2007-04-10 18:09:51 +00:00
Richard van der Hoff
5851b8aa40 remove dependency on zlib.h
svn path=/trunk/; revision=21370
2007-04-10 17:57:47 +00:00
Richard van der Hoff
901b6d1c55 fix typo in eth_stdio_fopen defn
svn path=/trunk/; revision=21369
2007-04-10 17:34:32 +00:00
Tomas Kukosa
9f2ccb7fc0 - SSL desegmentation support
- SSL DEFLATE compression method support (RFC3749)
- fix for Bugzilla Bug 1515: SSL bug with mutual authentication

svn path=/trunk/; revision=21368
2007-04-10 15:12:48 +00:00
Jeff Morriss
4d21c49929 Get rid of some more g_assert*()'s in the dissectors. There are a few
remaining that I'm not sure exactly what to do with at the moment:
the one in packet-frame probably should be there, the others probably
shouldn't but they also should never fail unless there's a compile or build
problem (AFAICS).


svn path=/trunk/; revision=21367
2007-04-10 14:48:06 +00:00
Jeff Morriss
7e2cb04ebf Fix bug 1511:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1511

by replacing g_assert() with DISSECTOR_ASSERT().


svn path=/trunk/; revision=21366
2007-04-10 14:31:09 +00:00
Richard van der Hoff
e83c397ce3 user32.lib and wsock32.lib shouldn't be make dependencies
svn path=/trunk/; revision=21365
2007-04-10 13:46:33 +00:00
Tomas Kukosa
36fe262fa8 new SE_COPY_ADDRESS macro
svn path=/trunk/; revision=21364
2007-04-10 13:35:39 +00:00
Richard van der Hoff
d72a70d653 more libs, more stubs... i'll get there one day
svn path=/trunk/; revision=21363
2007-04-10 11:51:16 +00:00
Jeff Morriss
38b1e3f285 From David Kennedy via bug 1464:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1464

Support for Symantec SGS v3 files.

svn path=/trunk/; revision=21362
2007-04-10 07:01:59 +00:00
Richard van der Hoff
ecbeb10d7f hrm, we even need dissectors.lib
svn path=/trunk/; revision=21353
2007-04-08 13:33:30 +00:00
Richard van der Hoff
bac617e731 another go at making reassemble_test build: give it lots more libraries
svn path=/trunk/; revision=21352
2007-04-08 11:48:59 +00:00
Richard van der Hoff
52727b58b7 link reassemble_test against the right library
svn path=/trunk/; revision=21351
2007-04-07 11:16:46 +00:00
Gerald Combs
a0afc5d832 Add a registration symbol cache to make-dissector-reg.py. When you
update a dissector and recompile, make-dissector-reg.py can now pull
its list of registration routines from a cache instead of having to
scan through every dissector.  The time to create register.c has gone
from 20 to 30 seconds down to 2 on my desktop machine.

The cache file is a Python pickle data stream.  It should be portable
across architectures, so we may be able to add it to the distribution
at some point.

svn path=/trunk/; revision=21348
2007-04-06 16:15:36 +00:00
Graham Bloice
85c33a07cb Remove build detritus
svn path=/trunk/; revision=21347
2007-04-06 15:51:36 +00:00
Tomas Kukosa
155b04eda3 export some desegmentation functions from TCP dissector to reuse them in SSL/TLS desegmentation
svn path=/trunk/; revision=21346
2007-04-06 07:01:01 +00:00
Ronnie Sahlberg
5f469a9e5a update of dissector to reflect wire format changes
svn path=/trunk/; revision=21345
2007-04-06 05:02:41 +00:00
Ronnie Sahlberg
d7d047acb2 initial CTDB dissector
svn path=/trunk/; revision=21344
2007-04-06 04:27:59 +00:00
Jaap Keuter
a7271dd2c0 Fix for bug 1523. Offset handling was off in DialedNumberMessage presentation.
svn path=/trunk/; revision=21343
2007-04-05 23:42:44 +00:00
Gerald Combs
f5b1443173 Fix a typo.
svn path=/trunk/; revision=21341
2007-04-05 22:44:18 +00:00
Luis Ontanon
a031a39a31 Implement proposed fix for Bug 1125
svn path=/trunk/; revision=21339
2007-04-05 22:16:12 +00:00
Gerald Combs
fdbcca2123 In epan/dissectors/Makefile.nmake, fix a typo.
In make-dissector-reg.py, throw an error if we don't have enough files
to process, or if we don't generate enough registrations.  "Enough"
is arbitrarily set to 100.

This should de-purple the buildbot.  (I'm sure there's a "smoke on the
water" joke in there somewhere.)

svn path=/trunk/; revision=21338
2007-04-05 21:38:39 +00:00
Luis Ontanon
a1120493e2 Megaco improvements:
- Verify that we have a ber sequence before handing over to H.248
- Make the dissector more case insensitive (Fixes http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1517)


svn path=/trunk/; revision=21337
2007-04-04 21:23:55 +00:00
Stephen Fisher
269edd8e7a Fix a warning
svn path=/trunk/; revision=21336
2007-04-04 19:35:46 +00:00
Graham Bloice
7710d21893 Fix build failures due to windows.h being included before winsock2.h via other includes
svn path=/trunk/; revision=21335
2007-04-04 12:18:10 +00:00
Anders Broman
a17051ebbb Add wtap_nstime_to_sec.
svn path=/trunk/; revision=21333
2007-04-04 06:56:04 +00:00
Luis Ontanon
96384817ec Make sure that when a windows exception is thrown ENDTRY gets evaluated.
fix for one of the various issues that cause bug 1334

svn path=/trunk/; revision=21332
2007-04-03 22:06:31 +00:00
Sebastien Tandel
7e8012faa5 From metatech :
Dissector for the DRDA protocol. This is the protocol used by among
  others the DB2 database.

  modify his entry in AUTHORS

svn path=/trunk/; revision=21331
2007-04-03 21:48:40 +00:00
Stephen Fisher
6625e7503f Fix warnings on Linux/gcc 4.1.1
svn path=/trunk/; revision=21330
2007-04-03 21:17:13 +00:00
Luis Ontanon
d51726941d xFi a Ytpo
svn path=/trunk/; revision=21328
2007-04-03 20:52:37 +00:00
Sebastien Tandel
edfd071881 Creation of ALL_DISSECTORS_SRC including all dissectors sources
- used in Makefile.nmake instead of DISSECTOR_SRC
 - used for the target register.c

svn path=/trunk/; revision=21327
2007-04-03 20:22:32 +00:00
Sebastien Tandel
2e26bbeda3 delete packet-drda.c
svn path=/trunk/; revision=21326
2007-04-03 20:12:05 +00:00
Richard van der Hoff
af6809a33d fix an 'unused parameter' warning
svn path=/trunk/; revision=21325
2007-04-03 19:53:05 +00:00
Sebastien Tandel
0854c90e87 epan/dissectors/Makefile is now building four libraries :
- asn dissectors : libasndissectors.la
  - pidl dissectors : libpidldissectors.la
  - normal dissectors : libdissectors.la *and* libcleandissectors.la. I
  separated it in two libraries temporarily. The source files used to build
  libcleandissectors.la do not generate warning anymore and the -Werror is used
  to compile them. If we patch a dissector and it doesn't generate warning
  anymore, we have to move the filename dissector from DISSECTOR_SRC to
  CLEAN_DISSECTOR_SRC in epan/dissectors/Makefile.common.

If you want to define specific cflags for one library type, let's say pidl, you
may define libpidldissectors_la_CFLAGS.

svn path=/trunk/; revision=21324
2007-04-03 19:50:04 +00:00
Sebastien Tandel
1c7d843166 minor changes in constants names
svn path=/trunk/; revision=21322
2007-04-03 19:13:06 +00:00
Luis Ontanon
9709011a9b Implement a proposal from Elefterios Gabriel for SCCP:
Add a table of DPCs and SSNs that allow to override the protocol that would be choosen
so that the same SSN can use two different protocols in two different DPCs.

I did not believe it someone could have done it, then I saw the captures...


svn path=/trunk/; revision=21321
2007-04-03 19:08:00 +00:00
Richard van der Hoff
8177d0f4a9 disable generation of unput to avoid a compiler warning.
svn path=/trunk/; revision=21320
2007-04-03 18:41:24 +00:00
Richard van der Hoff
38142e0e1d Set $(LINK). I swear I'll get there in a minute with this.
svn path=/trunk/; revision=21319
2007-04-03 17:30:02 +00:00
Richard van der Hoff
97bf03e456 hmm, apparently $^ doesn't work for nmake
svn path=/trunk/; revision=21318
2007-04-03 15:48:59 +00:00
Richard van der Hoff
c55799267b mpa_* stubs to make this link properly
svn path=/trunk/; revision=21317
2007-04-03 13:56:19 +00:00
Richard van der Hoff
0d949be362 rules for making the unit tests
svn path=/trunk/; revision=21316
2007-04-03 13:24:20 +00:00
Richard van der Hoff
12ae982bfc hopefully, fix reassemble_test by linking against libgcrypt
svn path=/trunk/; revision=21313
2007-04-03 11:12:27 +00:00
Jeff Morriss
755698ebcf Fix bug 1508:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1508

Dissect ISUP CIC as 14 bits in ANSI (instead of 12 bits like in ITU)


svn path=/trunk/; revision=21310
2007-04-03 06:27:18 +00:00
Richard van der Hoff
d522b25216 From me: make tvbtest return an exitcode appropriate to its success
svn path=/trunk/; revision=21308
2007-04-03 01:53:52 +00:00
Richard van der Hoff
96058b34bc From me:
disable failing composite tvb tests

svn path=/trunk/; revision=21307
2007-04-03 01:49:14 +00:00
Richard van der Hoff
606a756714 From me:
fix compiler warnings in tvbtest.c

svn path=/trunk/; revision=21306
2007-04-03 01:45:59 +00:00
Richard van der Hoff
2c14858aef From Mike Duigou:
The enclosed patch corrects a problem where jxta elements were being added to the protocol tree for segments that did not contain complete jxta frames. This patch ensures that the jxta proto elements are only added those the segments that end a complete, assembled jxta frame.

The patch has been fuzz tested with a broad selection of jxta captures and ran successfully overnight for over 4000 iterations.


svn path=/trunk/; revision=21305
2007-04-03 01:31:22 +00:00
Stephen Fisher
4d185950d7 From Donald White:
A partial RFC 2508 dissector for packet-ppp.c


svn path=/trunk/; revision=21304
2007-04-02 23:45:38 +00:00
Luis Ontanon
b68f7da564 Add decoding of TFO Codec and Codec List
svn path=/trunk/; revision=21302
2007-04-02 21:47:54 +00:00
Jörg Mayer
92dcf79a78 - Use proto_tree_add_item instead of proto_tree_add_(u)int
in many places.
- Seperate decoding of magic and version.
- Explicitely display the padding bytes.

svn path=/trunk/; revision=21301
2007-04-02 16:39:54 +00:00
Jeff Morriss
a5f4e7b85a Make RX a new style dissector: return 0 if there isn't at least 28 bytes of message or if it receives an unknown Type. Add a check of tvb length to README.developer's cut-n-paste dissector code.
svn path=/trunk/; revision=21300
2007-04-02 08:25:43 +00:00
Anders Broman
98cc46f2a4 Add comments
svn path=/trunk/; revision=21299
2007-04-02 06:49:28 +00:00
Sebastien Tandel
1382c71a43 First step of TCP dissector refactoring.
I have a dream today.
I have a dream that one day the TCP dissector shall become human-readable. :)

svn path=/trunk/; revision=21297
2007-04-01 16:04:04 +00:00
Luis Ontanon
53d3904a28 Have the prototypes of uat_esc and uat_unesc available to packet-snmp.c
svn path=/trunk/; revision=21296
2007-04-01 16:02:41 +00:00
Sebastien Tandel
3af0bc1b22 From Sake Blok :
Fix for Bug 1136 (TCP Checksum Validation)

TCP cksum 0xffff should not appear in TCP headers. RFC 1624 explains that it
can be generated by a (not-so-good) algorithm for incremental updates to the
tcp-checksum.
New behavior of wireshark when having cksum == 0xffff :
  - use "Checksum: 0xffff [should be 0x0000 (See RFC 1624)]" in the
    packet-detail pane
  - set tcp.checksum_good to FALSE (just like checksum-offload packets)
  - set tcp.checksum_bad to FALSE (just like checksum-offload packets)
  - Generate an expert warning: "TCP Checksum 0xffff instead of 0x0000 (See RFC 1624)"
  - add "[TCP CHECKSUM 0xFFFF]" instead of "[TCP CHECKSUM BAD]" to COL_INFO

svn path=/trunk/; revision=21295
2007-04-01 15:42:08 +00:00
Luis Ontanon
b2e5988e63 Fix management of lstrings in uat code so that arbitrary chars (even '\0's) can be used inside.
Fixes bug 1502


svn path=/trunk/; revision=21294
2007-04-01 14:55:25 +00:00
Anders Broman
b1454b6fbc Common dissection of GOB.
svn path=/trunk/; revision=21292
2007-03-31 21:50:03 +00:00
Luis Ontanon
ee315df6dc Add Licence and TO DO list
svn path=/trunk/; revision=21289
2007-03-31 12:25:37 +00:00
Anders Broman
bcd8023f28 Properly NULL terminate string (str[0]='\0';)
Let h263_proto_tree_add_bits return the value
Find more starcodes
Add picture type to Info col(P/I)

svn path=/trunk/; revision=21288
2007-03-31 11:47:14 +00:00
Stephen Fisher
763a80f5bb Fix more warnings
svn path=/trunk/; revision=21286
2007-03-30 21:20:57 +00:00
Sebastien Tandel
3db746a5c2 - use of proto_tree_add_item whenever possible
- follows the same rules as the one in ipv4 dissector for
ipv6_[src|dst|addr][_host] items.
- use proto_tree_add_item for displaying the name of the parsed options.
- added header type value_string
- add an expert info for invalid jumbo value and invalid router alert
length.
- correction of invalid jumbo payload length
- get rid of variable declaration after statement

svn path=/trunk/; revision=21283
2007-03-30 14:43:55 +00:00
Sebastien Tandel
c136927420 revert back (void*) -> (void**) which will stop free-warning compilation with
gcc-4.1.2


svn path=/trunk/; revision=21282
2007-03-30 12:04:40 +00:00
Sebastien Tandel
3820cff29c ep_malloc -> ep_alloc !!
svn path=/trunk/; revision=21281
2007-03-30 08:27:20 +00:00
Sebastien Tandel
76a9512a73 remove some g_malloc/g_free
svn path=/trunk/; revision=21280
2007-03-30 08:22:08 +00:00
Sebastien Tandel
01faab8977 update of homeplug dissector with the use of ptvcursor subtree management
functions.


svn path=/trunk/; revision=21278
2007-03-30 00:38:58 +00:00
Sebastien Tandel
0ca67aef30 - new ptvcursor subtrees management functions :
* ptvcursor_push_subtree(), ptvcursor_pop_subtree() for pushing/popping
    subtrees. Multiple levels of subtrees (256 max.), allocation per 8 levels.
  * Two new functions creating an item in the tree and pushing a subtree at the
    same time. These two functions accept an undefined length
    (SUBTREE_UNDEFINED_LENGTH). The length of the item is set at the next pop.
        1) ptvcursor_add_with_subtree
	2) ptvcursor_add_text_with_subtree
- get rid of potential memory leaks with g_new in ptvcursor_new().

- Documentation of the new ptvcursor functions in README.developer


svn path=/trunk/; revision=21276
2007-03-30 00:21:39 +00:00
Sebastien Tandel
c76ee5bc80 delete megaco plugin trace
svn path=/trunk/; revision=21275
2007-03-29 23:36:11 +00:00
Sebastien Tandel
8405f21ea2 strict aliasing warnings fix : replace (void**) by (void*)
svn path=/trunk/; revision=21274
2007-03-29 22:58:02 +00:00
Stephen Fisher
82b2c83149 Fix some more warnings
svn path=/trunk/; revision=21273
2007-03-29 18:09:13 +00:00
Luis Ontanon
8064e3cc64 When there are multiple mtp3 packets on a single sctp packet (m2ua) have each one has its own pcs and tap structure
svn path=/trunk/; revision=21271
2007-03-29 12:25:50 +00:00
Luis Ontanon
455bb07b1f remove debugging printf() calls left in the code.
svn path=/trunk/; revision=21270
2007-03-29 12:24:04 +00:00
Jörg Mayer
cee590823d - Add Makefile.common to EXTRA_DIST (spotted by Christopher Maynard)
- Replaced spaces at beginning of line by tab

svn path=/trunk/; revision=21267
2007-03-29 07:41:54 +00:00
Ronnie Sahlberg
35b1d57ea9 update WZCSVC idl and regenerate the dissector
svn path=/trunk/; revision=21266
2007-03-29 04:24:17 +00:00
Ronnie Sahlberg
78c12b2709 update INITSHUTDOWN and SRVSVC and regenerate with patched PIDL
svn path=/trunk/; revision=21265
2007-03-29 04:12:16 +00:00
Ronnie Sahlberg
74e19c696e regenerate the dissectors with an even newer patched version of pidl to add two more pragmas
you need this patch ontop of svn pidl to regenerate the files :

Index: lib/Parse/Pidl/Wireshark/NDR.pm
===================================================================
--- lib/Parse/Pidl/Wireshark/NDR.pm     (revision 22005)
+++ lib/Parse/Pidl/Wireshark/NDR.pm     (working copy)
@@ -916,6 +916,14 @@
        $res{headers} .= "#ifdef HAVE_CONFIG_H\n";
        $res{headers} .= "#include \"config.h\"\n";
        $res{headers} .= "#endif\n\n";
+
+       $res{headers} .= "#ifdef _MSC_VER\n";
+       $res{headers} .= "#pragma warning(disable:4005)\n";
+       $res{headers} .= "#pragma warning(disable:4013)\n";
+       $res{headers} .= "#pragma warning(disable:4018)\n";
+       $res{headers} .= "#pragma warning(disable:4101)\n";
+       $res{headers} .= "#endif\n\n";
+
        $res{headers} .= "#include <glib.h>\n";
        $res{headers} .= "#include <string.h>\n";
        $res{headers} .= "#include <epan/packet.h>\n\n";



svn path=/trunk/; revision=21262
2007-03-29 02:22:23 +00:00
Ronnie Sahlberg
c46d3f3796 fixup the idl to always use pointer for out parameters
regenerate with patched pidl


svn path=/trunk/; revision=21261
2007-03-29 02:09:48 +00:00
Ronnie Sahlberg
96f0c77591 regenerate these dissectors using a patched pidl to add some extra pragmas to keep ms compilers happy
the pidl patch required :
Index: lib/Parse/Pidl/Wireshark/NDR.pm
===================================================================
--- lib/Parse/Pidl/Wireshark/NDR.pm     (revision 22005)
+++ lib/Parse/Pidl/Wireshark/NDR.pm     (working copy)
@@ -916,6 +916,14 @@
        $res{headers} .= "#ifdef HAVE_CONFIG_H\n";
        $res{headers} .= "#include \"config.h\"\n";
        $res{headers} .= "#endif\n\n";
+
+       $res{headers} .= "#ifdef _MSC_VER\n";
+       $res{headers} .= "#pragma warning(disable:4005)\n";
+       $res{headers} .= "#pragma warning(disable:4013)\n";
+       $res{headers} .= "#endif\n\n";
+
+
+
        $res{headers} .= "#include <glib.h>\n";
        $res{headers} .= "#include <string.h>\n";
        $res{headers} .= "#include <epan/packet.h>\n\n";



svn path=/trunk/; revision=21260
2007-03-29 01:38:59 +00:00
Ronnie Sahlberg
2c0449ad5e update efs and fix conformance file to eliminate some warnings
svn path=/trunk/; revision=21259
2007-03-29 01:06:51 +00:00
Ronnie Sahlberg
79ee9a4786 update dfs and regenerate
svn path=/trunk/; revision=21258
2007-03-29 00:58:35 +00:00
Ronnie Sahlberg
e873c57309 update atsvc to latest idl
svn path=/trunk/; revision=21257
2007-03-29 00:47:41 +00:00
Ronnie Sahlberg
f0756aee6e update winreg to the latest idl
svn path=/trunk/; revision=21256
2007-03-29 00:26:35 +00:00
Ronnie Sahlberg
0ee2141ab0 regenerate winreg using the latest pidl. almost all warnings are now gone
svn path=/trunk/; revision=21255
2007-03-29 00:15:41 +00:00
Ronnie Sahlberg
4fa079b941 From
Martin Sustrik 


here's a patch to AMQP dissector. The only change is that when there are
seceral AMQP frames in single TCP packet, all of them are referred in
the info column.



svn path=/trunk/; revision=21254
2007-03-28 22:16:43 +00:00
Stephen Fisher
8fd3ee0560 Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it.


svn path=/trunk/; revision=21253
2007-03-28 21:55:11 +00:00
Luis Ontanon
32780e71e8 do not pass a null string to proto_item_append_text()
svn path=/trunk/; revision=21252
2007-03-28 19:34:35 +00:00
Luis Ontanon
339f989724 USM can be any length not just 3
svn path=/trunk/; revision=21250
2007-03-28 19:30:24 +00:00
Graham Bloice
e3f4f4ecb0 Improved cleanup of build artifacts
svn path=/trunk/; revision=21249
2007-03-28 16:32:47 +00:00
Stephen Fisher
424abc227b From Sebastien Tandel:
Remove svn:executable on packet-amqp.c


svn path=/trunk/; revision=21247
2007-03-28 16:21:48 +00:00
Graham Bloice
0c41c53935 Fixed warnings on MS VC 6.0
svn path=/trunk/; revision=21245
2007-03-28 09:03:14 +00:00
Stephen Fisher
85a464c980 Fix a bunch of warnings, add svn:keywords Id and svn:eol-style native
to packet-iuup.c.
 

svn path=/trunk/; revision=21244
2007-03-28 07:06:39 +00:00
Jörg Mayer
4b0b2c2894 Fix for http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1437
It is sufficient to make tapa discovery packets a new style dissector,
don't handle them via an additional heuristic dissector.

svn path=/trunk/; revision=21243
2007-03-28 07:03:26 +00:00
Ulf Lamping
9e78e405c0 from Gisle Vanem: some more #pragma's that MingW don't like
svn path=/trunk/; revision=21240
2007-03-28 03:56:24 +00:00
Jörg Mayer
9de252158e warning fixes
svn path=/trunk/; revision=21239
2007-03-28 03:55:27 +00:00
Stephen Fisher
fa3af74ba7 Fix a warning in packet-bittorrent.c I didn't fix right the first time and try to get the Win32 buildbot going again in packet-ndmp.c.
svn path=/trunk/; revision=21238
2007-03-27 23:33:59 +00:00
Stephen Fisher
8dabc0ded1 Fix some more warnings under gcc 4.0
svn path=/trunk/; revision=21237
2007-03-27 23:14:13 +00:00
Luis Ontanon
fc9e7b97ba remove debugging printouts.
svn path=/trunk/; revision=21236
2007-03-27 23:06:24 +00:00
Luis Ontanon
9dbe9adf50 Another iteration over sctp calls (RANAP/BSSAP) a step towards TCAP/(MAP/IMAP/CAMEL)
- Fix SUA calls (I would need some more traces to test this)


svn path=/trunk/; revision=21235
2007-03-27 23:00:55 +00:00
Luis Ontanon
8c6ad121d8 megaco
- replace #pragma for #include
- move register function and remove prototype

h248
- have dissector being called through megaco instead of registering to the same sctp.ppi


svn path=/trunk/; revision=21234
2007-03-27 22:56:07 +00:00
Stephen Fisher
ab8f589336 Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors
svn path=/trunk/; revision=21233
2007-03-27 22:50:11 +00:00
Luis Ontanon
ddddf2d668 Have retransmissions added only once per retransmitted packet.
svn path=/trunk/; revision=21232
2007-03-27 22:41:28 +00:00
Ulf Lamping
f1a58d41d4 from Peter Johansson:
compilation warnings fixed

svn path=/trunk/; revision=21230
2007-03-27 21:20:19 +00:00
Anders Broman
898b597dfb Common handling of picture layer.
svn path=/trunk/; revision=21229
2007-03-27 21:10:35 +00:00
Ulf Lamping
a66bf7f559 as Gisle Vanem noted that MingW doesn't "like" the #pragmas:
change #ifdef _WIN32 -> #ifdef _MSC_VER around pragma warnings

svn path=/trunk/; revision=21228
2007-03-27 21:09:34 +00:00
Jeff Morriss
f50a031bff Include ws_strsplit.h to override glib 1.2's (buggy) g_strsplit() as per rev 20804
svn path=/trunk/; revision=21226
2007-03-27 10:15:28 +00:00
Ulf Lamping
c2408435bc fix the remaining MSVC warnings by setting individual #pragma(warning:disable) settings - this is very certainly not the way to go, but the way to prevent additional warnings rushing in ...
svn path=/trunk/; revision=21221
2007-03-27 02:14:56 +00:00
Luis Ontanon
d1bb540b70 remove a duplicate declaration
it looks like svn's merge is not that intelligent... or may be its me?

svn path=/trunk/; revision=21218
2007-03-26 23:11:15 +00:00
Luis Ontanon
74fbeea0d5 the forgotten files from the last checkin
svn path=/trunk/; revision=21217
2007-03-26 23:06:38 +00:00
Ronnie Sahlberg
70f83dc136 add a missing constant to make the megaco dissector compile
svn path=/trunk/; revision=21216
2007-03-26 22:47:19 +00:00
Stephen Fisher
d565967b58 From Peter Johansson:
Fix warnings


svn path=/trunk/; revision=21214
2007-03-26 21:16:21 +00:00
Luis Ontanon
395f48b869 add context tracing and tap to packet-megaco.c
(have to fix the matching of wildcarded terminations as it doesn't work as it should)

svn path=/trunk/; revision=21212
2007-03-26 21:10:58 +00:00
Stephen Fisher
509883e3e9 From Doug Pratley:
The purpose of the patch is to provide a new output format (so it is
independent of -V): single line record per-packet with the fields chosen by the
user, with configuration options to control separator, quoting and whether a
header line is printed. It also extends some existing options behaviour (-c and
-a:filesize) so that they affect reading a file as well as writing one, so that
only the first <n> packets or bytes are read).


svn path=/trunk/; revision=21211
2007-03-26 20:17:05 +00:00
Ronnie Sahlberg
d5d5159b6d From Sebastien Tandel
fixes for various compiler warnings

svn path=/trunk/; revision=21210
2007-03-26 11:06:26 +00:00
Ronnie Sahlberg
29440eb4a9 from Jon Smirl
add defines for data direction (which direction in/out is data being transferred for this particylar request/response pair)
and a mask for which bits of the byte contains the type.



svn path=/trunk/; revision=21207
2007-03-26 07:58:17 +00:00
Stephen Fisher
46b8669566 Fix a bunch more warnings. Add -Werror when using --with-warnings-as-errors
under gcc to tools/lemon, plugins/mate and epan/


svn path=/trunk/; revision=21204
2007-03-26 06:10:52 +00:00
Jeff Morriss
13942d6fa3 Don't #define bzero and bcopy to be memset and memcpy on Windows, just use memset and memcpy instead.
svn path=/trunk/; revision=21201
2007-03-26 03:59:09 +00:00
Ronnie Sahlberg
80fe723473 From Jon Smirl
add a whole bunch of new descriptor types


svn path=/trunk/; revision=21199
2007-03-26 01:59:02 +00:00
Ronnie Sahlberg
f88aa196a0 From
Charles Lepple


This patch enables packet-usb.c to display all descriptors in the GET
CONFIGURATION request, regardless of whether we know how to decode
them. (All descriptors in that request share the same first two
bytes.)

It also adds the HID descriptor type (not the report descriptor,
though - that is buried in a class request, not a device request). I
am still working on actually decoding this descriptor.



svn path=/trunk/; revision=21197
2007-03-26 01:41:50 +00:00
Ronnie Sahlberg
d3283d23ea From
Martin Sustrik

additions to AMQP dissector and prettifications to the information column



svn path=/trunk/; revision=21196
2007-03-26 01:34:06 +00:00
Ronnie Sahlberg
09814fac51 From a Jon Smirl patch
rename the conversation field "class" to "interfaceClass"


svn path=/trunk/; revision=21194
2007-03-25 23:51:40 +00:00
Ronnie Sahlberg
747b009566 From Jon Smirl
change the private data pointer name from  masstorage to class_data
since there will be future class specific dissectors that will also want to hang
some extra data off these structures



svn path=/trunk/; revision=21193
2007-03-25 22:53:35 +00:00
Luis Ontanon
296a77efdc migrate packet-megaco.c from plugins/megaco to epan/dissectors
svn path=/trunk/; revision=21191
2007-03-25 21:59:16 +00:00
Luis Ontanon
0b3d2a90ff Migrate context tracing code from packet-h248.[ch] to gcp.[ch], so that the same code can be used by megaco (upcoming).
svn path=/trunk/; revision=21189
2007-03-25 21:42:26 +00:00
Guy Harris
fecd335762 Before accepting a packet in a heuristic dissector, don't fetch any data
without first checking to make sure it's available.

Clear the Info column as soon as we've accepted a packet.

In the "MPEG" dissector, if no subdissector accepts the packet, dissect
it as just "MPEG" data.

svn path=/trunk/; revision=21187
2007-03-25 21:10:10 +00:00
Guy Harris
79561053bb Before we've decided to dissect a frame, don't fetch any data before
checking to make sure it's available.

Don't dissect an audio frame if it doesn't have a valid version or layer
value.

Don't do anything with the columns until we've decided to accept a
frame.

The register routines are only called once; we don't have to check
whether they've already been called.

svn path=/trunk/; revision=21186
2007-03-25 21:07:24 +00:00
Ulf Lamping
5aa4b3cecd remove remaining warnings in epan dir and set the "treat warning as error" barrier
(epan/dissectors still waiting for a cleanup)

svn path=/trunk/; revision=21181
2007-03-25 15:13:03 +00:00
Ronnie Sahlberg
58b174de83 take the address to the structure and not the address to the first element of the structure when doing a SET_ADDRESS
svn path=/trunk/; revision=21178
2007-03-25 11:20:09 +00:00
Ronnie Sahlberg
ab407b08cf Change USB address structure back to 8 bytes in length.
It is suboptimal to have the endpoint both being the "port" and also 4 bytes out of the address.
But it looks better to have addresses as <device>.<endpoint> .


svn path=/trunk/; revision=21177
2007-03-25 11:15:09 +00:00
Ronnie Sahlberg
1053745b1c create a tap for usb so that we can do conversation/host lists
svn path=/trunk/; revision=21176
2007-03-25 09:55:49 +00:00
Ronnie Sahlberg
ab2e40bcb5 Add a small example on how to prettify the AMQP dissector
svn path=/trunk/; revision=21175
2007-03-25 08:49:47 +00:00
Ronnie Sahlberg
0e6e4b0795 From Martin Sustrik
New protocol: AMQP


svn path=/trunk/; revision=21174
2007-03-25 08:26:44 +00:00
Ronnie Sahlberg
3689e6f460 unbreaking the usb dissector
since dlt189 was introduced   the dissector has been suboptimal


assuming the capture   usb_memory_stick.pcap on the wiki shows what this linktype
should look like, this patch
- adds request in/response in/time  generated fields to the dissect pane
- fixes the tracking of what is a request and what is a response (the old code just can not have worked!)
- fixes conversation tracking to work (dont add the port/endpoint into the length of the address)
- handles some mysterious extra 8 bytes prepended to a lot of different packets.



svn path=/trunk/; revision=21173
2007-03-25 05:20:56 +00:00
Ronnie Sahlberg
8d8f94f1ae fix a bug (found by compiler warning) where we initialize the wrong variable.
svn path=/trunk/; revision=21169
2007-03-24 21:56:14 +00:00
Jeff Morriss
109388d263 Clean up some more warnings: unused variables, unitialized variables, wrong format (%ld instead of %d) in packet-sccp.c
svn path=/trunk/; revision=21167
2007-03-24 13:46:41 +00:00
Jeff Morriss
10e8a95401 Add brackets to extern of ssl_version_short_names[] to fix compiler warnings.
svn path=/trunk/; revision=21166
2007-03-24 13:21:08 +00:00
Jeff Morriss
59159fe03e Fix bug 1452: Don't pass a null pointer to g_strsplit().
svn path=/trunk/; revision=21165
2007-03-24 10:07:20 +00:00
Stephen Fisher
aa4d4f727c From Sebastien Tandel:
Fixes for warnings


svn path=/trunk/; revision=21164
2007-03-24 07:33:25 +00:00
Jaap Keuter
39517d2dbb Make some more string conversions available to plugins
svn path=/trunk/; revision=21163
2007-03-24 07:05:39 +00:00
Stephen Fisher
dfc2b16e29 Fix mess with ssl_version_short_names[] being defined multiple places
now that it is no longer a static variable in packet-ssl-utils.h.
Leaving it as static caused a warning turned error that it was unused
in the current file (packet-ssl-utils.h).  Resolution: Move the variable
to packet-ssl.c and declare as extern in packet-dtls.c - the only other
place that needs it.


svn path=/trunk/; revision=21161
2007-03-24 01:38:58 +00:00
Stephen Fisher
1909b97d4d Remove all warnings under Unix for the gtk/ directory.
svn path=/trunk/; revision=21160
2007-03-24 00:45:11 +00:00
Stephen Fisher
2896811274 Fix about 150 warnings new to gcc 4.0 in the error on warning directories.
Comment out -Werror in plugins/asn1/ until warnings can be fixed.


svn path=/trunk/; revision=21158
2007-03-23 22:49:23 +00:00
Stephen Fisher
3288a39db2 From Sebastien Tandel:
copy paste hit again, here is a patch with the accurate declaration of
RVALS in proto.h
Thx gcc-4.1.2 for finding new ways of generating strict aliasing warnings :)

patch with accurate comment and declaration.


svn path=/trunk/; revision=21157
2007-03-23 18:48:57 +00:00
Stephen Fisher
64cc1b407c From Sebastien Tandel:
(Fixing warnings)

stripped away some unused variables/parameters
+ in prefs.c
    suggestion of parentheses makes gcc happy


svn path=/trunk/; revision=21156
2007-03-23 18:45:21 +00:00
Stephen Fisher
6d8d2854c8 From Sake Blok:
Fix for bug #491: Unexpected frame.time_delta behavior

This patch ... fixes bug 491. It does this by changing the
behaviour of the frame.time_delta field so it reflects the delta
time between captured packets (tshark already did this).  To keep
the delta time between displayed packets, the field 
frame.time_delta_displayed is created.


svn path=/trunk/; revision=21154
2007-03-23 18:08:17 +00:00
Stephen Fisher
62f88a4a04 From Sebastien Tandel:
(Temporarily disable the warnings as errors default on Unix to get
to get the buildbots and people with gcc40 going again until those
additional warnings gcc40 generates can be fixed-I'm working on it
ASAP)

   Patch for configure.in which disables by default the treatment of
warnings as errors.
It can be enabled with './configure --with-warnings-as-errors'.
The macro will test first if GCC is present. If it's the case,
HAVE_WARNINGS_AS_ERRORS is defined. All the USING_GCC have been replaced
by HAVE_WARNINGS_AS_ERRORS.
With this switch, people won't suffer from unexpected warnings when
downloading svn sources during the transition time ;)


svn path=/trunk/; revision=21153
2007-03-23 17:49:59 +00:00
Graeme Lunt
1f9eafa4fb Support for Microsoft-defined enhancedKeyUsage OIDs.
svn path=/trunk/; revision=21152
2007-03-23 16:52:22 +00:00
Graeme Lunt
4829b901de Support for recognising RC4 algorithm.
svn path=/trunk/; revision=21151
2007-03-23 16:45:49 +00:00
Graeme Lunt
e9aa0abd32 Support for:
RFC2247 objectclasses and attributes (specifically "dc")
Microsoft-defined User Principal Name subjectAltName extension (used in certificates)


svn path=/trunk/; revision=21150
2007-03-23 16:44:08 +00:00
Graeme Lunt
aa2b2c82ab Support for the Microsoft-specific certificate-template and application-certificate-policies certificate extensions.
svn path=/trunk/; revision=21149
2007-03-23 16:41:26 +00:00
Graeme Lunt
53eff34d66 Support for X.411 "additional information" field.
svn path=/trunk/; revision=21148
2007-03-23 16:38:52 +00:00
Ulf Lamping
3dfa722849 fix warnings of (generated) grammar.c
svn path=/trunk/; revision=21146
2007-03-23 03:45:18 +00:00
Ulf Lamping
9977de732f disable "warning as error" for now so the buildbot runs again, grammar.c still makes trouble :-(
svn path=/trunk/; revision=21145
2007-03-23 02:27:14 +00:00