Commit graph

11 commits

Author SHA1 Message Date
Felix Walter
82f5670f59 test/decoder: Fix stylecheck
Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-07-25 13:15:05 +02:00
Fiona Fuchs
76969bfd40 Add README.md for Data Decoder
Signed-off-by: Fiona Fuchs <fiona.fuchs@d3tn.com>
2023-06-29 12:27:33 +02:00
Fiona Fuchs
f3e07fda05 Add message information for AAP packets, delete unnecessary assertion from AAP parser, fix error in aap_parser.c
Signed-off-by: Fiona Fuchs <fiona.fuchs@d3tn.com>
2023-06-14 13:40:09 +02:00
Fiona Fuchs
2fd20437b4 Change variable name in SPP parser, add AAP parser and AAP example packets, rearrange the example bundles and packets into separate folders by protocol name
Signed-off-by: Fiona Fuchs <fiona.fuchs@d3tn.com>
2023-06-08 13:42:18 +02:00
Fiona Fuchs
433421ec22 Fix assertion error in BPv6-parser, add SPP-parser and SPP example-bundle
Signed-off-by: Fiona Fuchs <fiona.fuchs@d3tn.com>
2023-06-07 15:17:43 +02:00
Fiona Fuchs
e53b5cffed Added BPv6 parser and BPv6 example-bundle
Signed-off-by: Fiona Fuchs <fiona.fuchs@d3tn.com>
2023-05-17 15:51:07 +02:00
Felix Walter
642468f3c8 test/decoder: Do not deinit parser before checking flags
We need to access a parser internal data structure for the CRC check.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-05-17 11:37:12 +02:00
Felix Walter
72711d297b test/decoder: Add check for invalid CRC in BPv7
Otherwise the program aborts on `ASSERT(result != NULL)` in this case.
See also the BPv7 tests for an explanation of the parser's behavior.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-05-16 11:34:14 +02:00
Felix Walter
2a86a6adf8 test/decoder: Add license header
Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-05-16 11:34:14 +02:00
Felix Walter
9907affaf5 test/decoder: Initialize platform to enable logging from RX subsystem
We also need argv to be non-const for this to work. Switching to const
everywhere collides with out handling of command line arguments in
`cmdline.c`.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-05-16 11:34:14 +02:00
Felix Walter
e16ec4c579 Enable building a BPv7 decoder binary
This adds a target `data-decoder` which builds a binary to decode a
specified binary file using uD3TN's parsing logic (based on the CLA RX
subsystem) and print details about it. In this first version only the
decoding of BPv7 bundles is implemented.

This binary can be used, e.g., for fuzz testing.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-05-16 11:34:14 +02:00