From 1b06aff4070ea87fde4539230cb72eb45ecd1da2 Mon Sep 17 00:00:00 2001 From: khemendra kumar Date: Fri, 5 Oct 2018 18:48:40 +0530 Subject: Feat: DMM LWIP support UDP Change-Id: I7bf108e946ce5543a31ca0e2b79709c52b4d2498 Signed-off-by: khemendra kumar --- stacks/lwip_stack/lwip_src/core/spl_pbuf.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'stacks/lwip_stack/lwip_src/core') diff --git a/stacks/lwip_stack/lwip_src/core/spl_pbuf.c b/stacks/lwip_stack/lwip_src/core/spl_pbuf.c index 03e30ed..54589e8 100644 --- a/stacks/lwip_stack/lwip_src/core/spl_pbuf.c +++ b/stacks/lwip_stack/lwip_src/core/spl_pbuf.c @@ -368,6 +368,20 @@ spl_pbuf_copy (struct spl_pbuf * p_to, struct spl_pbuf * p_from) return ERR_OK; } +err_t +splpbuf_to_pbuf_transport_copy (struct pbuf * p_to, struct spl_pbuf * p_from) +{ + if (EOK != MEMMOVE_S ((u8_t *) p_to->payload, + p_to->len, (u8_t *) ADDR_SHTOL (p_from->payload_a), + p_from->len)) + { + NSPOL_LOGERR ("MEMMOVE_S failed"); + return ERR_MEM; + } + + return ERR_OK; +} + err_t splpbuf_to_pbuf_copy (struct pbuf * p_to, struct spl_pbuf * p_from) { -- cgit 1.2.3-korg