2015-04-08 11:56:10 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "rbuf.h"
|
2017-11-16 17:00:40 +01:00
|
|
|
#include "net/ipv6.h"
|
2015-08-17 15:06:44 +02:00
|
|
|
#include "net/ipv6/hdr.h"
|
2015-08-10 02:41:08 +02:00
|
|
|
#include "net/gnrc.h"
|
2015-08-17 15:41:29 +02:00
|
|
|
#include "net/gnrc/sixlowpan.h"
|
|
|
|
#include "net/gnrc/sixlowpan/frag.h"
|
2015-08-17 15:06:44 +02:00
|
|
|
#include "net/sixlowpan.h"
|
2015-04-08 11:56:10 +02:00
|
|
|
#include "thread.h"
|
2015-10-28 21:09:29 +01:00
|
|
|
#include "xtimer.h"
|
2015-04-08 11:56:10 +02:00
|
|
|
#include "utlist.h"
|
|
|
|
|
|
|
|
#define ENABLE_DEBUG (0)
|
|
|
|
#include "debug.h"
|
|
|
|
|
2016-02-09 03:53:31 +01:00
|
|
|
/* estimated fragment payload size to determinate RBUF_INT_SIZE, default to
|
|
|
|
* MAC payload size - fragment header. */
|
|
|
|
#ifndef GNRC_SIXLOWPAN_FRAG_SIZE
|
|
|
|
/* assuming 64-bit source/destination address, source PAN ID omitted */
|
|
|
|
#define GNRC_SIXLOWPAN_FRAG_SIZE (104 - 5)
|
|
|
|
#endif
|
|
|
|
|
2015-04-08 11:56:10 +02:00
|
|
|
#ifndef RBUF_INT_SIZE
|
2016-02-09 03:53:31 +01:00
|
|
|
/* same as ((int) ceil((double) N / D)) */
|
|
|
|
#define DIV_CEIL(N, D) (((N) + (D) - 1) / (D))
|
2017-11-16 17:00:40 +01:00
|
|
|
#define RBUF_INT_SIZE (DIV_CEIL(IPV6_MIN_MTU, GNRC_SIXLOWPAN_FRAG_SIZE) * RBUF_SIZE)
|
2015-04-08 11:56:10 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
static rbuf_int_t rbuf_int[RBUF_INT_SIZE];
|
|
|
|
|
|
|
|
static rbuf_t rbuf[RBUF_SIZE];
|
|
|
|
|
2018-06-14 17:13:51 +02:00
|
|
|
static char l2addr_str[3 * IEEE802154_LONG_ADDRESS_LEN];
|
2015-04-08 11:56:10 +02:00
|
|
|
|
2018-06-27 12:09:58 +02:00
|
|
|
static xtimer_t _gc_timer;
|
|
|
|
static msg_t _gc_timer_msg = { .type = GNRC_SIXLOWPAN_MSG_FRAG_GC_RBUF };
|
|
|
|
|
2015-04-08 11:56:10 +02:00
|
|
|
/* ------------------------------------
|
|
|
|
* internal function definitions
|
|
|
|
* ------------------------------------*/
|
2016-02-09 03:14:44 +01:00
|
|
|
/* checks whether start and end overlaps, but not identical to, given interval i */
|
|
|
|
static inline bool _rbuf_int_overlap_partially(rbuf_int_t *i, uint16_t start, uint16_t end);
|
2015-04-08 11:56:10 +02:00
|
|
|
/* gets a free entry from interval buffer */
|
|
|
|
static rbuf_int_t *_rbuf_int_get_free(void);
|
|
|
|
/* update interval buffer of entry */
|
|
|
|
static bool _rbuf_update_ints(rbuf_t *entry, uint16_t offset, size_t frag_size);
|
|
|
|
/* gets an entry identified by its tupel */
|
|
|
|
static rbuf_t *_rbuf_get(const void *src, size_t src_len,
|
|
|
|
const void *dst, size_t dst_len,
|
2018-07-03 14:01:06 +02:00
|
|
|
size_t size, uint16_t tag, unsigned page);
|
2015-04-08 11:56:10 +02:00
|
|
|
|
2015-08-17 15:41:29 +02:00
|
|
|
void rbuf_add(gnrc_netif_hdr_t *netif_hdr, gnrc_pktsnip_t *pkt,
|
2018-07-03 14:01:06 +02:00
|
|
|
size_t offset, unsigned page)
|
2015-04-08 11:56:10 +02:00
|
|
|
{
|
|
|
|
rbuf_t *entry;
|
2015-08-17 15:06:44 +02:00
|
|
|
sixlowpan_frag_t *frag = pkt->data;
|
2015-04-08 11:56:10 +02:00
|
|
|
rbuf_int_t *ptr;
|
2015-08-17 15:06:44 +02:00
|
|
|
uint8_t *data = ((uint8_t *)pkt->data) + sizeof(sixlowpan_frag_t);
|
2018-07-03 14:01:06 +02:00
|
|
|
size_t frag_size;
|
2015-04-08 11:56:10 +02:00
|
|
|
|
2018-06-27 12:09:58 +02:00
|
|
|
rbuf_gc();
|
2015-08-17 15:41:29 +02:00
|
|
|
entry = _rbuf_get(gnrc_netif_hdr_get_src_addr(netif_hdr), netif_hdr->src_l2addr_len,
|
|
|
|
gnrc_netif_hdr_get_dst_addr(netif_hdr), netif_hdr->dst_l2addr_len,
|
2015-08-17 15:06:44 +02:00
|
|
|
byteorder_ntohs(frag->disp_size) & SIXLOWPAN_FRAG_SIZE_MASK,
|
2018-07-03 14:01:06 +02:00
|
|
|
byteorder_ntohs(frag->tag), page);
|
2015-04-08 11:56:10 +02:00
|
|
|
|
|
|
|
if (entry == NULL) {
|
|
|
|
DEBUG("6lo rbuf: reassembly buffer full.\n");
|
2018-12-30 00:59:04 +01:00
|
|
|
gnrc_pktbuf_release(pkt);
|
2015-04-08 11:56:10 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
ptr = entry->ints;
|
|
|
|
|
2015-04-27 21:44:42 +02:00
|
|
|
/* dispatches in the first fragment are ignored */
|
2015-07-22 20:56:17 +02:00
|
|
|
if (offset == 0) {
|
2018-07-03 14:01:06 +02:00
|
|
|
frag_size = pkt->size - sizeof(sixlowpan_frag_t);
|
2015-08-17 15:06:44 +02:00
|
|
|
if (data[0] == SIXLOWPAN_UNCOMP) {
|
2015-08-11 23:24:01 +02:00
|
|
|
frag_size--;
|
2015-04-27 21:44:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
2018-07-03 14:01:06 +02:00
|
|
|
frag_size = pkt->size - sizeof(sixlowpan_frag_n_t);
|
2015-07-22 20:56:17 +02:00
|
|
|
data++; /* FRAGN header is one byte longer (offset) */
|
2015-04-27 21:44:42 +02:00
|
|
|
}
|
|
|
|
|
2018-06-14 17:13:51 +02:00
|
|
|
if ((offset + frag_size) > entry->super.pkt->size) {
|
2015-04-27 21:44:42 +02:00
|
|
|
DEBUG("6lo rfrag: fragment too big for resulting datagram, discarding datagram\n");
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_pktbuf_release(entry->super.pkt);
|
2018-06-28 23:10:48 +02:00
|
|
|
rbuf_rm(entry);
|
2015-04-27 21:44:42 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-02-09 03:14:44 +01:00
|
|
|
/* If the fragment overlaps another fragment and differs in either the size
|
|
|
|
* or the offset of the overlapped fragment, discards the datagram
|
|
|
|
* https://tools.ietf.org/html/rfc4944#section-5.3 */
|
2015-04-08 11:56:10 +02:00
|
|
|
while (ptr != NULL) {
|
2016-02-09 03:14:44 +01:00
|
|
|
if (_rbuf_int_overlap_partially(ptr, offset, offset + frag_size - 1)) {
|
|
|
|
DEBUG("6lo rfrag: overlapping intervals, discarding datagram\n");
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_pktbuf_release(entry->super.pkt);
|
2018-06-28 23:10:48 +02:00
|
|
|
rbuf_rm(entry);
|
2016-02-09 03:14:44 +01:00
|
|
|
|
|
|
|
/* "A fresh reassembly may be commenced with the most recently
|
|
|
|
* received link fragment"
|
|
|
|
* https://tools.ietf.org/html/rfc4944#section-5.3 */
|
2018-07-03 14:01:06 +02:00
|
|
|
rbuf_add(netif_hdr, pkt, offset, page);
|
2016-02-09 03:14:44 +01:00
|
|
|
|
2015-04-08 11:56:10 +02:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
ptr = ptr->next;
|
|
|
|
}
|
|
|
|
|
2015-07-22 20:56:17 +02:00
|
|
|
if (_rbuf_update_ints(entry, offset, frag_size)) {
|
2015-04-08 11:56:10 +02:00
|
|
|
DEBUG("6lo rbuf: add fragment data\n");
|
2018-06-28 12:28:46 +02:00
|
|
|
entry->super.current_size += (uint16_t)frag_size;
|
2018-06-28 19:26:43 +02:00
|
|
|
if (offset == 0) {
|
|
|
|
#ifdef MODULE_GNRC_SIXLOWPAN_IPHC
|
|
|
|
if (sixlowpan_iphc_is(data)) {
|
|
|
|
gnrc_pktsnip_t *frag_hdr = gnrc_pktbuf_mark(pkt,
|
|
|
|
sizeof(sixlowpan_frag_t), GNRC_NETTYPE_SIXLOWPAN);
|
|
|
|
if (frag_hdr == NULL) {
|
|
|
|
gnrc_pktbuf_release(entry->super.pkt);
|
2018-12-30 01:05:27 +01:00
|
|
|
gnrc_pktbuf_release(pkt);
|
2018-06-28 19:26:43 +02:00
|
|
|
rbuf_rm(entry);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
gnrc_sixlowpan_iphc_recv(pkt, &entry->super, 0);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
#endif
|
|
|
|
if (data[0] == SIXLOWPAN_UNCOMP) {
|
|
|
|
data++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
memcpy(((uint8_t *)entry->super.pkt->data) + offset, data,
|
|
|
|
frag_size);
|
2015-04-08 11:56:10 +02:00
|
|
|
}
|
2018-06-28 23:10:48 +02:00
|
|
|
gnrc_sixlowpan_frag_rbuf_dispatch_when_complete(&entry->super, netif_hdr);
|
2018-06-28 19:26:43 +02:00
|
|
|
gnrc_pktbuf_release(pkt);
|
2015-04-08 11:56:10 +02:00
|
|
|
}
|
|
|
|
|
2016-02-09 03:14:44 +01:00
|
|
|
static inline bool _rbuf_int_overlap_partially(rbuf_int_t *i, uint16_t start, uint16_t end)
|
2015-04-08 11:56:10 +02:00
|
|
|
{
|
2016-02-09 03:14:44 +01:00
|
|
|
/* start and ends are both inclusive, so using <= for both */
|
|
|
|
return ((i->start <= end) && (start <= i->end)) && /* overlaps */
|
|
|
|
((start != i->start) || (end != i->end)); /* not identical */
|
2015-04-08 11:56:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static rbuf_int_t *_rbuf_int_get_free(void)
|
|
|
|
{
|
2015-04-27 21:44:42 +02:00
|
|
|
for (unsigned int i = 0; i < RBUF_INT_SIZE; i++) {
|
2015-04-08 11:56:10 +02:00
|
|
|
if (rbuf_int[i].end == 0) { /* start must be smaller than end anyways*/
|
|
|
|
return rbuf_int + i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2018-06-28 23:10:48 +02:00
|
|
|
void rbuf_rm(rbuf_t *entry)
|
2015-04-08 11:56:10 +02:00
|
|
|
{
|
|
|
|
while (entry->ints != NULL) {
|
|
|
|
rbuf_int_t *next = entry->ints->next;
|
|
|
|
|
|
|
|
entry->ints->start = 0;
|
|
|
|
entry->ints->end = 0;
|
|
|
|
entry->ints->next = NULL;
|
|
|
|
entry->ints = next;
|
|
|
|
}
|
|
|
|
|
2018-06-14 17:13:51 +02:00
|
|
|
entry->super.pkt = NULL;
|
2015-04-08 11:56:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static bool _rbuf_update_ints(rbuf_t *entry, uint16_t offset, size_t frag_size)
|
|
|
|
{
|
|
|
|
rbuf_int_t *new;
|
|
|
|
uint16_t end = (uint16_t)(offset + frag_size - 1);
|
|
|
|
|
|
|
|
new = _rbuf_int_get_free();
|
|
|
|
|
|
|
|
if (new == NULL) {
|
|
|
|
DEBUG("6lo rfrag: no space left in rbuf interval buffer.\n");
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
new->start = offset;
|
|
|
|
new->end = end;
|
|
|
|
|
|
|
|
DEBUG("6lo rfrag: add interval (%" PRIu16 ", %" PRIu16 ") to entry (%s, ",
|
2018-06-14 17:13:51 +02:00
|
|
|
new->start, new->end, gnrc_netif_addr_to_str(entry->super.src,
|
|
|
|
entry->super.src_len,
|
2017-11-16 18:06:46 +01:00
|
|
|
l2addr_str));
|
2018-06-14 17:13:51 +02:00
|
|
|
DEBUG("%s, %u, %u)\n", gnrc_netif_addr_to_str(entry->super.dst,
|
|
|
|
entry->super.dst_len,
|
2017-11-16 18:06:46 +01:00
|
|
|
l2addr_str),
|
2018-06-14 17:13:51 +02:00
|
|
|
(unsigned)entry->super.pkt->size, entry->super.tag);
|
2015-04-08 11:56:10 +02:00
|
|
|
|
|
|
|
LL_PREPEND(entry->ints, new);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2018-06-27 12:09:58 +02:00
|
|
|
void rbuf_gc(void)
|
2015-04-08 11:56:10 +02:00
|
|
|
{
|
2016-07-05 21:32:44 +02:00
|
|
|
uint32_t now_usec = xtimer_now_usec();
|
2015-04-27 21:44:42 +02:00
|
|
|
unsigned int i;
|
2015-04-08 11:56:10 +02:00
|
|
|
|
|
|
|
for (i = 0; i < RBUF_SIZE; i++) {
|
2016-02-09 02:49:08 +01:00
|
|
|
/* since pkt occupies pktbuf, aggressivly collect garbage */
|
2018-06-14 17:13:51 +02:00
|
|
|
if ((rbuf[i].super.pkt != NULL) &&
|
2016-02-09 02:49:08 +01:00
|
|
|
((now_usec - rbuf[i].arrival) > RBUF_TIMEOUT)) {
|
2017-07-27 15:26:49 +02:00
|
|
|
DEBUG("6lo rfrag: entry (%s, ",
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_netif_addr_to_str(rbuf[i].super.src,
|
|
|
|
rbuf[i].super.src_len,
|
2017-11-16 18:06:46 +01:00
|
|
|
l2addr_str));
|
2015-07-22 20:56:17 +02:00
|
|
|
DEBUG("%s, %u, %u) timed out\n",
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_netif_addr_to_str(rbuf[i].super.dst,
|
|
|
|
rbuf[i].super.dst_len,
|
2017-11-16 18:06:46 +01:00
|
|
|
l2addr_str),
|
2018-06-14 17:13:51 +02:00
|
|
|
(unsigned)rbuf[i].super.pkt->size, rbuf[i].super.tag);
|
2015-04-08 11:56:10 +02:00
|
|
|
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_pktbuf_release(rbuf[i].super.pkt);
|
2018-06-28 23:10:48 +02:00
|
|
|
rbuf_rm(&(rbuf[i]));
|
2015-04-08 11:56:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-27 12:09:58 +02:00
|
|
|
static inline void _set_rbuf_timeout(void)
|
|
|
|
{
|
|
|
|
xtimer_set_msg(&_gc_timer, RBUF_TIMEOUT, &_gc_timer_msg, sched_active_pid);
|
|
|
|
}
|
|
|
|
|
2015-04-08 11:56:10 +02:00
|
|
|
static rbuf_t *_rbuf_get(const void *src, size_t src_len,
|
|
|
|
const void *dst, size_t dst_len,
|
2018-07-03 14:01:06 +02:00
|
|
|
size_t size, uint16_t tag, unsigned page)
|
2015-04-08 11:56:10 +02:00
|
|
|
{
|
2016-02-09 02:49:08 +01:00
|
|
|
rbuf_t *res = NULL, *oldest = NULL;
|
2016-07-05 21:32:44 +02:00
|
|
|
uint32_t now_usec = xtimer_now_usec();
|
2015-04-08 11:56:10 +02:00
|
|
|
|
2015-04-27 21:44:42 +02:00
|
|
|
for (unsigned int i = 0; i < RBUF_SIZE; i++) {
|
2015-04-08 11:56:10 +02:00
|
|
|
/* check first if entry already available */
|
2018-06-14 17:13:51 +02:00
|
|
|
if ((rbuf[i].super.pkt != NULL) && (rbuf[i].super.pkt->size == size) &&
|
|
|
|
(rbuf[i].super.tag == tag) && (rbuf[i].super.src_len == src_len) &&
|
|
|
|
(rbuf[i].super.dst_len == dst_len) &&
|
|
|
|
(memcmp(rbuf[i].super.src, src, src_len) == 0) &&
|
|
|
|
(memcmp(rbuf[i].super.dst, dst, dst_len) == 0)) {
|
2015-05-08 18:25:24 +02:00
|
|
|
DEBUG("6lo rfrag: entry %p (%s, ", (void *)(&rbuf[i]),
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_netif_addr_to_str(rbuf[i].super.src,
|
|
|
|
rbuf[i].super.src_len,
|
2017-11-16 18:06:46 +01:00
|
|
|
l2addr_str));
|
2015-07-22 20:56:17 +02:00
|
|
|
DEBUG("%s, %u, %u) found\n",
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_netif_addr_to_str(rbuf[i].super.dst,
|
|
|
|
rbuf[i].super.dst_len,
|
2017-11-16 18:06:46 +01:00
|
|
|
l2addr_str),
|
2018-06-14 17:13:51 +02:00
|
|
|
(unsigned)rbuf[i].super.pkt->size, rbuf[i].super.tag);
|
2016-02-09 02:34:42 +01:00
|
|
|
rbuf[i].arrival = now_usec;
|
2018-06-27 12:09:58 +02:00
|
|
|
_set_rbuf_timeout();
|
2015-04-08 11:56:10 +02:00
|
|
|
return &(rbuf[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if there is a free spot: remember it */
|
2018-06-14 17:13:51 +02:00
|
|
|
if ((res == NULL) && (rbuf[i].super.pkt == NULL)) {
|
2015-04-08 11:56:10 +02:00
|
|
|
res = &(rbuf[i]);
|
|
|
|
}
|
|
|
|
|
2016-02-09 02:49:08 +01:00
|
|
|
/* remember oldest slot */
|
|
|
|
/* note that xtimer_now will overflow in ~1.2 hours */
|
|
|
|
if ((oldest == NULL) || (oldest->arrival - rbuf[i].arrival < UINT32_MAX / 2)) {
|
|
|
|
oldest = &(rbuf[i]);
|
2015-04-08 11:56:10 +02:00
|
|
|
}
|
2016-02-09 02:49:08 +01:00
|
|
|
}
|
2015-04-08 11:56:10 +02:00
|
|
|
|
2016-02-09 02:49:08 +01:00
|
|
|
/* entry not in buffer and no empty spot found */
|
|
|
|
if (res == NULL) {
|
|
|
|
assert(oldest != NULL);
|
2018-06-14 17:13:51 +02:00
|
|
|
/* if oldest->pkt == NULL, res must not be NULL */
|
|
|
|
assert(oldest->super.pkt != NULL);
|
2016-02-09 02:49:08 +01:00
|
|
|
DEBUG("6lo rfrag: reassembly buffer full, remove oldest entry\n");
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_pktbuf_release(oldest->super.pkt);
|
2018-06-28 23:10:48 +02:00
|
|
|
rbuf_rm(oldest);
|
2016-02-09 02:49:08 +01:00
|
|
|
res = oldest;
|
2015-04-08 11:56:10 +02:00
|
|
|
}
|
|
|
|
|
2016-02-09 02:49:08 +01:00
|
|
|
/* now we have an empty spot */
|
|
|
|
|
2018-07-03 14:01:06 +02:00
|
|
|
gnrc_nettype_t reass_type;
|
|
|
|
switch (page) {
|
|
|
|
/* use switch(page) to be extendable */
|
|
|
|
#ifdef MODULE_GNRC_IPV6
|
|
|
|
case 0U:
|
|
|
|
reass_type = GNRC_NETTYPE_IPV6;
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
default:
|
|
|
|
reass_type = GNRC_NETTYPE_UNDEF;
|
|
|
|
}
|
|
|
|
res->super.pkt = gnrc_pktbuf_add(NULL, NULL, size, reass_type);
|
2018-06-14 17:13:51 +02:00
|
|
|
if (res->super.pkt == NULL) {
|
2016-02-09 02:49:08 +01:00
|
|
|
DEBUG("6lo rfrag: can not allocate reassembly buffer space.\n");
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2018-06-14 17:13:51 +02:00
|
|
|
*((uint64_t *)res->super.pkt->data) = 0; /* clean first few bytes for later
|
|
|
|
* look-ups */
|
2016-02-09 02:49:08 +01:00
|
|
|
res->arrival = now_usec;
|
2018-06-14 17:13:51 +02:00
|
|
|
memcpy(res->super.src, src, src_len);
|
|
|
|
memcpy(res->super.dst, dst, dst_len);
|
|
|
|
res->super.src_len = src_len;
|
|
|
|
res->super.dst_len = dst_len;
|
|
|
|
res->super.tag = tag;
|
2018-06-28 12:28:46 +02:00
|
|
|
res->super.current_size = 0;
|
2016-02-09 02:49:08 +01:00
|
|
|
|
|
|
|
DEBUG("6lo rfrag: entry %p (%s, ", (void *)res,
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_netif_addr_to_str(res->super.src, res->super.src_len,
|
|
|
|
l2addr_str));
|
2016-02-09 02:49:08 +01:00
|
|
|
DEBUG("%s, %u, %u) created\n",
|
2018-06-14 17:13:51 +02:00
|
|
|
gnrc_netif_addr_to_str(res->super.dst, res->super.dst_len,
|
|
|
|
l2addr_str), (unsigned)res->super.pkt->size,
|
|
|
|
res->super.tag);
|
2016-02-09 02:49:08 +01:00
|
|
|
|
2018-06-27 12:09:58 +02:00
|
|
|
_set_rbuf_timeout();
|
|
|
|
|
2015-04-08 11:56:10 +02:00
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @} */
|