1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/net/gnrc/sixlowpan/frag/hint.h

60 lines
1.5 KiB
C
Raw Normal View History

/*
* Copyright (C) 2019 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup net_gnrc_sixlowpan_frag_hint Fragment size hint
* @ingroup net_gnrc_sixlowpan_frag
* @brief Provides a hint for smaller fragment sizes than the link-layer
* PDU for the next fragment to sent
* @{
*
* @file
* @brief Definitions to provide a hint on the final fragment size
*
* @author Martine Lenders <m.lenders@fu-berlin.de>
*/
#ifndef NET_GNRC_SIXLOWPAN_FRAG_HINT_H
#define NET_GNRC_SIXLOWPAN_FRAG_HINT_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief A fragment size hint
*/
typedef struct {
/**
* @brief Provides a hint of the size for the next fragment to send
*
* Set to 0 for fitting to the maximum fragment size of the interface the
* datagram is sent over.
*
* @see gnrc_netif_6lo_t::max_frag_size
*/
uint16_t fragsz;
/**
* @brief The size of the data bound by gnrc_sixlowpan_frag_hint_t::fragsz
* uncompressed
*
* This is only evaluated when gnrc_sixlowpan_frag_hint_t::fragsz is greater
* than 0.
* Required to calculate the proper offset for the next fragment.
*/
uint16_t fragsz_uncomp;
} gnrc_sixlowpan_frag_hint_t;
#ifdef __cplusplus
}
#endif
#endif /* NET_GNRC_SIXLOWPAN_FRAG_HINT_H */
/** @} */