Commit Graph

28330 Commits

Author SHA1 Message Date
Guy Harris 3108bf8d2e Fix typo caught by Coverity - wrong structure members being tested.
CID 1271732

Change-Id: I12b610a0a28fcc790ffb041ca88624e014f68ab5
Reviewed-on: https://code.wireshark.org/review/7465
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-03-02 03:00:14 +00:00
Gerald Combs 5309591ad3 [Automatic manuf, services and enterprise-numbers update for 2015-03-01]
Change-Id: I771a79940efcbf0fcd16ccf5894169d232bdaa9d
Reviewed-on: https://code.wireshark.org/review/7454
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-01 16:06:04 +00:00
Michael Mann 9c55903029 Use COPY_ADDRESS_SHALLOW instead of duplicating TVB_SET_ADDRESS and SET_ADDRESS calls for the same address.
Change-Id: I0c9cc5d574fdd73ecf1f8b32dbbf0ddb2b885116
Reviewed-on: https://code.wireshark.org/review/7437
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-03-01 12:54:33 +00:00
Martin Kaiser 5f2c8e9575 zvt: functions for dissecting a bitmap and an apdu as a sequence of bitmaps
Change-Id: I87233df8fc17ac0aca0d9daefcebd95f47699808
Reviewed-on: https://code.wireshark.org/review/7450
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2015-03-01 12:01:31 +00:00
Guy Harris 71308753fe Convert fixed-point binary to floating-point in a portable fashion.
No need to try to construct an IEEE floating-point number by hand, piece
by piece; just sign-extend the value to 32 bits, convert that integral
value to a floating-point value, and divide the result by 32768 to
properly scale the value.

(Yes, in practice, the chances are overwhelming that we'll be running on
a machine with IEEE floating point - people probably won't be running us
on a VAX, and the UN*Xes on which we're likely to run on a System/3x0 or
z/Architecture machine require, and use, the new IEEE floating-point
capabilities - but no need to be gratuitiously non-portable.)

Change-Id: Ie90a61847e68c3b849de2984139a97004a4ad659
Reviewed-on: https://code.wireshark.org/review/7444
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-28 20:35:56 +00:00
Guy Harris 65303efe4d Remove some unneeded includes of <sys/time.h>.
Change-Id: I9e4e6efa9f8c7dbff7627f8d5fc3278ab383618d
Reviewed-on: https://code.wireshark.org/review/7441
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-28 04:59:08 +00:00
Roland Knall 30d878f070 openSAFETY: Add support for openSAFETY 1.5
openSAFETY 1.5 will be the next version of the openSAFETY
 protocol. This will include all renditions necessary for
 future versions of the IEC 61784-3 specifications.

  - SNMT service for CT preseeding
  - 40 bit counter value flag support
  - Adapt CRC calculation for 40bit counter
  - Display 40bit counter value

Change-Id: Ia9f8e11de813d27bc14437d32ee3d0486810c634
Reviewed-on: https://code.wireshark.org/review/5728
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-28 03:18:19 +00:00
Jeff Morriss 5e2dcb34cb Remove a couple useless variables.
This may fix a compile warning-turned-error on an old version of SLES that
Anders reported.

Change-Id: I72e5dec00bc0088cd77a206284221cb43ae89547
Reviewed-on: https://code.wireshark.org/review/7429
Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2015-02-27 21:10:07 +00:00
Jeff Morriss edb5e4b7ff Use getnameinfo() instead of gethostbyaddr().
Also fix up some formatting.

Change-Id: I3348179626e97daaddfbc89e3ed21e39915e3de4
Reviewed-on: https://code.wireshark.org/review/7423
Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2015-02-27 21:09:23 +00:00
Jeff Morriss e5e8af9c71 Restore synchronous name resolution (revert SVN rev52115).
These gethostbyaddr() calls should be changed to getaddrinfo() but only in
master.

Change-Id: I7e2d31ceb0e072beb7f324336d7b145c3adbe3a0
Reviewed-on: https://code.wireshark.org/review/7402
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2015-02-27 21:09:11 +00:00
Michal Labedzki 2d4817966e Qt: Automatically scroll the packet list.
Add an "Auto Scroll in Live Capture" action to the Go menu. It's in the
View menu in the GTK+ UI but it seems to make more sense as a navigation
item.

Use a timeout interval for automatic scrolling. I haven't run any tests
to see if this makes a difference but it would seem that the less
drawing we do during a high speed capture the better, particularly for
remote displays.

Update the x-stay-last icons.

Note that we might want to make prefs.capture_auto_scroll a "recent"
setting.

Mark auto_scroll_live and packet_list_check_end GTK+ only.

Bug: 10601
Co-authored-by: Gerald Combs <gerald@wireshark.org>
Change-Id: I645d27c0814f0e4a0d5b01ae68be366847e2522d
Reviewed-on: https://code.wireshark.org/review/7292
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-02-27 20:27:14 +00:00
Sean O. Stalley e4afcc83db Fixed MAUSB Flags subfield dissection
Previously, the version field was being dissected as flags.

Change-Id: Ic7d5fd6262e844c9e578dbc29cd5b6e40078ae9f
Signed-off-by: Sean O. Stalley <sean.stalley@intel.com>
Reviewed-on: https://code.wireshark.org/review/7398
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-27 15:39:14 +00:00
Sean O. Stalley 2366113c60 Added basic MA USB isochronous packet support
Iso fields in a MA USB header are now dissected,
instead of treating them as non-iso fields.

Change-Id: I13c9ba5b0c54ef0b5130c2e87c7de3de9dbe9e22
Signed-off-by: Sean O. Stalley <sean.stalley@intel.com>
Reviewed-on: https://code.wireshark.org/review/7397
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-27 15:38:22 +00:00
Sean O. Stalley bc8228b6bc Added Dissection of CancelTransfer MA packets
Type-specific subfields of CancelTransferReq/Resp are now dissected.

Change-Id: I0f03e14df936409125b263409de605dde96d53c0
Signed-off-by: Sean O. Stalley <sean.stalley@intel.com>
Reviewed-on: https://code.wireshark.org/review/7396
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-27 15:36:49 +00:00
Sean O. Stalley 9cc49a7db3 Updated MAUSB Packet Type values
Packet type values are now consistant with spec.
Also, values in enum mausb_pkt_type are now consistant with
mausb_type_string array.

Change-Id: I515332bdbc1d1f06bd03e3da314c44d7e842f2f9
Signed-off-by: Sean O. Stalley <sean.stalley@intel.com>
Reviewed-on: https://code.wireshark.org/review/7395
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-27 15:28:34 +00:00
Michael Mann 0002424f97 Remove most of the tvb_get_ptr calls in the packet-batadv.c dissector.
These calls were all getting ether addresses which can be gotten by other means.

Change-Id: I9a3d564483c9ee9b8e5183bb9086da8a315c41fc
Reviewed-on: https://code.wireshark.org/review/7421
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-27 07:42:40 +00:00
Michael Mann 14697b8aee Pass tvb and offset into print_nsap_net() and print_area() to "hide" the tvb_get_ptr call that dissectors are using.
Change-Id: Ibc5a51be462d431b85b34cac7a358d736ec7b9db
Reviewed-on: https://code.wireshark.org/review/7422
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-27 07:37:40 +00:00
Guy Harris 64c06785ea Again, we need a separate pointer to advance through the buffer.
In this case, sometimes we step through the buffer and sometimes we
don't, so we always use strlen(); use a separate pointer when we're
stepping through the buffer.

Change-Id: Id69898760b4c255146c6eae0ab44c1d358c9ccbd
Reviewed-on: https://code.wireshark.org/review/7425
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-27 04:35:57 +00:00
Guy Harris 9ac60ff0df address_to_string routines need to remember the beginning of the buffer.
Either they don't have a pointer into the buffer that they advance, in
which case strlen(buf)+1 works just fine, or they do, in which case

	1) they'd better save the pointer to the beginning of the
	   buffer, so they can figure out how long the string is when
	   they're done

and

	2) they don't need to use strlen(), they can just subtract the
	   pointers.

Bug: 11016
Change-Id: I81ce9d517336a15bd81f0c6225756ce5178ec6cf
Reviewed-on: https://code.wireshark.org/review/7424
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-27 04:16:57 +00:00
Dmitry Bazhenov 1e66e74fa2 Add dissector for "Bad Password Threshold" IPMI LAN configuration parameter.
Add dissectors for IPv6-related IPMI LAN configuration parameters.

Bug:11012
Change-Id: I9b7380d2451acb6d68a03361e26dc3a6ebc129a0
Reviewed-on: https://code.wireshark.org/review/7404
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-27 00:22:09 +00:00
Dario Lombardo 0f29e5d479 isis: bugfix in csnp source id length.
Change-Id: Ib9f8507ed0a5a0788970b5fa150917f7c1b10de3
Reviewed-on: https://code.wireshark.org/review/7418
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-02-26 18:49:52 +00:00
Pascal Quantin 123be13127 ANSI IS-637 A: ensure that num_fields is not null before calling text_decoder
Bug: 11014
Change-Id: Id2c7913d96743424380bd75c4005ec747ee7dd50
Reviewed-on: https://code.wireshark.org/review/7412
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-02-26 16:36:45 +00:00
AndersBroman e914bd5d36 [GTP CDR] Add support for CDR data record format version 12.6.0
Bug: 11015
Change-Id: Iea4a4cd4e4e8b41ef781c92c838f17ea6d16e499
Reviewed-on: https://code.wireshark.org/review/7413
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-26 15:22:52 +00:00
Dario Lombardo 354691449b rsync: improved info for protocol.
Change-Id: I9d1ae0bf1d6df0b9da0220aeff2dd73b5f18f38a
Reviewed-on: https://code.wireshark.org/review/7407
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-26 12:47:41 +00:00
Pascal Quantin bcf870e2af SMPP: AT_STRINGZ address allocation must use the pinfo pool
Fixes an ASAN failure reported by Alexis

Change-Id: I33b21d148e631e8a554882283a1c7284d701af1a
Reviewed-on: https://code.wireshark.org/review/7409
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-02-26 12:40:21 +00:00
Jeff Morriss 29feae5f98 Use tcp_dissect_pdus() in the SSTP dissector.
I happened across the discussion in Ia44e0791b6ee78ad594de342c4f2401bad9beb4e
which indicates that protocols running over SSL can use tcp_dissect_pdus() too.
So do it in the SSTP dissector.

Change-Id: I3de14c1b2af5e4e5fe3630121366b71a5ad223cf
Reviewed-on: https://code.wireshark.org/review/7333
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2015-02-26 12:34:50 +00:00
Dario Lombardo 96d1ce00eb chdlc: Added "control" to proto tree.
Change-Id: I027b6cd274673a5ae78a23f7a3d484ff83791eae
Reviewed-on: https://code.wireshark.org/review/7388
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-26 09:33:36 +00:00
Dmitry Bazhenov b034870a4d Fix a couple of bugs in IPMI dissector:
* Fix incorrect offset for Block Selector field
  in Get LAN Configuration Parameter request.
* Expect 0x83 completion code ("Attempt to read write-only parameter")
  for Get LAN Configuration Parameter command instead of
  Set LAN Configuration Parameter command.

Change-Id: I5be37c5f96db91b70329bfce906ce76f7b8b6958
Reviewed-on: https://code.wireshark.org/review/7403
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-02-26 08:20:55 +00:00
Jeff Morriss 4e12b598eb Check whether we HAVE_GETADDRINFO before using it.
One spot was missing the check.

Change-Id: I72d1d3d2dec2cc71b02861ace59dc9e189721cfb
Reviewed-on: https://code.wireshark.org/review/7401
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2015-02-26 02:44:50 +00:00
Pascal Quantin 1a3dd34923 ATN-CPDLC: never put a break in a TRY block
It will skip the execution of ENDTRY block

Bug: 9952
Change-Id: I55af248b7d31cf1b75aae695ef8c149367791820
Reviewed-on: https://code.wireshark.org/review/7391
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-02-25 18:14:21 +00:00
Jeff Morriss 03988e9aac Add the ATN dissectors to the CMake build.
Change-Id: Ic4963994ed9d1996c74c5ba3db723e93073f4649
Ping-bug: 9952
Reviewed-on: https://code.wireshark.org/review/7386
Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
2015-02-25 14:19:49 +00:00
Guy Harris ced6fbaae4 Revert "exntest: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang"
This reverts commit f9fc25241c.

Apparently, clang is wrong about those increments being dead, as the tests done by exntest fail as a result of this change. Perhaps it doesn't understand setjmp/longjmp.

Change-Id: I248fba972e52bcbc97a228777139ca22a835f4b6
Reviewed-on: https://code.wireshark.org/review/7347
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-24 19:34:50 +00:00
Roland Knall c0c6278386 openSAFETY: Remove Macro and clear dissection
Removing the macros for packet sender/receiver as it makes
 the code hard to read and maintain. the more generic routine
 opensafety_packet_node is also used for displaying the time
 request sender and recipient.

 Also clearing up the message id field, as it is the wrong size
 and making the detection for the value an hf_field with an
 array value.

Change-Id: I31cf0f944fe803fb503f4c5d29e106dfae0f6938
Reviewed-on: https://code.wireshark.org/review/7344
Reviewed-by: Roland Knall <rknall@gmail.com>
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>
2015-02-24 12:29:11 +00:00
Alexis La Goutte f9fc25241c exntest: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I91ec67e8c2168dd9a93c3894abdf304c0a75845d
Reviewed-on: https://code.wireshark.org/review/7263
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-24 09:39:46 +00:00
Daniel Mack b125feae21 epan: fix build error with gcc5
gcc5 bails out with the below error.

  CC       libwireshark_la-tvbparse.lo
  CC       libwireshark_la-tvbuff_base64.lo
tvbparse.c: In function 'cond_not_char':
tvbparse.c:254:18: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses]
     if (! offset < tt->end_offset ) {
                  ^
cc1: all warnings being treated as errors
Makefile:1843: recipe for target 'libwireshark_la-tvbparse.lo' failed

Change-Id: I4e8654e97079da6b39be580fc766eecefb4c7ea6
Reviewed-on: https://code.wireshark.org/review/7339
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-24 09:10:46 +00:00
Peter Wu 4ee6bcbd2e websocket: avoid recursion, use tcp_dissect_pdus
Use tcp_dissect_pdus to handle reassembly and avoid a recursion in
dissect_websocket. The HTTP dissector is modified to preserve
desegmentation functionality (tested with the capture from bug 8448).

As tcp_dissect_pdus is used now, the workaround for bug 8448 can be
removed and the actual frame dissection logic becomes simpler (the
length is checked in get_websocket_frame_length).

Bug: 10989
Change-Id: I67af96a6c7be88c2a77e1c4138abe90bdb880774
Reviewed-on: https://code.wireshark.org/review/7285
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-24 06:47:55 +00:00
Alexis La Goutte 30651ab18b DNS: Ignore Client Subnet option's data length when > 16
When DNS Client Subnet length is > 16, the limit coming from avoid stack smashing with tvb_memcpy

Issue reported by Boaz

Bug:10988
Change-Id: I6103ba47fac9817410c7fc399c18e96c66ab8438
Reviewed-on: https://code.wireshark.org/review/7308
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-24 06:34:44 +00:00
Pascal Quantin b9af5a5b32 proto.c: avoid corrupting stack when printing a 64 bits field in BASE_DEC_HEX or BASE_HEX_DEC format
Bug: 10994
Change-Id: Id5049054d5b04838df325f03a6bfa238a2063fb7
Reviewed-on: https://code.wireshark.org/review/7329
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-02-24 03:23:45 +00:00
unknown 5e34492a7e BSSMAP: VGCS/VBS Assignment Request wrong first parameter
According to specification first mandatary parameter is Channel Type (BE_CHAN_TYPE)
but not Current Channel Type 1 (BE_CURR_CHAN_1).
And also "Channel Type" is TLV but not TV type.

Change-Id: I740dc10930a854fcb1cf2e09a19d57a16f8cf33e
Reviewed-on: https://code.wireshark.org/review/7330
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-23 22:31:32 +00:00
Guy Harris 4a076676e0 Get rid of no-longer-needed variables.
Change-Id: I2758c4f57fdaaa61c1d73ca9b5ccaf427599a624
Reviewed-on: https://code.wireshark.org/review/7332
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-23 20:51:51 +00:00
Guy Harris 2899cf40f3 Don't add redundant information to the top-level flags item for NBNS.
We already add the opcode, a "this is a response" indication for
responses and, for non-WACK responses, the response code.  No need to
add it again.

Change-Id: I2dd0f937568057a96cd70511c872f811ea838106
Reviewed-on: https://code.wireshark.org/review/7331
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-23 20:16:55 +00:00
Pascal Quantin 255de16177 RSVD: add missing initialization of lun parameter
Bug: 10993
Change-Id: I0232cf616f880a02d50f20c67d9f76a642153737
Reviewed-on: https://code.wireshark.org/review/7328
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-02-23 13:54:36 +00:00
Peter Wu d488d6392a ssl-utils: refactor keyfile matching
Merge the three separate regexes into a single pattern and use named
groups. This avoid magic numbers (group positions) and removes a
possible error source when the ht array gets out of sync with the
patterns array (by human error).

This is supposed to be more readable and allows for easier extension of
the regex.

Change-Id: I816525f358cdb89ff9f8ebc1211139b1f8c23840
Reviewed-on: https://code.wireshark.org/review/7245
Reviewed-by: Evan Huus <eapache@gmail.com>
Petri-Dish: Evan Huus <eapache@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-23 11:46:57 +00:00
Alexis La Goutte 306c819e49 jmirror packet dissector expects ipv6 flow label = 0
When the ipv6 flow label is non-zero the dissector does not detect the payload as being ipv6.

Issue reported by Shehan Perera

Bug:10976
Change-Id: I1de4966dfefd1afa9bb51b9a7570091aad59fbdd
Reviewed-on: https://code.wireshark.org/review/7260
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-23 11:44:20 +00:00
Jeroen Sack 4c994e3bd3 L2CAP information message contained two bits that were wrongly dissected.
Change-Id: I308b6ed1a3953676212b9c0bb6cd7fc180210534
Reviewed-on: https://code.wireshark.org/review/7323
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
2015-02-23 09:25:31 +00:00
Guy Harris 6765bf722a Fix generation of address-with-resolution strings.
XXX_to_str routines should return the length, in bytes, of the generated
string, including the terminating '\0'.

As their reutrn values include the terminating '\0', we need to subtract
1 from the return value if, when appending the ")" after the address
string, we want to skip past the address string rather than skipping
past the terminating '\0'.

Change-Id: Ibfd41e6d7152d05070706e6d76fc3e56a097a75b
Reviewed-on: https://code.wireshark.org/review/7324
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-23 02:51:17 +00:00
Alexis La Goutte 1c4053f8b3 BMP: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I322be0953ce8c872f8464c3e095dfe9006d3b67b
Reviewed-on: https://code.wireshark.org/review/7261
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-02-22 20:25:21 +00:00
Guy Harris b9296b721f Fix handling of longitude and latitude values.
The formatting routine is getting passed the 5-byte value, not some
8-byte value that includes the 3 bytes after it, so shifting it produces
the wrong value.

Make the longitude and latitude FT_UINT40, as they're only 5 bytes long.

Change-Id: I35aa05887bcfdfc1107fef2ac5069f1fe96fda3a
Reviewed-on: https://code.wireshark.org/review/7321
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-22 20:22:07 +00:00
Guy Harris 08bee7d71b Clean up display of raw hex latitude/longitude values.
1) It's only 40 bits long, so show only 10 hex digits.

2) If you're putting "0x" before the number, blank-padding on the left
   looks weird; use zero-padding.

3) Fix unbalanced parentheses.

Change-Id: I76aedb1fb82f699ee08102b97b0d72e09d8c5917
Reviewed-on: https://code.wireshark.org/review/7320
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-22 20:05:14 +00:00
Guy Harris 066ae91137 Put back address family field.
Change-Id: I89d60f78a0c834663c426f5ec50c6033ba9f99e1
Reviewed-on: https://code.wireshark.org/review/7318
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-02-22 19:55:27 +00:00