Lines Matching refs:PTR
120 /* Add a 16 bit unsigned value to a buffer pointed to by PTR */
121 #define PPPOE_ADD_16(PTR, VAL) \
122 *(PTR)++ = (VAL) / 256; \
123 *(PTR)++ = (VAL) % 256
125 /* Add a complete PPPoE header to the buffer pointed to by PTR */
126 #define PPPOE_ADD_HEADER(PTR, CODE, SESS, LEN) \
127 *(PTR)++ = PPPOE_VERTYPE; \
128 *(PTR)++ = (CODE); \
129 PPPOE_ADD_16(PTR, SESS); \
130 PPPOE_ADD_16(PTR, LEN)