Lines Matching defs:optbuf
629 * Insert the option in 'optbuf' into the IP header pointed to by 'ipha', and
641 tsol_prepend_option(uchar_t *optbuf, ipha_t *ipha, int buflen)
649 if (optbuf[IPOPT_OPTVAL] == IPOPT_EOL ||
650 optbuf[IPOPT_OPTVAL] == IPOPT_NOP ||
651 optbuf[IPOPT_OLEN] == 0)
654 ASSERT(optbuf[IPOPT_OLEN] >= 2 &&
655 optbuf[IPOPT_OLEN] <= IP_MAX_OPT_LENGTH);
703 olen = (optbuf[IPOPT_OLEN] + 3) & ~3;
719 olen = optbuf[IPOPT_OLEN];
720 bcopy(optbuf, toptr, olen);
1248 * 'optbuf' contains a CIPSO label embedded in an IPv6 hop-by-hop option,
1264 tsol_prepend_option_v6(uchar_t *optbuf, ip6_t *ip6h, int buflen)
1279 rawlen = optbuf[1] + 2; /* Add 2 for the option type, option length */
1327 bcopy(optbuf, ip6hbh + 2, rawlen);