Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
lwip_lowpan6_common.c File Reference
Common 6LowPAN routines for IPv6. More...
Go to the source code of this file.
Functions | |
static err_t | lowpan6_decompress_hdr (u8_t *lowpan6_buffer, size_t lowpan6_bufsize, u8_t *decomp_buffer, size_t decomp_bufsize, u16_t *hdr_size_comp, u16_t *hdr_size_decomp, u16_t datagram_size, u16_t compressed_size, ip6_addr_t *lowpan6_contexts, struct lowpan6_link_addr *src, struct lowpan6_link_addr *dest) |
Decompress IPv6 and UDP headers compressed according to RFC 6282. |
Detailed Description
Common 6LowPAN routines for IPv6.
Uses ND tables for link-layer addressing. Fragments packets to 6LowPAN units.
This implementation aims to conform to IEEE 802.15.4(-2015), RFC 4944 and RFC 6282.
Definition in file lwip_lowpan6_common.c.
Function Documentation
static err_t lowpan6_decompress_hdr | ( | u8_t * | lowpan6_buffer, |
size_t | lowpan6_bufsize, | ||
u8_t * | decomp_buffer, | ||
size_t | decomp_bufsize, | ||
u16_t * | hdr_size_comp, | ||
u16_t * | hdr_size_decomp, | ||
u16_t | datagram_size, | ||
u16_t | compressed_size, | ||
ip6_addr_t * | lowpan6_contexts, | ||
struct lowpan6_link_addr * | src, | ||
struct lowpan6_link_addr * | dest | ||
) | [static] |
Decompress IPv6 and UDP headers compressed according to RFC 6282.
- Parameters:
-
lowpan6_buffer compressed headers, first byte is the dispatch byte lowpan6_bufsize size of lowpan6_buffer (may include data after headers) decomp_buffer buffer where the decompressed headers are stored decomp_bufsize size of decomp_buffer hdr_size_comp returns the size of the compressed headers (skip to get to data) hdr_size_decomp returns the size of the decompressed headers (IPv6 + UDP) datagram_size datagram size from fragments or 0 if unfragmented compressed_size compressed datagram size (for unfragmented rx) lowpan6_contexts context addresses src source address of the outer layer, used for address compression dest destination address of the outer layer, used for address compression
- Returns:
- ERR_OK if decompression succeeded, an error otherwise
Definition at line 391 of file lwip_lowpan6_common.c.
Generated on Tue Jul 12 2022 13:55:14 by
