pbuf: Make pbuf_skip function public, so it can be used in SNMP code

This commit is contained in:
Dirk Ziegelmeier 2016-02-03 08:37:04 +01:00
parent 28549e35fe
commit 222155d7e2
2 changed files with 2 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ void pbuf_split_64k(struct pbuf *p, struct pbuf **rest)
* @param out_offset resulting offset in the returned pbuf
* @return the pbuf in the queue where the offset is
*/
static struct pbuf*
struct pbuf*
pbuf_skip(struct pbuf* in, u16_t in_offset, u16_t* out_offset)
{
u16_t offset_left = in_offset;

View File

@ -204,6 +204,7 @@ err_t pbuf_copy(struct pbuf *p_to, struct pbuf *p_from);
u16_t pbuf_copy_partial(struct pbuf *p, void *dataptr, u16_t len, u16_t offset);
err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len);
err_t pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset);
struct pbuf *pbuf_skip(struct pbuf* in, u16_t in_offset, u16_t* out_offset);
struct pbuf *pbuf_coalesce(struct pbuf *p, pbuf_layer layer);
#if LWIP_CHECKSUM_ON_COPY
err_t pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr,