ud3tn/include/bundle7/fragment.h
Felix Walter 2adc3ab7e8 bundle_fragmenter: Always create new fragments with offset + length
Previously the fragmentation logic was very specific to uD3TN's
forwarding approach, modifying the original bundle in the process. With
BDMs supporting fragmentation we must make this more flexible. Thus, we
now pass an offset and length and always create a copy of the required
contents based on the original bundle.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2024-06-21 10:36:30 +02:00

13 lines
333 B
C

// SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
#ifndef BUNDLE7_FRAGMENT_H_INCLUDED
#define BUNDLE7_FRAGMENT_H_INCLUDED
#include "ud3tn/bundle.h"
#include <stdint.h>
struct bundle *bundle7_fragment_bundle(
struct bundle *bundle,
uint64_t fragment_offset, uint64_t fragment_length);
#endif // BUNDLE7_FRAGMENT_H_INCLUDED