metze/wireshark/wip.git
9 years agoRevert "TODO SMB2 NegotiateContext...." ws-metze/20140924
Stefan Metzmacher [Tue, 23 Sep 2014 21:13:43 +0000 (23:13 +0200)]
Revert "TODO SMB2 NegotiateContext...."

This reverts commit df732a47f554f3ba5ce004405089d0d7fbbaf586.

9 years agoTODO SMB2 NegotiateContext....
Stefan Metzmacher [Tue, 23 Sep 2014 21:13:29 +0000 (23:13 +0200)]
TODO SMB2 NegotiateContext....

Change-Id: Iff854f2d3824c8bf9f85ce7f160979bc707df222

9 years agopacket-smb2: implement SMB2 NegotiateContexts
Stefan Metzmacher [Tue, 23 Sep 2014 21:11:25 +0000 (23:11 +0200)]
packet-smb2: implement SMB2 NegotiateContexts

Change-Id: I0a2c7ffa2490196989dce96b659337b4fee92c7e
Signed-off-by: Stefan Metzmacher <metze@samba.org>
9 years agopacket-smb2: fix getting the dataoffset in dissect_smb2_write_request()
Stefan Metzmacher [Tue, 23 Sep 2014 21:12:29 +0000 (23:12 +0200)]
packet-smb2: fix getting the dataoffset in dissect_smb2_write_request()

It's 2 byte only so we need to use tvb_get_letohs().

Change-Id: Idbab6428f4242abbbff089d7e1d1bf4cc86930b1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
9 years agoFix problems with decryption of GSSAPI-KRB5 encrypted DCE-RPC
Matthieu Patou [Sat, 20 Sep 2014 13:19:05 +0000 (06:19 -0700)]
Fix problems with decryption of GSSAPI-KRB5 encrypted DCE-RPC

9 years agorerun pidl
Gregor Beck [Wed, 22 Jan 2014 12:39:52 +0000 (13:39 +0100)]
rerun pidl

Change-Id: I3c5cb5dccbcf13d7f0c55c47545fe4acd70947dc

9 years agowitness: FIX for tvb_get_unicode_string -> tvb_get_string_enc
Gregor Beck [Wed, 22 Jan 2014 12:36:28 +0000 (13:36 +0100)]
witness: FIX for tvb_get_unicode_string -> tvb_get_string_enc

9 years agoWitness: move packet-dcerpc-witness-cnf.c to witness.cnf
Gregor Beck [Tue, 7 Jan 2014 10:02:47 +0000 (11:02 +0100)]
Witness: move packet-dcerpc-witness-cnf.c to witness.cnf

9 years agowitness: cast to avoid C++ warnings
Gregor Beck [Wed, 20 Nov 2013 14:40:35 +0000 (15:40 +0100)]
witness: cast to avoid C++ warnings

9 years agowitness fix for new tvb_get_unicode_string() interface using wmem
Gregor Beck [Wed, 20 Nov 2013 13:09:57 +0000 (14:09 +0100)]
witness fix for new tvb_get_unicode_string() interface using wmem

9 years agoFIXUP: add parameter dcerpc_info to functions defined in cnf file
Gregor Beck [Wed, 20 Nov 2013 10:43:33 +0000 (11:43 +0100)]
FIXUP: add parameter dcerpc_info to functions defined in cnf file

9 years agoadd parameter dcerpc_info to PIDL_dissect_ipv?address()
Gregor Beck [Wed, 20 Nov 2013 10:29:40 +0000 (11:29 +0100)]
add parameter dcerpc_info to PIDL_dissect_ipv?address()

9 years agoadd parameter dcerpc_info to functions defined in cnf file
Gregor Beck [Wed, 20 Nov 2013 10:35:49 +0000 (11:35 +0100)]
add parameter dcerpc_info to functions defined in cnf file

9 years agorun master pidl
Gregor Beck [Tue, 19 Nov 2013 10:25:01 +0000 (11:25 +0100)]
run master pidl

9 years agoWitness: V2 RegisterEx()
Gregor Beck [Wed, 28 Aug 2013 09:54:25 +0000 (11:54 +0200)]
Witness: V2 RegisterEx()

9 years agoWitness: start to implement V2
Gregor Beck [Wed, 28 Aug 2013 09:11:55 +0000 (11:11 +0200)]
Witness: start to implement V2

9 years agoWitness: fix notify change
Gregor Beck [Tue, 6 Aug 2013 13:31:55 +0000 (15:31 +0200)]
Witness: fix notify change

9 years agoWitness: add pidl output
Gregor Beck [Mon, 29 Jul 2013 14:11:20 +0000 (16:11 +0200)]
Witness: add pidl output

9 years agoWitness: fix whitespace
Gregor Beck [Mon, 29 Jul 2013 07:52:17 +0000 (09:52 +0200)]
Witness: fix whitespace

9 years agoWitness: PIDL_dissect_ipv6address()
Gregor Beck [Mon, 29 Jul 2013 07:51:46 +0000 (09:51 +0200)]
Witness: PIDL_dissect_ipv6address()

9 years agoWitness: fix compiler warnings
Gregor Beck [Mon, 29 Jul 2013 07:29:25 +0000 (09:29 +0200)]
Witness: fix compiler warnings

9 years agoWitness: set col_info for interfaceInfo_state
Gregor Beck [Mon, 29 Jul 2013 07:24:59 +0000 (09:24 +0200)]
Witness: set col_info for interfaceInfo_state

9 years agoWitness: cleanup cnf
Gregor Beck [Mon, 29 Jul 2013 07:23:32 +0000 (09:23 +0200)]
Witness: cleanup cnf

9 years agoWitness: add move ip to tree_item
Gregor Beck [Fri, 26 Jul 2013 11:37:34 +0000 (13:37 +0200)]
Witness: add move ip to tree_item

9 years agoWitness: working witness.cnf
Gregor Beck [Fri, 26 Jul 2013 11:16:45 +0000 (13:16 +0200)]
Witness: working witness.cnf

9 years agoWitness: WIP
Gregor Beck [Fri, 26 Jul 2013 10:39:56 +0000 (12:39 +0200)]
Witness: WIP

9 years agoWitness: track context handles
Gregor Beck [Thu, 25 Jul 2013 08:43:13 +0000 (10:43 +0200)]
Witness: track context handles

9 years agoWitness: enum witness_notifyResponse_type
Gregor Beck [Thu, 25 Jul 2013 07:08:31 +0000 (09:08 +0200)]
Witness: enum witness_notifyResponse_type

9 years agoWitness: bitmap witness_interfaceInfo_flags
Gregor Beck [Thu, 25 Jul 2013 07:08:14 +0000 (09:08 +0200)]
Witness: bitmap witness_interfaceInfo_flags

9 years agoFIXUP
Gregor Beck [Thu, 25 Jul 2013 06:55:57 +0000 (08:55 +0200)]
FIXUP

9 years agoWitness: enum witness_interface_state
Gregor Beck [Thu, 25 Jul 2013 06:47:39 +0000 (08:47 +0200)]
Witness: enum witness_interface_state

9 years agoWitness: interfaceInfo_group_name + ipv4address
Gregor Beck [Thu, 25 Jul 2013 06:03:16 +0000 (08:03 +0200)]
Witness: interfaceInfo_group_name + ipv4address

9 years agoWitness: first guess
Gregor Beck [Wed, 24 Jul 2013 07:14:12 +0000 (09:14 +0200)]
Witness: first guess

9 years agosq dissect_verification_trailer
Stefan Metzmacher [Tue, 28 Jan 2014 12:23:33 +0000 (13:23 +0100)]
sq dissect_verification_trailer

9 years agoTODO: quick fix
Gregor Beck [Wed, 22 Jan 2014 10:13:15 +0000 (11:13 +0100)]
TODO: quick fix

9 years agoTMP: parse with (wrong) lenght as multiple of 2
Gregor Beck [Tue, 7 Jan 2014 08:44:03 +0000 (09:44 +0100)]
TMP: parse with (wrong) lenght as multiple of 2

9 years agosq rpc_sec_veritication_trailer
Stefan Metzmacher [Sun, 5 Jan 2014 11:55:14 +0000 (12:55 +0100)]
sq rpc_sec_veritication_trailer

9 years agosq dissect_verification_trailer
Stefan Metzmacher [Fri, 3 Jan 2014 13:13:40 +0000 (14:13 +0100)]
sq dissect_verification_trailer

9 years agodcerpc sec_vt guid_to_ep_str
Stefan Metzmacher [Fri, 3 Jan 2014 12:36:55 +0000 (13:36 +0100)]
dcerpc sec_vt guid_to_ep_str

9 years agoepan/dissectors/packet-dcerpc.c fix warnings
Stefan Metzmacher [Fri, 20 Sep 2013 01:51:56 +0000 (03:51 +0200)]
epan/dissectors/packet-dcerpc.c fix warnings

9 years agosec_vt_header: dissect cont_id + opnum
Gregor Beck [Thu, 5 Sep 2013 11:12:02 +0000 (13:12 +0200)]
sec_vt_header: dissect cont_id + opnum

9 years agosec_vt_header: dissect call_id
Gregor Beck [Thu, 5 Sep 2013 10:58:29 +0000 (12:58 +0200)]
sec_vt_header: dissect call_id

9 years agosec_vt_header: dissect drep
Gregor Beck [Wed, 4 Sep 2013 09:14:07 +0000 (11:14 +0200)]
sec_vt_header: dissect drep

9 years agoDCERPC: factor out proto_tree_add_dcerpc_drep()
Gregor Beck [Wed, 4 Sep 2013 09:03:15 +0000 (11:03 +0200)]
DCERPC: factor out proto_tree_add_dcerpc_drep()

9 years agoWIP: rpc_sec_vt
Gregor Beck [Mon, 2 Sep 2013 11:22:47 +0000 (13:22 +0200)]
WIP: rpc_sec_vt

9 years agosec_vt_pcontext
Gregor Beck [Mon, 2 Sep 2013 09:06:43 +0000 (11:06 +0200)]
sec_vt_pcontext

9 years agoFIXUP: WIP: verification_trailer
Gregor Beck [Mon, 2 Sep 2013 08:55:44 +0000 (10:55 +0200)]
FIXUP: WIP: verification_trailer

9 years agoFIXUP: sec_vt_command bitmask
Gregor Beck [Mon, 2 Sep 2013 08:35:53 +0000 (10:35 +0200)]
FIXUP: sec_vt_command bitmask

9 years agosec_vt_bitmask
Gregor Beck [Mon, 2 Sep 2013 08:04:57 +0000 (10:04 +0200)]
sec_vt_bitmask

9 years agoFIXUP: give names to sec_vt_command's
Gregor Beck [Fri, 30 Aug 2013 13:12:24 +0000 (15:12 +0200)]
FIXUP: give names to sec_vt_command's

9 years agoheader field for sec_vt_command_length
Gregor Beck [Fri, 30 Aug 2013 13:09:36 +0000 (15:09 +0200)]
header field for sec_vt_command_length

9 years agogive names to sec_vt_command's
Gregor Beck [Fri, 30 Aug 2013 13:02:28 +0000 (15:02 +0200)]
give names to sec_vt_command's

9 years agoadd bitmask for sec_vt_command
Gregor Beck [Fri, 30 Aug 2013 12:49:31 +0000 (14:49 +0200)]
add bitmask for sec_vt_command

9 years agoWIP: verification_trailer
Gregor Beck [Fri, 30 Aug 2013 12:01:29 +0000 (14:01 +0200)]
WIP: verification_trailer

9 years agoMove Auth padding to the right tree
Gregor Beck [Fri, 30 Aug 2013 12:00:56 +0000 (14:00 +0200)]
Move Auth padding to the right tree

9 years agoadd WERR_INVALID_STATE
Gregor Beck [Wed, 28 Aug 2013 10:35:00 +0000 (12:35 +0200)]
add WERR_INVALID_STATE

9 years agoadd WERR_TIMEOUT
Gregor Beck [Wed, 28 Aug 2013 09:22:05 +0000 (11:22 +0200)]
add WERR_TIMEOUT

9 years agoAdd dissector for SMB2_FSCTL_OFFLOAD_READ
Michael Adam [Thu, 23 Jan 2014 13:09:02 +0000 (14:09 +0100)]
Add dissector for SMB2_FSCTL_OFFLOAD_READ

9 years agoFix dissector of SMB2_FSCTL_PIPE_WAIT
Michael Adam [Thu, 23 Jan 2014 13:08:40 +0000 (14:08 +0100)]
Fix dissector of SMB2_FSCTL_PIPE_WAIT

9 years agopacket-smb2: pass smb2_info via private_data
Gregor Beck [Thu, 20 Sep 2012 07:21:41 +0000 (09:21 +0200)]
packet-smb2: pass smb2_info via private_data

9 years agosq FSCTL_PIPE_WAIT
Stefan Metzmacher [Fri, 3 Jan 2014 13:32:37 +0000 (14:32 +0100)]
sq FSCTL_PIPE_WAIT

9 years agosq epan/dissectors/packet-smb2.c no check_col => fsctl_pipe_wait
Stefan Metzmacher [Wed, 9 Oct 2013 09:01:49 +0000 (11:01 +0200)]
sq epan/dissectors/packet-smb2.c no check_col => fsctl_pipe_wait

9 years agoWIP: fsctl_pipe_wait
Gregor Beck [Mon, 17 Sep 2012 09:50:45 +0000 (11:50 +0200)]
WIP: fsctl_pipe_wait

9 years agoWIP: FSCTL_PIPE_WAIT
Gregor Beck [Thu, 13 Sep 2012 15:27:51 +0000 (17:27 +0200)]
WIP: FSCTL_PIPE_WAIT

9 years agoTODO needed??? packet-ntlmssp: fix possible segfault and set blob->length so the...
Stefan Metzmacher [Tue, 6 Nov 2012 09:02:59 +0000 (10:02 +0100)]
TODO needed??? packet-ntlmssp: fix possible segfault and set blob->length so the max value

9 years agoAdd a HACK patch for building a patched kerberos library
Matthieu Patou [Mon, 23 Sep 2013 06:24:24 +0000 (23:24 -0700)]
Add a HACK patch for building a patched kerberos library

Signed-off-by: Matthieu Patou <mat@matws.net>
9 years agoMIT krb5-1.6 HACK patch
Stefan Metzmacher [Sat, 25 Jul 2009 08:23:26 +0000 (10:23 +0200)]
MIT krb5-1.6 HACK patch

Apply this patch to krb5-1.6.x and build it
with a special prefix that only wireshark will use!

Then start wireshark with a script like this:

-----
metze@SERNOX:~/devel/wireshark/wireshark.git$ cat ~/bin/mxwrap.wireshark.krb5

export LD_LIBRARY_PATH="/home/metze/prefix/mit-krb5-1-6/lib/:$LD_LIBRARY_PATH"
exec /home/metze/devel/prefix/wireshark/bin/wireshark $@
gdb --args /home/metze/devel/prefix/wireshark/bin/wireshark $@
------

The LD_PRELOAD only works if the krb5 library version your system one,
then you just need to replace "libk5crypto.so", otherwise wireshark
needs to all of the custom libraries.

metze

9 years agofix for netmon 3.x captures
Stefan Metzmacher [Wed, 25 Aug 2010 05:14:40 +0000 (07:14 +0200)]
fix for netmon 3.x captures

metze

9 years agoRevert "HACK setup decryption keys for kerberos session setups smbclient..."
Stefan Metzmacher [Tue, 25 Feb 2014 14:50:00 +0000 (15:50 +0100)]
Revert "HACK setup decryption keys for kerberos session setups smbclient..."

This reverts commit e701801b515a28b997e9013fd1bdfd4c5dbbea26.

9 years agoHACK setup decryption keys for kerberos session setups smbclient...
Stefan Metzmacher [Tue, 25 Feb 2014 14:37:01 +0000 (15:37 +0100)]
HACK setup decryption keys for kerberos session setups smbclient...

Change-Id: I573e44de014ec318998e1bb612c95d877136594f

9 years agoAdded a new DSR dissector
Gilles Roudiere [Mon, 22 Sep 2014 17:42:59 +0000 (19:42 +0200)]
Added a new DSR dissector

Added a new dissector for the Dynamic Source Routing (DSR) protocol (RFC 4728)
It should correctly dissect all DSR packets, including the "Flow State
Extension" DSR packets.

See Bug #10499 for capture file

Change-Id: Ie33a1a2fe095cab19d5abfbfa8e1c79fec664a35
Reviewed-on: https://code.wireshark.org/review/4251
Reviewed-by: Bill Meier <wmeier@newsguy.com>
9 years agoQt: Fix preference bugs.
Gerald Combs [Tue, 23 Sep 2014 23:39:52 +0000 (16:39 -0700)]
Qt: Fix preference bugs.

Make sure we set the "resolved" member of the column fmt_data struct.

Emitting WiresharkApplication::AppSignals from a modal dialog can cause
event loop problems on OS X. Queue them up in PreferencesDialog and emit
them after closing.

Change-Id: I2de77778a0448db3b87d402e431b8e5f325cbbda
Reviewed-on: https://code.wireshark.org/review/4274
Reviewed-by: Gerald Combs <gerald@wireshark.org>
9 years agoAllow the HandoverPreparationInfoPDU dissector to be looked up by name and called.
Martin Mathieson [Tue, 23 Sep 2014 17:05:56 +0000 (18:05 +0100)]
Allow the HandoverPreparationInfoPDU dissector to be looked up by name and called.

Change-Id: I9c22b74d5c3329b6c7d74547d26e940c84ffc66c
Reviewed-on: https://code.wireshark.org/review/4247
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoFix presumed cut-and-pasteo.
Guy Harris [Wed, 24 Sep 2014 00:09:46 +0000 (17:09 -0700)]
Fix presumed cut-and-pasteo.

On errors *other* than a short read, we were driving on and processing
the non-data that we didn't read.

Change-Id: I6289ddf31ff7896918a030af9d1261bdc194e7d3
Reviewed-on: https://code.wireshark.org/review/4270
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoQt: Add zoom and column resize actions.
Gerald Combs [Tue, 23 Sep 2014 20:35:10 +0000 (13:35 -0700)]
Qt: Add zoom and column resize actions.

Plumb signals and slots for changing the text size in the main window.
Remove the bold font code from WiresharkApplication. It was only used in
ByteViewText. Adjust the icons a bit.

Bug: When we change the font preferences the packet list stops drawing
cached strings. I haven't been able to track down the cause.

Change-Id: I609d740c9f26265628fa4b7de1b75b0e56651387
Reviewed-on: https://code.wireshark.org/review/4269
Reviewed-by: Gerald Combs <gerald@wireshark.org>
9 years agoAdd decoding of part of access network identifier option
AndersBroman [Tue, 23 Sep 2014 15:02:13 +0000 (17:02 +0200)]
Add decoding of part of access network identifier option
fixes Bug 10492.

Change-Id: Ib01f457b74825e6c2a7aa1dc1d0f43ff4b104dea
Reviewed-on: https://code.wireshark.org/review/4267
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
9 years agoQt: Add the colorization action.
Gerald Combs [Mon, 22 Sep 2014 23:33:05 +0000 (16:33 -0700)]
Qt: Add the colorization action.

Change-Id: I846a48c35c4ef3bbbcf17d03885acc5be8c9a6b5
Reviewed-on: https://code.wireshark.org/review/4259
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
9 years agopcapng: ensure the values we now free are initialized
Evan Huus [Tue, 23 Sep 2014 04:26:28 +0000 (00:26 -0400)]
pcapng: ensure the values we now free are initialized

Should fix the remaining test suite failures.

Change-Id: I50a6cb1bf57bd6a973d4777349708b75aeb41620
Reviewed-on: https://code.wireshark.org/review/4264
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoTry to fix dist.
Gerald Combs [Tue, 23 Sep 2014 03:31:31 +0000 (20:31 -0700)]
Try to fix dist.

Change-Id: I73d269c67a0ad5bb6f67fef8da5fc4ca86f169e3
Reviewed-on: https://code.wireshark.org/review/4263
Reviewed-by: Gerald Combs <gerald@wireshark.org>
9 years agoQt: Re-enable menu icons.
Gerald Combs [Mon, 22 Sep 2014 16:59:02 +0000 (09:59 -0700)]
Qt: Re-enable menu icons.

The GNOME HIG says "Where a corresponding toolbar icon exists, a menu
icon should mirror its design." The Windows and OS X HIGs say that you
should use them for common or familiar actions but otherwise avoid
clutter. I think icons in the "File" menu look like crap. Try to strike
a balance.

Use the 16x16 application icon for both the main web site and the wiki
since that's the favicon used on both sites.

Assume that "Reload" isn't used very often and remove it from the
toolbar.

Don't use a menu icon for the about box.

Other minor fixups.

Change-Id: I855211c218d266c2e9ed5acbe05a08750ab6d157
Reviewed-on: https://code.wireshark.org/review/4246
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
9 years agoMake peekclassic_read_packet_v56() more like the _v7 version.
Guy Harris [Tue, 23 Sep 2014 01:37:50 +0000 (18:37 -0700)]
Make peekclassic_read_packet_v56() more like the _v7 version.

We can't use wtap_file_read_expected_bytes() in the _v7 version, as that
version returns an int, not a Boolean; just expand
wtap_file_read_expected_bytes() in the _v56 version, to make it look
similar to the _v7 version.

Change-Id: Id907bac265c123ad5821591c1cf081b5747724d8
Reviewed-on: https://code.wireshark.org/review/4262
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoRemove misuse of wtap_file_read_expected_bytes().
Guy Harris [Tue, 23 Sep 2014 01:13:59 +0000 (18:13 -0700)]
Remove misuse of wtap_file_read_expected_bytes().

wtap_file_read_expected_bytes() is a macro that can return a Boolean
FALSE; it should not be used in routines that don't return a Boolean.

In addition, both EOF *and* a short read, in that routine, should be
treated as a "not an IPFIX file" indication.

While we're at it, a seek failure should be treated as an error.

Change-Id: I97815bc9e78169ded567b60835cc7bcf6a0e6f0c
Reviewed-on: https://code.wireshark.org/review/4261
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoMake sure the option string pointers are set before freeing them.
Guy Harris [Tue, 23 Sep 2014 00:59:39 +0000 (17:59 -0700)]
Make sure the option string pointers are set before freeing them.

Change-Id: If86327a02e4fac7d3ed2d02b2a0c95906209dea0
Reviewed-on: https://code.wireshark.org/review/4260
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agopacket-openflow_v1.c: Rename "Padding" fields & filter-names to be consistent with...
Bill Meier [Mon, 22 Sep 2014 23:06:12 +0000 (19:06 -0400)]
packet-openflow_v1.c: Rename "Padding" fields & filter-names to be consistent with those in packet-openflow_v5.c

Change-Id: Idd78b49cad86db6f63b4f14edbf4d954120665e3
Also: remove some commented-out "Padding" hf[] entries.
Reviewed-on: https://code.wireshark.org/review/4257
Reviewed-by: Bill Meier <wmeier@newsguy.com>
9 years agopacket-openflow_v1.c: Fix a bug in dissection of openflow_features_reply_v1
Bill Meier [Mon, 22 Sep 2014 22:36:27 +0000 (18:36 -0400)]
packet-openflow_v1.c: Fix a bug in dissection of openflow_features_reply_v1

Fixes Bug #10493

Change-Id: Ia330a7b087ea184865fc437d77ee6ca57b1f2e44
Reviewed-on: https://code.wireshark.org/review/4256
Reviewed-by: Bill Meier <wmeier@newsguy.com>
9 years agoEnsure pcapng application name is dynamically allocated
Evan Huus [Mon, 22 Sep 2014 20:55:32 +0000 (16:55 -0400)]
Ensure pcapng application name is dynamically allocated

I was hasty with my original fix...

Change-Id: I339994c1afc34274a5d73eff98c4ebbf030e0f36
Reviewed-on: https://code.wireshark.org/review/4255
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoEnsure pcapng application name is always dynamically allocated
Evan Huus [Mon, 22 Sep 2014 20:53:02 +0000 (16:53 -0400)]
Ensure pcapng application name is always dynamically allocated

Change-Id: I408944dfb0fa35bae6019ed0d6d810525b2ffcae
Reviewed-on: https://code.wireshark.org/review/4254
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agopcapng: don't leak block option strings
Evan Huus [Mon, 22 Sep 2014 11:43:14 +0000 (07:43 -0400)]
pcapng: don't leak block option strings

I *think* I got all the cases; I got most of them, at any rate, and enough to
shut up valgrind in all the test cases I ran.

Change-Id: I393bac0756f577b65e400b792f6719fa6ec4056a
Reviewed-on: https://code.wireshark.org/review/4244
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoMake style more consistent.
Guy Harris [Mon, 22 Sep 2014 18:53:34 +0000 (11:53 -0700)]
Make style more consistent.

Change-Id: I4ba40504d8cc308f7c13b465fcfaa9ff5eeebcf2
Reviewed-on: https://code.wireshark.org/review/4252
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoConsistently use tab indentation.
Guy Harris [Mon, 22 Sep 2014 18:50:02 +0000 (11:50 -0700)]
Consistently use tab indentation.

(If somebody wants to convert the entire file to 4-space indentation, go
ahead.)

Change-Id: I1e3829289ac67db79eea2eb16e6a4ba40c449a8d
Reviewed-on: https://code.wireshark.org/review/4250
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years agoFix dist.
Gerald Combs [Mon, 22 Sep 2014 18:10:06 +0000 (11:10 -0700)]
Fix dist.

Change-Id: I68963f000dc927398d7d41193674e55050e7c634
Reviewed-on: https://code.wireshark.org/review/4248
Reviewed-by: Gerald Combs <gerald@wireshark.org>
9 years agoQt: Use wsiconcap while we're capturing.
Gerald Combs [Sun, 21 Sep 2014 20:28:29 +0000 (13:28 -0700)]
Qt: Use wsiconcap while we're capturing.

Set the main window icon to the "wsiconcap" version while we're capturing
similar to the GTK+ version. Verified on Windows. Not sure if this will
do anything on other platforms.

Change-Id: I9b082601a2c47e5f52cc38ac8d9b4d9f5fb9a4d9
Reviewed-on: https://code.wireshark.org/review/4230
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
9 years agofix-encoding-args.pl: Don't use a feature available only starting with perl 5.14
Bill Meier [Mon, 22 Sep 2014 14:26:33 +0000 (10:26 -0400)]
fix-encoding-args.pl: Don't use a feature available only starting with perl 5.14

Specifically: Window msys git uses an earlier version of Perl (5.8) and thus
      invoking fix-encoding-args.pl in the pre-commit hook script
      gives a Perl syntax error.

See https://code.wireshark.org/review/4172 for details

(Also see following for Perl info:
 http://www.perl.com/pub/2011/05/new-features-of-perl-514-non-destructive-substitution.html)

Change-Id: I95a222eaa31942cc6e873ffbde57c5fa5bd2a625
Reviewed-on: https://code.wireshark.org/review/4245
Reviewed-by: Bill Meier <wmeier@newsguy.com>
9 years agoBluetooth: Handle LE ACL session
Michal Labedzki [Fri, 29 Aug 2014 08:43:31 +0000 (10:43 +0200)]
Bluetooth: Handle LE ACL session

Low Energy use LE Meta event for creating connection so add session
when it occur.

Change-Id: I6fad42651a3dc6a45cfb1cf679660de5955e76b0
Reviewed-on: https://code.wireshark.org/review/4168
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
9 years agoextcap: Always create extcap/ dir in run/
Michal Labedzki [Tue, 26 Aug 2014 10:29:49 +0000 (12:29 +0200)]
extcap: Always create extcap/ dir in run/

Change-Id: I5d0a2591b9086a138cefb0019f710ffb34a34c52
Reviewed-on: https://code.wireshark.org/review/3876
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
9 years agoTry to fix some buildbot warnings
Michal Labedzki [Wed, 23 Jul 2014 10:26:05 +0000 (12:26 +0200)]
Try to fix some buildbot warnings

Most interesting are:
 warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations]
 warning: ISO C forbids zero-size array [-Wpedantic]
 warning: ISO C90 doesn't support unnamed structs/unions [-Wpedantic]
 warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual
 warning: initializer element is not computable at load time [enabled by default]

Change-Id: I5573c6bdca856a304877d9bef643f8c0fa93cdaf
Reviewed-on: https://code.wireshark.org/review/3174
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
9 years agoClean up reading code.
Guy Harris [Mon, 22 Sep 2014 10:47:24 +0000 (03:47 -0700)]
Clean up reading code.

The only place where a short read should be treated as an EOF is if the
read of the block header reads 0 bytes.  All other short reads,
including reads of the block header returning at least 1 byte but not
enough for a complete block header, and any reads of the stuff
*following* the block header even if they return 0 bytes, should be
treated as "short read" errors.

If the option length is bigger than the option buffer size, treat that
as a bad file (I'm not sure that can happen, so maybe it should be
treated as an internal error instead).

Use file_skip() rather than file_seek() when skipping forward N bytes.
If it fails, treat that as an error under all circumstances.

When reading the first section header block in the open routine, have
pcap_read_block() return -2 if it doesn't look like an SHB (too short,
wrong block type, bad block length, unknown byte-order magic number), as
that means the file isn't a pcap-ng file and the open should return 0.

Return -1, not 0, for all errors in various block-reading routines.

file_seek() returning 0 is *not* an error.  file_seek() returning -1 (or
any other negative number *is* an error; its return value is signed, so
don't assign it to an unsigned variable.

This might fix the test errors for the Lua file format handler tests.

Change-Id: Ifa7d9834c38bf238461c9cc9625a2aa761cb6ff2
Reviewed-on: https://code.wireshark.org/review/4238
Reviewed-by: Guy Harris <guy@alum.mit.edu>
9 years ago packet-infiniband: added support for RoCE-v2 (RRocE)
Wasim Abu Moch [Wed, 17 Sep 2014 16:14:52 +0000 (19:14 +0300)]
packet-infiniband: added support for RoCE-v2 (RRocE)

    Added support for the new Routable RDMA over Converged Ethernet.
    (NEW PATCH)

Change-Id: I857a27c4f29cc78fcea8efa113e3c7e968eb041b
Reviewed-on: https://code.wireshark.org/review/4156
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agodcerpc: correctly initialize certain struct fields
Evan Huus [Mon, 22 Sep 2014 02:10:33 +0000 (22:10 -0400)]
dcerpc: correctly initialize certain struct fields

Bug: 10482
Change-Id: I4d39d6a79d4ab89685a17a0c622c6181e4fada3d
Reviewed-on: https://code.wireshark.org/review/4233
Reviewed-by: Evan Huus <eapache@gmail.com>
9 years agoFix up formatting (bring function names over to column 0).
Jeff Morriss [Mon, 22 Sep 2014 01:36:14 +0000 (21:36 -0400)]
Fix up formatting (bring function names over to column 0).

Change-Id: I054f3ec13fd5907c8f1e0546292777a5596fc029
Reviewed-on: https://code.wireshark.org/review/4232
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>