summaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/lwip_src/core
diff options
context:
space:
mode:
authorkhemendra kumar <khemendra.kumar13@gmail.com>2018-10-05 18:48:40 +0530
committerkhemendra kumar <khemendra.kumar13@gmail.com>2018-10-05 18:48:40 +0530
commit1b06aff4070ea87fde4539230cb72eb45ecd1da2 (patch)
tree5962b69e4cf6045bbadc0f810474cbd9d12b9e11 /stacks/lwip_stack/lwip_src/core
parent31ea86798426cf236d70c9de1944c723a6cb1d95 (diff)
Feat: DMM LWIP support UDP
Change-Id: I7bf108e946ce5543a31ca0e2b79709c52b4d2498 Signed-off-by: khemendra kumar <khemendra.kumar13@gmail.com>
Diffstat (limited to 'stacks/lwip_stack/lwip_src/core')
-rw-r--r--stacks/lwip_stack/lwip_src/core/spl_pbuf.c14
1 files changed, 14 insertions, 0 deletions
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
@@ -369,6 +369,20 @@ spl_pbuf_copy (struct spl_pbuf * p_to, struct spl_pbuf * p_from)
}
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)
{
u32_t offset_to = 0;