BSL v1.0.0 - 29.g99f1b76
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
bundle.h File Reference

Declarations for Bundle storage. More...

#include "eid.h"
#include <m-algo.h>
#include <m-deque.h>
#include <m-bptree.h>
+ 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
 

Macros

#define M_OPL_MockBPA_CanonicalBlock_t()   M_OPEXTEND(M_POD_OPLIST, CMP(API_6(MockBPA_CanonicalBlock_cmp)))
 M*LIB OPLIST for MockBPA_CanonicalBlock_t.
 

Functions

int MockBPA_CanonicalBlock_cmp (const MockBPA_CanonicalBlock_t *block_a, const MockBPA_CanonicalBlock_t *block_b)
 Block comparison which will order by block number in descending order.
 
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.
 

Detailed Description

Declarations for Bundle storage.

Macro Definition Documentation

◆ M_OPL_MockBPA_CanonicalBlock_t

#define M_OPL_MockBPA_CanonicalBlock_t ( )    M_OPEXTEND(M_POD_OPLIST, CMP(API_6(MockBPA_CanonicalBlock_cmp)))

M*LIB OPLIST for MockBPA_CanonicalBlock_t.

Function Documentation

◆ MockBPA_Bundle_Deinit()

◆ MockBPA_Bundle_Init()

◆ MockBPA_CanonicalBlock_cmp()

int MockBPA_CanonicalBlock_cmp ( const MockBPA_CanonicalBlock_t block_a,
const MockBPA_CanonicalBlock_t block_b 
)

Block comparison which will order by block number in descending order.

References MockBPA_CanonicalBlock_t::blk_num.