--- libelwix/inc/elwix/apack.h 2014/02/11 13:25:08 1.8.2.1 +++ libelwix/inc/elwix/apack.h 2014/02/12 09:20:43 1.8.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: apack.h,v 1.8.2.1 2014/02/11 13:25:08 misho Exp $ +* $Id: apack.h,v 1.8.2.2 2014/02/12 09:20:43 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -61,6 +61,7 @@ typedef struct tagRawPacket { (x)->r_next = (x)->r_buf; \ } while (0) #define RPACK_SANITY(x) ((x) && (x)->r_buf && (x)->r_next && (x)->r_next >= (x)->r_buf) +#define RPACK_BUF(x) (assert((x)), (x)->r_buf) #define RPACK_LEN(x) (assert((x)), (x)->r_len) #define RPACK_REWIND(x) (assert((x)), (x)->r_next = (x)->r_buf)