--- libelwix/inc/elwix/apack.h 2014/02/13 14:38:52 1.8.2.4 +++ libelwix/inc/elwix/apack.h 2014/02/13 15:06:44 1.8.2.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: apack.h,v 1.8.2.4 2014/02/13 14:38:52 misho Exp $ +* $Id: apack.h,v 1.8.2.6 2014/02/13 15:06:44 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -157,6 +157,22 @@ typedef struct tagRawPacket { * return: NULL error or not enough space, !=NULL next position */ uint8_t *rpack_align_and_reserve(rpack_t * __restrict rp, size_t siz); +/* + * rpack_next() - Get and set current position + * + * @rp = raw packet + * @after_len = move aligned current position after length + * return: NULL error or current position + */ +uint8_t *rpack_next(rpack_t * __restrict rp, size_t after_len); +/* + * rpack_rnext() - Get and set raw current position + * + * @rp = raw packet + * @after_len = !=0 move current position after length + * return: NULL error or raw current position + */ +uint8_t *rpack_rnext(rpack_t * __restrict rp, size_t after_len); /* * rpack_create() - Allocate & init raw packet structure