Skip to content
Commit c015c0e2 authored by Flavio Santes's avatar Flavio Santes Committed by Tomasz Bursztyka
Browse files

net/nbuf: Introduce the net_nbuf_linear_copy routine



This commit adds one routine previously found at the DNS resolver
library. The net_nbuf_linear_copy routine allows to "linearize"
an IP stack network buffer. This routine is required by functions
that must jump between big chunks of data that in this case may
lie between many fragments. Tracking fragments may be a tedious
task, so getting a linear copy of the buffer will reduce code
complexity altough it increases memory consumption.

The DNS client library is updated to reflect these changes.

Change-Id: Iae321f99fa9b05fae7e722b6d41baac427d82d7e
Signed-off-by: default avatarFlavio Santes <flavio.santes@intel.com>
parent a46548ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment