From f7ac0c57e969daeff37058b33ed62887524292a1 Mon Sep 17 00:00:00 2001 From: Jose Alamos <jose.alamos@haw-hamburg.de> Date: Thu, 14 Feb 2019 15:09:03 +0100 Subject: [PATCH] net/gnrc/pktbuf.h: add note in gnrc_pktbuf_mark --- sys/include/net/gnrc/pktbuf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/include/net/gnrc/pktbuf.h b/sys/include/net/gnrc/pktbuf.h index f6d4eac552..0b55b4527f 100644 --- a/sys/include/net/gnrc/pktbuf.h +++ b/sys/include/net/gnrc/pktbuf.h @@ -113,6 +113,9 @@ gnrc_pktsnip_t *gnrc_pktbuf_add(gnrc_pktsnip_t *next, const void *data, size_t s * @param[in] size The size of the new packet snip. * @param[in] type The type of the new packet snip. * + * @note It's not guaranteeed that `result->data` points to the same address + * as the original `pkt->data`. + * * @return The new packet snip in @p pkt on success. * @return NULL, if pkt == NULL or size == 0 or size > pkt->size or pkt->data == NULL. * @return NULL, if no space is left in the packet buffer. -- GitLab