|
BSL v1.0.0 - 16.g9d98179
AMMOS Bundle Protocol Security Library (BSL)
|
Declarations for Bundle storage. More...
Include dependency graph for bundle.h:
This graph shows which files directly or indirectly include this file:Data Structures | |
| struct | MockBPA_CreationTimestamp_t |
| Timestamp according to Section 4.2.7 of RFC 9171 [6]. More... | |
| struct | MockBPA_PrimaryBlock_t |
| Structure of the primary block according to Section 4.3.1 of RFC 9171 [6]. More... | |
| struct | MockBPA_CanonicalBlock_t |
| Structure of each canonical block according to Section 4.3.2 of RFC 9171 [6]. More... | |
| struct | MockBPA_Bundle_t |
Functions | |
| int | MockBPA_Bundle_Init (MockBPA_Bundle_t *bundle) |
| Initialize an empty not-really-valid bundle. | |
| int | MockBPA_Bundle_Deinit (MockBPA_Bundle_t *bundle) |
| Deinitialize any bundle storage. | |
Declarations for Bundle storage.
| int MockBPA_Bundle_Deinit | ( | MockBPA_Bundle_t * | bundle | ) |
Deinitialize any bundle storage.
This includes freeing any BTSD.
| [out] | bundle | The struct. |
References ASSERT_ARG_NONNULL, MockBPA_CanonicalBlock_t::blk_num, MockBPA_Bundle_t::blocks, MockBPA_Bundle_t::blocks_num, BSL_Data_Deinit(), BSL_free(), BSL_HostEID_Deinit(), BSL_LOG_DEBUG, MockBPA_CanonicalBlock_t::btsd, MockBPA_PrimaryBlock_t::dest_eid, MockBPA_PrimaryBlock_t::encoded, MockBPA_Bundle_t::primary_block, MockBPA_PrimaryBlock_t::report_to_eid, and MockBPA_PrimaryBlock_t::src_node_id.
Referenced by LLVMFuzzerTestOneInput(), mock_bpa_ctr_deinit(), mock_bpa_decode(), test_bsl_loopback_bundle(), and test_bsl_mock_encode_bundle().
| int MockBPA_Bundle_Init | ( | MockBPA_Bundle_t * | bundle | ) |
Initialize an empty not-really-valid bundle.
| [out] | bundle | The struct. |
References ASSERT_ARG_NONNULL, MockBPA_Bundle_t::blocks, MockBPA_Bundle_t::blocks_num, and MockBPA_Bundle_t::retain.
Referenced by LLVMFuzzerTestOneInput(), mock_bpa_ctr_init(), mock_bpa_decode(), test_bsl_loopback_bundle(), and test_bsl_mock_encode_bundle().