Lines Matching defs:pointer
149 uint8_t *pointer;
164 pointer = head;
168 (*pointer) = RELAY_FORW;
169 pointer += 1;
170 (*pointer) = msg->hop_count + 1; /* increased hop-count */
171 msg->hc_pointer = pointer;
174 (*pointer) = MAXHOPCOUNT;
175 hop = (int) (*pointer);
179 pointer += 1;
183 (*pointer) = RELAY_FORW;
184 pointer += 1;
185 (*pointer) = 0; /* hop-count */
186 msg->hc_pointer = pointer;
189 (*pointer) = MAXHOPCOUNT;
190 hop = (int) (*pointer);
193 pointer += 1;
213 memcpy(pointer, &sap.sin6_addr, INET6_LEN);
214 pointer += INET6_LEN;
226 memcpy(pointer, &sap.sin6_addr, INET6_LEN);
227 pointer += INET6_LEN;
239 memcpy(pointer, &sap.sin6_addr, INET6_LEN);
240 pointer += INET6_LEN;
243 p16 = (uint16_t *) pointer;
245 pointer += 2;
246 p16 = (uint16_t *) pointer;
248 pointer += 2;
249 p32 = (uint32_t *) pointer;
251 pointer += 4;
253 p16 = (uint16_t *) pointer;
255 pointer += 2;
256 optl = (uint16_t *) pointer;
257 pointer += 2;
260 len = (pointer - head);
272 pointer = newbuff;
273 memset(pointer, 0, MAX_DHCP_MSG_LENGTH);
274 memcpy(pointer, head, len);
275 pointer += len;
276 memcpy(pointer, msg->buffer, msg->datalength);
289 uint8_t *pointer, *pstart, *psp;
304 pointer = msg->buffer;
305 pstart = pointer;
307 if (( ((int) msg->buffer) - ((int) (pointer - pstart)) ) <
314 if (*pointer != RELAY_REPL)
317 pointer += 1; /* RELAY_FORW */
318 msg->hop = *pointer;
319 pointer += 1; /* hop-count */
322 if (( ((int) msg->buffer) - ((int) (pointer - pstart)) ) < (2*INET6_LEN) ) {
331 memcpy(&sap.sin6_addr, pointer, INET6_LEN);
332 pointer += INET6_LEN;
343 memcpy(&sap.sin6_addr, pointer, INET6_LEN);
344 pointer += INET6_LEN;
352 if (( ((int) msg->buffer) - ((int) (pointer - pstart)) ) <
359 p16 = (uint16_t *) pointer;
363 pointer += 2;
364 p16 = (uint16_t *) pointer;
366 pointer += 2;
368 if (( ((int) msg->buffer) - ((int) (pointer - pstart)) ) < opaqlen) {
374 p32 = (uint32_t *) pointer;
376 pointer += opaqlen;
378 if (( ((int) msg->buffer) - ((int) (pointer - pstart)) ) <
385 p16 = (uint16_t *) pointer;
389 pointer += 2;
390 p16 = (uint16_t *) pointer;
392 pointer += 2;
393 if (( ((int) msg->buffer) - ((int)(pointer - pstart)) ) < msglen ) {
400 if (*pointer == RELAY_FORW)
401 *pointer = RELAY_REPL; /* is the job of the server to set to
413 len = (pointer - msg->buffer);
415 memcpy(newbuff, pointer, len);
448 len = (pointer - msg->buffer);
450 memcpy(newbuff, pointer, len);
465 pointer += 2;
466 p16 = (uint16_t *) pointer;
468 pointer += 2;
470 if (( ((int) msg->buffer) - ((int) (pointer - pstart)) ) < msglen ) {
477 psp = (pointer + msglen); /* jump over message, seek for
502 if (*pointer == RELAY_FORW)
503 *pointer = RELAY_REPL; /* is the job of the server to set to
515 len = (pointer - msg->buffer);
517 memcpy(newbuff, pointer, len);
549 len = (pointer - msg->buffer);
551 memcpy(newbuff, pointer, len);