ud3tn/include/cla/bibe_proto.h
Maximilian Nitsch 4e125e3af7 fix: cppcheck warnings
Add command-line options for cppcheck to the CI job:

- `--suppress=constParameterCallback`

- `--check-level=exhaustive`

  information: Limiting analysis of branches.
  Use --check-level=exhaustive to analyze all branches.

- `--force`

  information: Too many #ifdef configurations - cppcheck only checks 12
  configurations. Use --force to check all configurations.

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2026-05-20 17:57:53 +02:00

20 lines
458 B
C

// SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
#ifndef CLA_BIBE_PROTO_H
#define CLA_BIBE_PROTO_H
#include "ud3tn/bundle.h"
#include <stddef.h>
#include <stdint.h>
struct bibe_header {
size_t hdr_len;
uint8_t *data;
};
size_t bibe_parser_parse(const uint8_t *buffer, size_t length,
struct bibe_protocol_data_unit *bpdu);
int bibe_encode_header(const char *dest_eid, size_t payload_len, struct bibe_header *hdr);
#endif // CLA_BIBE_PROTO_H