Commit graph

283 commits

Author SHA1 Message Date
Michael Mann
73217d9f3f tvb_new_subset -> tvb_new_subset_length when length parameters are equal.
tvb_new_subset -> tvb_new_subset_remaining it appears that's what the intention is.

Change-Id: I2334bbf3f10475b3c22391392fc8b6864454de2d
Reviewed-on: https://code.wireshark.org/review/1999
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-06-07 15:41:07 +00:00
Pascal Quantin
37d40eb210 MAC LTE: fix dissection of Extended Power Headroom control element
Change-Id: Ia57b4769732f2e18dd2864b576c5c77fc68deb20
Reviewed-on: https://code.wireshark.org/review/1798
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-05-25 21:20:34 +00:00
Evan Huus
08ce84ebbe Grab-bag of dead initializers and two actual bugs.
All caught by cppcheck. The two (semi)-interesting bugs are:
- in asn1/atn-cpdlc/packet-atn-cpdlc-template.c where the break statement should
  have been inside the brace, causing potential control-flow weirdness with
  exceptions
- in epan/dissectors/packet-ieee80211.c where the bounds check for tag_len did
  not match the expert info given

Change-Id: Ie173fb8d917aabb9b4571435d671d6f16e1c7569
Reviewed-on: https://code.wireshark.org/review/1793
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
2014-05-25 18:12:00 +00:00
Pascal Quantin
a8456cc104 MAC LTE: add a comment explaining why g_hash_table_lookup_extended is used
Change-Id: I9d7310359d5972c603396a802abc2a82b46fe57e
Reviewed-on: https://code.wireshark.org/review/1563
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-05-08 15:42:53 +00:00
Pascal Quantin
a7ac73916f MAC LTE: fix copy/paste error
Change-Id: I59fd7745d454357d3eeaf48ed8700581a8aa0018
Reviewed-on: https://code.wireshark.org/review/1556
Reviewed-by: Evan Huus <eapache@gmail.com>
2014-05-08 13:04:07 +00:00
Pascal Quantin
4eaf1c82c5 MAC LTE: get extended BSR sizes configuration from RRC
Change-Id: I09afa7c17be5e0ed902a2c2f5ea9989df3380615
Reviewed-on: https://code.wireshark.org/review/1550
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-05-08 06:29:21 +00:00
Pascal Quantin
542b4e6742 MAC/RLC/PDCP LTE: replace obsolete APIs
Change-Id: I5368cc7b1986c6a87cb70a3fd3cb5e589d73f870
Reviewed-on: https://code.wireshark.org/review/1520
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-05-05 21:26:46 +00:00
Pascal Quantin
6c7ab457ea MAC LTE: fix compilation error
error: assignment discards 'const' qualifier from pointer target type [-Werror]

also add the missing definition of hf_mac_lte_bsr_size_median

Change-Id: I31e172a16b4afd59ba8cf5a9b281bbeaf15b6c56
Reviewed-on: https://code.wireshark.org/review/1492
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-05-04 21:08:31 +00:00
Martin Mathieson
1ddce8bb4c Have RRC tell MAC about RAPID ranges so it can show for RAPIDs seen
Change-Id: Ie9adbe3015c63e53997068053b6f8ec224a5bf82
Reviewed-on: https://code.wireshark.org/review/1474
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-05-03 21:39:20 +00:00
Martin Mathieson
0708e0923e Update SR and DRX tracking when see UL CRC error'd frame, and add an
option to add generated items corresponding to the middle of
BSR ranges (suitable for plotting/stats).

Change-Id: I73b4e82ea5fb869d93d9666b9f8c9a10562db365
Reviewed-on: https://code.wireshark.org/review/1419
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-04-28 21:15:19 +00:00
Martin Mathieson
70ff7be1e6 MAC LTE: fix a typo in Buffer Size value_string
Change-Id: Ie38726fb51a74bbcdc630550e61fa0e934ffdd1e
Reviewed-on: https://code.wireshark.org/review/618
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-03-12 17:02:07 +00:00
Alexis La Goutte
296591399f Remove all $Id$ from top of file
(Using sed : sed -i '/^ \* \$Id\$/,+1 d')

Fix manually some typo (in export_object_dicom.c and crc16-plain.c)

Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8
Reviewed-on: https://code.wireshark.org/review/497
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04 14:27:33 +00:00
Bill Meier
93fe4d53e2 Remove trailing whitespace.
Change-Id: Ia03a1cd4590aceda30ead4aa93ad413d90c6aea6
Reviewed-on: https://code.wireshark.org/review/372
Reviewed-by: Bill Meier <wmeier@newsguy.com>
Tested-by: Bill Meier <wmeier@newsguy.com>
2014-02-25 16:36:38 +00:00
Gilbert Ramirez
4cc694839d Fix all -fstrict-alias warnings found by gcc 4.1.2
The majority of the fixes are for calls to uat_new(). Instead of
having each caller cast its private data to (void**), we use void*
in the uat_new() API itself. Inside uat_new(), we cast the void*
to void**.

Some dissectors use val64_string arrays, so a VALS64() macro was
added for those, to avoid using VALS(), which is useful only for
value_string arrays.

packet-mq.c was changed because dissect_nt_sid() requires
a char**, not a guint**. All other callers of dissect_nt_sid() use
char*'s (and take the address of it) for their local storage. So,
this was changed to follow the other practices.

A confusion between gint and absolute_time_display_e in packet-time.c
was cleared up.

The ugliest fix is the addition of ip6_guint8_to_str(), for exactly
one caller. The caller uses one type of ip6 address byte array,
while ip6_to_str() expects another. This new function is in place
until the various address implementations can be consolidated.

Add VALS64() to the developer documentation.

Change-Id: If93ff5c6c8c7cc3c9510d7fb78fa9108e4552805
Reviewed-on: https://code.wireshark.org/review/48
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-02-03 09:26:10 +00:00
Bill Meier
9d0207ed90 Comment out unused hf[] entries and related found by checkhf.
svn path=/trunk/; revision=54989
2014-01-28 03:06:03 +00:00
Pascal Quantin
9de6aa8619 From Fabrice Bellard:
Add Carrier Id and detailed PHY info to MAC LTE UDP framing dissector

svn path=/trunk/; revision=54370
2013-12-22 21:16:31 +00:00
Pascal Quantin
6af6cd7089 Add out-of-band send_preamble event to UDP framing protocol
svn path=/trunk/; revision=54277
2013-12-19 22:40:49 +00:00
Pascal Quantin
d66bffb66e Add System Frame Number to UDP framing protocol and display it in info column
svn path=/trunk/; revision=54272
2013-12-19 21:40:38 +00:00
Jakub Zawadzki
e0e86bab5a Fix const warnings.
svn path=/trunk/; revision=54092
2013-12-14 14:33:46 +00:00
Jakub Zawadzki
1053e722ed Fix warnings
svn path=/trunk/; revision=54089
2013-12-14 12:45:57 +00:00
Chris Maynard
c96d5a97ad Trivial: Tab -> spaces.
svn path=/trunk/; revision=53967
2013-12-12 19:20:30 +00:00
Martin Mathieson
aad04d5963 Remove some TODOs that have now been addressed
svn path=/trunk/; revision=53961
2013-12-12 13:25:12 +00:00
Martin Mathieson
c25611b9e7 Remove an unused variable
svn path=/trunk/; revision=53933
2013-12-11 11:15:35 +00:00
Martin Mathieson
c72fa5eb95 Convert to new-style dissector, change crcStatusValid to a gboolean, and rework DRX timers (again)
svn path=/trunk/; revision=53932
2013-12-11 11:03:29 +00:00
Michael Mann
9b7fb8a811 Create the ability to have packet scoped "proto" data. Bug 9470 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9470)
I'm not sold on the name or module the proto_data functions live in, but I believe the function arguments are solid and gives us the most flexibility for the future.  And search/replace of a function name is easy enough to do.

The big driving force for getting this in sooner rather than later is the saved memory on ethernet packets (and IP packets soon), that used to have file_scope() proto data when all it needed was packet_scope() data (technically packet_info->pool scoped), strictly for Decode As.

All dissectors that use p_add_proto_data() only for Decode As functionality have been converted to using packet_scope().  All other dissectors were converted to using file_scope() which was the original scope for "proto" data.

svn path=/trunk/; revision=53520
2013-11-23 02:20:13 +00:00
Martin Mathieson
65e3e91208 Tweak filter names for expert items, mostly to consistently use - rather than _
svn path=/trunk/; revision=53514
2013-11-22 17:18:11 +00:00
Jakub Zawadzki
ae59b09443 Add missing includes in order to remove exceptions.h from proto.h (next commit).
svn path=/trunk/; revision=53230
2013-11-10 15:59:37 +00:00
Martin Mathieson
1363444506 Handle long gaps between PDUs by resetting timers, and show short-cycle-timer as part of state
svn path=/trunk/; revision=52770
2013-10-22 16:52:45 +00:00
Martin Mathieson
27d15390cc Show state of other DRX timers, and update some comments.
svn path=/trunk/; revision=52765
2013-10-22 15:56:14 +00:00
Martin Mathieson
0aac675f84 Improve the way DRX before and after state is shown.
svn path=/trunk/; revision=52747
2013-10-21 21:20:39 +00:00
Bill Meier
80b5c92af0 Remove trailing blanks; Fix some indentation;
Add editor modelines.

svn path=/trunk/; revision=52653
2013-10-16 20:35:08 +00:00
Martin Mathieson
5320a5eddd DRX: start to show state prior to and after current PDU.
svn path=/trunk/; revision=52594
2013-10-13 22:00:09 +00:00
Bill Meier
2ac134b3c5 whitespace fixes; mostly: remove trailing blanks
svn path=/trunk/; revision=52591
2013-10-13 19:56:52 +00:00
Martin Mathieson
60d0a97524 Don't update DRX state when preference is turned off
svn path=/trunk/; revision=52482
2013-10-09 22:10:15 +00:00
Martin Mathieson
795dbb7032 Separate state struct into separate config and running_state structs. Also, mod startOffset when working out if short cycle onDuration should be started
svn path=/trunk/; revision=52450
2013-10-08 17:13:34 +00:00
Martin Mathieson
7c507318b8 Starting to debug DRX support
svn path=/trunk/; revision=52443
2013-10-07 21:57:07 +00:00
Martin Mathieson
e6080d0bfb More DRX changes
svn path=/trunk/; revision=52365
2013-10-04 16:05:18 +00:00
Pascal Quantin
a2f8b3db01 Try to please Linux and OSX buildbots
svn path=/trunk/; revision=52344
2013-10-03 21:46:20 +00:00
Martin Mathieson
a0201b0c0b More DRX changes - getting closer (still mostly untested)
svn path=/trunk/; revision=52342
2013-10-03 15:04:39 +00:00
Pascal Quantin
85779fafde Remove C++ comments
svn path=/trunk/; revision=52339
2013-10-02 20:17:29 +00:00
Martin Mathieson
4b182514c4 More progress on DRX checking
svn path=/trunk/; revision=52333
2013-10-02 16:51:10 +00:00
Martin Mathieson
b3c3bd6e93 Call mac_lte_drx_control_element_received and make it static again
svn path=/trunk/; revision=52318
2013-10-01 16:19:42 +00:00
Martin Mathieson
acf8fbb75d Deep copy needed (clang warning flagged by Alexis!)
svn path=/trunk/; revision=52291
2013-09-30 10:15:50 +00:00
Martin Mathieson
9e93af2470 And also where it is declared. Doesn't VSC++ warn about anything?
svn path=/trunk/; revision=52232
2013-09-27 16:40:50 +00:00
Martin Mathieson
e8488209f8 Temporarily make an uncalled function non-static, until it gets called
svn path=/trunk/; revision=52231
2013-09-27 16:38:45 +00:00
Martin Mathieson
e4186e832d Remove unused parameter
svn path=/trunk/; revision=52230
2013-09-27 16:29:05 +00:00
Martin Mathieson
f655b556f7 Another step towards DRX support in LTE MAC
svn path=/trunk/; revision=52229
2013-09-27 16:18:09 +00:00
Martin Mathieson
eb7cb19709 Another step towards tracking UE DRX state
svn path=/trunk/; revision=52190
2013-09-23 17:34:18 +00:00
Michael Mann
9e3f9b449f expert_add_info_format_text -> expert_add_info_format
svn path=/trunk/; revision=51852
2013-09-09 00:44:09 +00:00
Martin Mathieson
e67292ff14 Move where timing reference for DRX timers will be set
svn path=/trunk/; revision=51783
2013-09-05 13:11:54 +00:00