Lines Matching refs:optbuf
641 tsol_prepend_option(uchar_t *optbuf, ipha_t *ipha, int buflen) in tsol_prepend_option() argument
649 if (optbuf[IPOPT_OPTVAL] == IPOPT_EOL || in tsol_prepend_option()
650 optbuf[IPOPT_OPTVAL] == IPOPT_NOP || in tsol_prepend_option()
651 optbuf[IPOPT_OLEN] == 0) in tsol_prepend_option()
654 ASSERT(optbuf[IPOPT_OLEN] >= 2 && in tsol_prepend_option()
655 optbuf[IPOPT_OLEN] <= IP_MAX_OPT_LENGTH); in tsol_prepend_option()
703 olen = (optbuf[IPOPT_OLEN] + 3) & ~3; in tsol_prepend_option()
719 olen = optbuf[IPOPT_OLEN]; in tsol_prepend_option()
720 bcopy(optbuf, toptr, olen); in tsol_prepend_option()
1264 tsol_prepend_option_v6(uchar_t *optbuf, ip6_t *ip6h, int buflen) in tsol_prepend_option_v6() argument
1279 rawlen = optbuf[1] + 2; /* Add 2 for the option type, option length */ in tsol_prepend_option_v6()
1327 bcopy(optbuf, ip6hbh + 2, rawlen); in tsol_prepend_option_v6()