Lines Matching defs:optp
341 uint8_t *optp, *lim;
373 for (optp = *tptrp; optp < lim; optp += optlen) {
374 if (*optp == type) {
375 *tptrp = optp;
378 if ((optlen = ip6optlen(optp, lim)) == 0)
497 uint8_t *optp = (uint8_t *)extbuf + offset;
501 *optp = IP6OPT_PAD1;
502 optp++;
505 *optp++ = IP6OPT_PADN;
507 *optp++ = (uint8_t)(padlen - 2);
508 memset(optp, 0, padlen - 2);
509 optp += (padlen - 2);
512 *optp++ = type;
513 *optp++ = len;
515 *databufp = optp;
558 uint8_t *optp, *lim;
572 optp = (uint8_t *)(void *)((struct ip6_hbh *)extbuf + 1);
574 optp = (uint8_t *)extbuf + offset;
577 while (optp < lim) {
579 switch(*optp) {
581 optp++;
584 if ((optlen = ip6optlen(optp, lim)) == 0)
586 optp += optlen;
589 if ((optlen = ip6optlen(optp, lim)) == 0)
591 *typep = *optp;
593 *databufp = optp + 2;
594 rv = optp
609 uint8_t *optp, *lim;
623 optp = (uint8_t *)(void *)((struct ip6_hbh *)extbuf + 1);
625 optp = (uint8_t *)extbuf + offset;
628 while (optp < lim) {
629 if ((optlen = ip6optlen(optp, lim)) == 0)
632 if (*optp == type) { /* found */
635 *databufp = optp + 2;
636 td = optp + optlen - (uint8_t *)extbuf;
641 optp += optlen;