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>
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>
This commit remedies code smells introduced by implementing the BIBE
convergence layer adapter.
Signed-off-by: Tobias Nöthlich <tobias.noethlich@d3tn.com>
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>
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>
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>
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>