From d8d281281c213cbaab2238d70d13c426f289ecd8 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 8 Jun 2007 12:08:44 +0000 Subject: [PATCH] Done some work on task #1549 (function documentation) --- src/core/ipv4/ip_frag.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/ipv4/ip_frag.c b/src/core/ipv4/ip_frag.c index f77b29cf..6a94b30a 100644 --- a/src/core/ipv4/ip_frag.c +++ b/src/core/ipv4/ip_frag.c @@ -64,10 +64,16 @@ static u8_t ip_reasstmr; * Copy len bytes from offset in pbuf to buffer * * helper used by both ip_reass and ip_frag + * + * @param p pbuf chain to copy from + * @param offset offset in bytes into the pbuf chain which should be skipped + * before starting to copy + * @param buffer destination to copy the data + * @param len number of bytes to copy (starting from offset) + * @return pointer to one pbuf in the chain p from which copied last */ static struct pbuf * -copy_from_pbuf(struct pbuf *p, u16_t * offset, - u8_t * buffer, u16_t len) +copy_from_pbuf(struct pbuf *p, u16_t *offset, u8_t *buffer, u16_t len) { u16_t l;