Commit graph

11 commits

Author SHA1 Message Date
Felix Walter
7330c79b52 style: Spacing, indentation, long lines, continuations
This harmonizes several style issues found by `checkpatch.pl` when using
strict mode.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-07-25 13:15:05 +02:00
Felix Walter
cd959647f8 Remove bundle ID and storage and replace the ID by the bundle pointer
This removes the unnecessary bundle storage manager that was built for
persistent storage but never used for that purpose. We will implement a
proper persistent storage in the new Rust version. For simplifying the
following adaptations this removes everything storage-related and
replaces the used bundle ID by the pointer.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2022-12-07 17:42:21 +01:00
Georg Alexander Murzik
298431c68f Insert SPDX license expression comments into our .c, .h, .py, and .sh code
ud3tn is available under multiple licenses and we want to reflect this in
our source code. But which license information should appear first and how
can we manage this efficiently in the future? The Linux Kernel uses SPDX
expressions instead of boilerplate sections. This seems to be a great
approach, so we do the same here.

Signed-off-by: Georg Alexander Murzik <georg.murzik@d3tn.com>
2022-02-20 16:24:38 +01:00
Felix Walter
ae8c6c9d11 AAP: Minor formatting adaptations
Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2022-01-26 21:04:02 +01:00
Tobias Nöthlich
1e1f24b2d3 Fix stylecheck errors and warnings
This commit remedies code smells introduced by implementing the BIBE
convergence layer adapter.

Signed-off-by: Tobias Nöthlich <tobias.noethlich@d3tn.com>
2021-11-29 13:07:12 +01:00
Tobias Nöthlich
c82008a2b8 Add serialize_pl switch to aap_serializer
In case of a SENDBIBE message generated by the BIBE CLA, the payload
must not be serialized when the rest of the message is serialized.

To make this possible, the serialize_pl parameter was added to the
aap_serializer. If serialize_pl is false, the serializer will skip the
payload and just serialize the rest of the AAP message.

Signed-off-by: Tobias Nöthlich <tobias.noethlich@d3tn.com>
2021-11-29 11:41:40 +01:00
Tobias Nöthlich
5ea0ce562f Add chunk read support to AAP parser
As the rx task only provides chunks of incoming messages for parsing,
the AAP parser needed a way to handle this streaming approach.

This commit adds the aap_parser_read function to aap_parser.c and
aap_parser.h, as well as the aap_parser_deinit function, to conform
to the way the CLA RX task handles things.

The aap_parser_read function allows the AAP parser to work with chunks
of AAP messages provided by the RX task, parsing as much as possible
and "requesting" more data when bytes are missing.

The aap_parser_deinit method frees the AAP parser's basedata and clears
the parsed AAP message.

Signed-off-by: Tobias Nöthlich <tobias.noethlich@d3tn.com>
2021-11-11 14:32:03 +01:00
Tobias Nöthlich
e249b34a6f Add BIBE specific message types to AAP
In order to work with BIBE bundles being sent via AAP, new message types
are needed.

This commit adds the SENDBIBE and RECVBIBE message types to AAP in order
to allow for a clear distinction of regular bundles and BIBE bundles
being sent over AAP.

Signed-off-by: Tobias Nöthlich <tobias.noethlich@d3tn.com>
2021-11-01 15:30:33 +01:00
Felix Walter
490a312c84 Adapt mentions of uPCN to uD3TN in code files and headers
This updates all remaining references in the code to mention the new
name.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2020-11-17 15:51:10 +01:00
Felix Walter
fb4238a97d Adapt core include path from upcn/ to ud3tn/
This moves all headers from upcn/ to ud3tn/ and adapts the #include
statements accordingly.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2020-11-17 15:51:10 +01:00
Felix Walter
0ce4bee910
Initial import of uPCN v0.8.0 source code
This is the initial commit for uD3TN. uD3TN is a fork of uPCN v0.8.0,
which will be developed and maintained in a public Git repository.

For questions concerning the history of and code provided with uPCN,
please get in touch with us via: contact <at> d3tn <dot> com

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2020-11-14 11:56:40 +01:00