Commit Graph

18 Commits

Author SHA1 Message Date
Orgad Shaneh 321f231bd9 ACDR: Fix dissection of control packets
The recorded protocol on this case is eth and not ip.
2020-11-02 20:44:07 +00:00
Guy Harris a883081b70 Update URLs pointing to the bug database.
Switch from bugs.wireshark.org to the GitLab issues list.
2020-10-03 07:54:12 -07:00
Orgad Shaneh 7445a7b831 ACDR: Add TLS_APP_TPNCP
Change-Id: If41dadf39694c0046a36ea6eaf819156f0cf5dc3
Reviewed-on: https://code.wireshark.org/review/37902
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-07-19 19:05:17 +00:00
Guy Harris e1d9a226a2 Fix the type of arrays of pointers to hf_ values for bitfield routines.
The static arrays are supposed to be arrays of const pointers to int,
not arrays of non-const pointers to const int.

Fixing that means some bugs (scribbling on what's *supposed* to be a
const array) will be caught (see packet-ieee80211-radiotap.c for
examples, the first of which inspired this change and the second of
which was discovered while testing compiles with this change), and
removes the need for some annoying casts.

Also make some of those arrays static while we're at it.

Update documentation and dissector-generator tools.

Change-Id: I789da5fc60aadc15797cefecfd9a9fbe9a130ccc
Reviewed-on: https://code.wireshark.org/review/37517
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-19 11:32:26 +00:00
Guy Harris d91b0d560a acdr: cleaner test for "is this tree item an RTP item?"
Don't rely on the item having the name "Real-Time Transport Protocol",
as that's fragile.  We could check for the abbreviation or filter name
being "rtp", but we can avoid string comparisons entirely by getting the
ID for the protocol "rtp" and comparing the item's ID with that.

Change-Id: I2a859f0b346f15a797fb5de75e0cf5c0b5abcfe9
Reviewed-on: https://code.wireshark.org/review/37490
Petri-Dish: Guy Harris <gharris@sonic.net>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-16 13:55:01 +00:00
Guy Harris 933067acc2 ACDR: don't call the JSON dissector as an ACDR media type dissector.
We pass an acdr_dissector_data_t * to dissectors for the
"acdr.media_type" dissector table, but the JSON dissector expects an
http_message_info_t *.

Hilarity ensues.

Instead, have our own dissector for VoiceAI, that calls the JSON
dissector and passes it *no* data.

Bug: 16622
Change-Id: Icb5b216ed63ab02680372836885b27de9541684c
Reviewed-on: https://code.wireshark.org/review/37484
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-06-15 22:03:54 +00:00
Dario Lombardo ef8da8e355 acdr: remove unused variables.
Change-Id: I46d6614395782288105868ec5d7c399224d926e2
Reviewed-on: https://code.wireshark.org/review/37479
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2020-06-15 09:49:44 +00:00
Dario Lombardo 976130ddf8 acdr: check existence of last_child before using it.
Bug: 16628
Change-Id: Idb6e781d4491e3b5ad52d85c35cf38115a119d10
Reviewed-on: https://code.wireshark.org/review/37478
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2020-06-15 09:49:35 +00:00
Orgad Shaneh df2f5cc677 ACDR: Fix T38 with added header
The added header is UDP, like in DTLS, and unlike all other
protocols which have IP+UDP.

Simplify also DTLS handling while at it.

Change-Id: Ie76a19087991c4f5c0d16586b67aaab69d0c5aaf
Reviewed-on: https://code.wireshark.org/review/37378
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-06-05 10:35:00 +00:00
Jaap Keuter d5fc969e57 No explicit glib.h include required
Stop including glib.h in dissectors, this will come in implicitly with
packet.h including proto.h, an essential include file for dissectors.
While at it, config.h is no longer conditional and stdio.h is usually
not needed either. Some other cleanups too.

Change-Id: I60c12f16d7ef1e6398509293031ffed7460d2c61
Reviewed-on: https://code.wireshark.org/review/36969
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-05-01 21:28:27 +00:00
Orgad Shaneh 439e9a6318 ACDR: Fix DTLS dissection
It has header_added, but the header is UDP, not IP.

Change-Id: I1a4e6f0bf655f0764abdd8c45582dd9dcbc7686c
Reviewed-on: https://code.wireshark.org/review/36880
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-19 14:44:40 +00:00
Orgad Shaneh fa1599a22a ACDR: Dissect LIX2X3 packets when the corresponding bit is enabled
Change-Id: Idac44fcb8667c9441d51678545b25ac8ba861526
Reviewed-on: https://code.wireshark.org/review/36623
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 07:05:55 +00:00
Orgad Shaneh b2e13cd782 ACDR: Remove unused udp dissector table
+ reorder dissectors to group DSP ones

Change-Id: I574eb6b1af76296b86307cd3c54bc2a16a9277a1
Reviewed-on: https://code.wireshark.org/review/36622
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 07:05:21 +00:00
Orgad Shaneh 0bbc8f7293 ACDR: Fix T38 over UDP dissection
The media type was not registered in the protocol data.

Simplify media type registration, and remove the special handling
for VoiceAI json.

Change-Id: I5ac6454d1a7a44005c50b0d03f57abfca0181196
Reviewed-on: https://code.wireshark.org/review/36621
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 07:05:12 +00:00
Orgad Shaneh 2f21e7c981 ACDR: Support LawfulIntercept bit
Change-Id: I28613791ac9262277ab1636f4ec476427c4f1db9
Reviewed-on: https://code.wireshark.org/review/36549
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-23 18:12:30 +00:00
Orgad Shaneh d582640336 ACDR: Move TPNCP registrations to TPNCP dissector
Requires less lookups, and allows overriding the registration in plugins.

Change-Id: I8fe78bf69d992737d9363ac79ed865b1d6490cda
Reviewed-on: https://code.wireshark.org/review/36124
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-02-18 09:33:59 +00:00
Orgad Shaneh ed0e320611 ACDR: Fix value display for XML media types
Wrong value used for the value string map.

Change-Id: I320f1d0bfc967beed84770efa75dee98c5f68e70
Reviewed-on: https://code.wireshark.org/review/36123
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-02-17 14:03:55 +00:00
Orgad Shaneh 32679c14be Introduce AudioCodes Debug Recording (ACDR) dissector
ACDR is a protocol over UDP that is used by AudioCodes devices for
recording traffic to and from the device.

It adds a header to each packet that contains extra data about the packet.

For some packet types (like SIP), it also appends the IP and UDP/TCP
headers of the sent/received packet.

The dissector unwraps the ACDR header, and displays the packets with the
original type (and when available, with the original addresses).

Bug: 16275
Change-Id: I19ad90053a2ef73da80881dc5e94aa362de23ea3
Reviewed-on: https://code.wireshark.org/review/35417
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-02-13 23:26:15 +00:00