Commit Graph

8 Commits

Author SHA1 Message Date
Jeremy McCormick 9b08b02d8e a615a: don't parse exception timer if A1
Trying to parse LUS and LNS files if the protocol version
was "A1" led to them being marked as a malformed packets.
THis is because protocol version A1 LUS and LNS files do
not have the exception timer field. So to fix it, we check if
the protocol version is not A1, and only if it isn't do we try to
parse the exception timer field.
2022-06-16 02:29:37 +00:00
David Perry 7f820c4a02 More descriptive names for some heuristic dissectors 2022-02-07 18:07:22 +00:00
Evan Huus e4b8a58513 ptvcursor: add explicit memory scope
I was hoping to avoid this, since the ptvcursor should already be
implicitly scoped to the tree it is working on. But there are a bunch of
call sites where the passed tree can be NULL (?) and a few places where
the tree is explicitly set/reset after creation, so requiring an
explicit scope is safer.

Avoids global memory pools in favour of ones the compiler can verify.
2021-09-16 07:12:20 +00:00
Evan Huus 8ee8808876 First pass pinfo->pool conversion, part 2
Automated find/replace of wmem_packet_scope() with pinfo->pool in all
files where it didn't cause a build failure.
2021-07-21 09:54:57 -04:00
Roman-Koshelev ecad065809 Add FIND dissector 2021-03-25 07:00:32 +00:00
Darius Davis a814a95007 arinc615a: Avoid calling g_str_has_suffix(NULL, ...).
Testing with tftpConversationError.pcapng attached to issue 10305 revealed this
warning on the console:

   GLib-CRITICAL **: 16:47:08.092: g_str_has_suffix: assertion 'str != NULL' failed

The cause is that the filename retrieved from the tftpinfo struct could
potentially be NULL when dissect_a615a_heur is called, for instance if the TFTP
RRQ/WRQ was not captured or not associated with the same conversation as the
DATA packet.

It's interesting that this condition arises from this capture
file... Perhaps the conversation tracking is amiss?  To be investigated.

Without knowing the filename, there appears to be no way to meaningfully
dissect the protocol beyond just dissecting just the file length and the
protocol version; For simplicity, I opted to maintain the present behavior and
have the heuristic test fail if the filename is not known.
2021-02-18 18:43:24 +10:00
Gerald Combs 951837a644 A615a: Fix spelling.
Fix

I: libwireshark0: spelling-error-in-binary usr/lib/x86_64-linux-gnu/libwireshark.so.0.0.0 Ammendment Amendment

found by lintian.
2020-09-13 18:01:01 +00:00
Roman-Koshelev b228b5a1b1 Add Arinc 615A dissector
Bug: 16767
Change-Id: I70a6672d46ac1ea6e495759a47a13b0b8b0c9f33
Signed-off-by: Roman-Koshelev <roman.koshelev@bk.ru>
Reviewed-on: https://code.wireshark.org/review/38112
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-08-22 17:10:27 +00:00