mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-16 13:01:06 +02:00
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>
13 lines
333 B
C
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
|