Home | History | Annotate | Download | only in BsdSocketLib

Lines Matching defs:cp

127     u_char *cp, *eom;

217 cp = answer + HFIXEDSZ;
220 n = dn_skipname(cp, eom);
221 if (n < 0 || cp + n + 2 * INT16SZ > eom)
223 cp += n + 2 * INT16SZ;
246 if ((n = dn_expand(answer, eom, cp, zname,
249 cp += n;
250 if (cp + 2 * INT16SZ > eom)
252 GETSHORT(type, cp);
253 GETSHORT(class, cp);
284 if ((n = dn_expand(answer, eom, cp, zname,
288 cp += n;
289 if (cp + 2 * INT16SZ > eom)
291 GETSHORT(type, cp);
292 GETSHORT(class, cp);
312 if (cp + INT32SZ + INT16SZ > eom)
315 GETLONG(ttl, cp);
316 GETSHORT(dlen, cp);
317 if (cp + dlen > eom)
339 cp += dlen;
342 if ((n = dn_expand(answer, eom, cp, primary,
345 cp += n;
348 * next use of 'cp' is in dn_expand().
353 if ((n = dn_expand(answer, eom, cp, mailaddr,
356 cp += n;
359 if (cp + 5*INT32SZ > eom)
361 memcpy(cp1, cp, 5*INT32SZ);
362 cp += 5*INT32SZ;
395 n = dn_skipname(cp, eom);
399 if (cp + n + INT16SZ > eom)
401 cp += n;
402 GETSHORT(dlen, cp);
403 cp += dlen;
429 if ((n = dn_expand(answer, eom, cp, name,
432 cp += n;
433 if (cp + 3 * INT16SZ + INT32SZ > eom)
435 GETSHORT(type, cp);
436 GETSHORT(class, cp
437 GETLONG(ttl, cp);
438 GETSHORT(dlen, cp);
439 if (cp + dlen > eom)
443 if ((n = dn_expand(answer, eom, cp,
449 cp += dlen;
455 if ((n = dn_expand(answer, eom, cp, name,
458 cp += n;
459 if (cp + 3 * INT16SZ + INT32SZ > eom)
461 GETSHORT(type, cp);
462 GETSHORT(class, cp);
463 GETLONG(ttl, cp);
464 GETSHORT(dlen, cp);
465 if (cp + dlen > eom)
470 memcpy(&zptr->z_ns[j].nsaddr1.s_addr, cp,
475 cp += dlen;