Commit Graph

81609 Commits

Author SHA1 Message Date
Gtker aa650610b4 WOWW: Add equipment values to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker a5bdac52a1 WOWW: Add pet family and first login to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 9ea1b8f9ea WOWW: Add guild id and flags to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 4c232104aa WOWW: Add character positions to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker d9f6c1e59e WOWW: Add map and zone to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 49c5045728 WOWW: Add level to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker fccca6ee7b WOWW: Add character looks to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker b1e1d0b755 WOWW: Add class and gender to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 6294bf5600 WOWW: Add character race to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 3fd67e6a0f WOWW: Add initial fields of SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker db8db29e0c WOWW: Add SMSG_AUTH_RESPONSE fields
The enum is used for other opcodes as well, including SMSG_CHAR_CREATE.

Wiki reference:
https://wowdev.wiki/SMSG_AUTH_RESPONSE

Wiki reference for enum:
https://wowdev.wiki/Account_Result_Values
2021-07-27 19:08:51 +00:00
Gtker 9663f6fcf3 WOWW: Add CMSG_AUTH_SESSION fields
Wiki reference:
https://wowdev.wiki/CMSG_AUTH_SESSION
2021-07-27 19:08:51 +00:00
Gtker 2252f76075 WOWW: Add SMSG_AUTH_CHALLENGE field body
Wiki reference:
https://wowdev.wiki/SMSG_AUTH_CHALLENGE
2021-07-27 19:08:51 +00:00
Jaap Keuter afb1aff845 RakNet: Fix address bytes highlighting
Closes #17509
2021-07-27 10:41:33 +00:00
Martin Mathieson a9c6e34958 NFAPI: Fix some spellings 2021-07-27 10:34:14 +01:00
Guy Harris c4d3716ce8 macos-setup: install the current version of Ninja.
1.10.2 is the latest version, and is the first version to ship as a fat
x86-64/ARM64 binary, so that we have native binaries for both platforms
supported by macOS.
2021-07-27 00:26:28 -07:00
Evan Huus d09fb571fe asn1: convert most dissectors to pinfo->pool
Part 2/2 as the commits were too big for CI.

Largely find/replace, with a few manual tweaks. Then regenerate the asn1
dissector sources and make sure everything still builds. There are a
handful of cases I skipped as too complex, but this covers most of the
asn1 dissectors.
2021-07-26 14:00:09 -04:00
Evan Huus e69446aa55 asn1: convert most dissectors to pinfo->pool
Part 1/2 as the commits were too big for CI.

Largely find/replace, with a few manual tweaks. Then regenerate the asn1
dissector sources and make sure everything still builds. There are a
handful of cases I skipped as too complex, but this covers most of the
asn1 dissectors.
2021-07-26 15:30:11 +00:00
João Valverde 3467b98eb7 CMake: Make LTO default off, restrict to release build
Link Time Optimizations increases build time a lot so restrict
this optimization to release builds. Follow our build bots and
make this option default off.

Also LTO requires CMake >= 3.9 so make the LTO CMake option
universally conditional on that requirement.
2021-07-26 15:13:38 +00:00
João Valverde 925e01b23f Remove duplicate format_size() function
We have two format_size()s, with and without wmem scoped memory.
Move the wmem version to wsutil and add a convenience macro to
use g_malloc()ed memory.
2021-07-26 14:56:11 +00:00
João Valverde 133b0c583f Move epan/wmem/wmem_scopes.h to epan/
This header was installed incorrectly to epan/wmem_scopes.h.

Instead of creating additional installation rules for a single
header in a subfolder (kept for backward compatibility) just
rename the standard "epan/wmem/wmem.h" include to
"epan/wmem_scopes.h" and fix the documentation.

Now the header is installed *correctly* to epan/wmem_scopes.h.
2021-07-26 14:56:11 +00:00
João Valverde 7f9c1f5f92 Move wmem to wsutil
This allows wmem to be used from other libraries, namely wsutil.
It is often the case that a funtion exists in wsutil and cannot
be used with a wmem scope, requiring some code duplication or
extra memory allocations, or vice-versa, code in epan cannot be
moved to wsutil because it has a wmem dependency.

To this end wmem is moved to wsutil. Scope management remains part
of epan because those scope semantics are specific to dissection.
2021-07-26 14:56:11 +00:00
João Valverde 8310665ae7 Normalize some dissector includes 2021-07-26 14:56:11 +00:00
João Valverde 6a619212c3 Resync ASN.1 dissector sources 2021-07-26 14:09:37 +00:00
Martin Mathieson a7b5eec265 check_typed_item_calls.py: check add_bitmask() functions 2021-07-26 10:31:15 +00:00
Guy Harris 92f49886cc dumpcap: clean up capture device open errors.
1) Consistently say "capture device"; not all capture devices are
"interfaces" in the sense of "network interfaces' ("any" means "all
network interfaces", and capturing may be supported on a USB bus or on
D-Bus or....)

2) Use double quotes to quote the device specifier (it probably won't
have spaces in its name, but...).

3) Make sure that there's a space between "capture device" and the
quoted device name.
2021-07-26 01:32:23 -07:00
Gerald Combs 94d7b7846c GitLab CI: Add a retry to the Windows builds.
The Windows runners (Win32 in particular) sometimes time out during
tests. Add a retry.
2021-07-25 22:13:38 +00:00
Guy Harris 436a9fabcb btatt: fix reported dissector bug.
For better or worse, currently, if you have a field that is broken into
bitfields, the top-level field must be integral, so the entire field's
value is shown.  A case could be made that FT_NONE should be supported,
but that's not the case now.

Fixes issue #17505.
2021-07-25 13:56:40 -07:00
Guy Harris cb98aa3730 nettrace 3GPP 32.423: move the name related code together.
Initialize name_str right before we fill it in if the name is present,
and note what we're doing, to make it a bit clearer what the
initializing code is doing.
2021-07-25 13:34:11 -07:00
João Valverde 6ab67e2aa6 wslog: Minor fixes and cleanups 2021-07-25 18:21:31 +00:00
Moshe Kaplan 49ca5fa8ab libwiretap: Avoid using uninit variable
Within wiretap/nettrace_3gpp_32_423.c,
set the first byte of the buffer
to a null byte to avoid potentially
accessing uninitiliazed memory.
Fixes Coverity 1471685.
2021-07-25 17:25:44 +00:00
Gerald Combs 120b4c7e78 [Automatic update for 2021-07-25]
Update manuf, services enterprise numbers, translations, and other items.
2021-07-25 09:29:17 +00:00
Martin Mathieson a975ef7203 check_typed_item_calls.py: Add a check for all-zeroes mask
When the mask value is 0x0, it effectively means there is no
mask, and that all bits count.

Fix found instances and replace them with 0x0.
2021-07-24 10:58:15 +00:00
Gtker c8fa2c461f WOWW: Make undecryptable server messages stop decryption
Since it is (more or less) impossible to know exactly how many messages
are in a PDU we don't know how many times to increment the session key
index, meaning we might decrypt incorrectly.
To prevent this we freeze the decryption of server messages when we meet
an undecryptable message.
2021-07-24 07:42:00 +00:00
Gtker 3ed1fb4ab5 WOWW: Make additional messages appear under the proto subtree 2021-07-24 07:42:00 +00:00
Gtker c27ec08229 WOWW: Add ability to decrypt multiple messages in PDU
Without this the session key gets out of sync and the remaining messages
from that party are "encrypted".
2021-07-24 07:42:00 +00:00
Gtker 5331468770 WOWW: Make headers need decryption tree into map
In the future it will be necessary to index with a 64 bit int instead of
a 32 bit one.
2021-07-24 07:42:00 +00:00
Gtker a8aebb8947 WOWW: Change decrypted headers tree to map
In the future it will be necessary to use a bigger key than 32 bits,
making it easier to use a map instead.
2021-07-24 07:42:00 +00:00
Gtker 5b69cae53d WOWW: Add type for decrypted header 2021-07-24 07:42:00 +00:00
Gtker d5f7f80d7b WOWW: Make tree only take the data that belongs to it
Previously, any remaining data would be highlighted as belonging to the
first opcode.
2021-07-24 07:42:00 +00:00
Gtker 022b4f857f WOWW: Move tree building of headers into seperate function
This will help when dealing with several headers and bodies inside the
same packet.
2021-07-24 07:42:00 +00:00
Gtker 4473fe487f WOWW: Move adding of tree items to be closer to tree logic 2021-07-24 07:42:00 +00:00
Gtker bb6fcfdedb WOWW: Fix allocs with hardcoded values 2021-07-24 07:42:00 +00:00
Gtker db24903e4a WOWW: Refactor decryption logic
This removes unnecessary empty else blocks and makes for easier reading.
2021-07-24 07:42:00 +00:00
Gtker 26bec7e580 WOWW: Refactor header decryption logic slightly 2021-07-24 07:42:00 +00:00
Piotrek Żygieło 6fdcb8f453 Fix duplicated preposition 2021-07-23 21:15:51 +00:00
João Valverde c0ae696253 CMake: Remove some unused definitions 2021-07-23 21:23:00 +01:00
Dr. Lars Völker 8fa1a58e60 DoIP: Add better check of length field
This prevents illegal length field values to trigger asserts in
tcp_dissect_pdus as well as adding expert info for this case.

Closes: #17498
2021-07-23 12:06:08 +00:00
Dylan Ulis e9843baf6c CMS: Correct RFC 4108 Attributes
There was an extra '9' in each of the OIDs. The OIDs were already
correct in CMSFirmwareWrapper.asn (in the same directory)
2021-07-23 08:30:58 +00:00
Dylan Ulis 1be58f3644 CIP Motion: Match spec data naming
1. Move some fields under additional tree nodes, to match the
   struct names in the spec.
2. Parse data in order. Previously, some sections were parsed
   out of order, which is confusing in the tree output.
3. Improve comments/documentation to match wording in the spec
4. Remove temp_data variables and replace with actual names.
2021-07-23 08:15:00 +00:00