Lines Matching defs:opt
490 void *opt;
570 opt = sogetoff(mp, tind->SRC_offset, len, 1);
572 ASSERT(opt != NULL);
577 bcopy(opt, msg->msg_name, len);
586 opt = sogetoff(mp, tind->OPT_offset, len,
589 ASSERT(opt != NULL);
590 sosctp_pack_cmsg(opt, msg, len);
1442 STRUCT_DECL(sctpopt, opt);
1547 STRUCT_INIT(opt, mode);
1549 if (so_copyin((void *)arg, STRUCT_BUF(opt), STRUCT_SIZE(opt),
1553 if ((optlen = STRUCT_FGET(opt, sopt_len)) > SO_MAXARGSIZE)
1560 intval = STRUCT_FGET(opt, sopt_aid);
1581 if (so_copyin(STRUCT_FGETP(opt, sopt_val), buf, optlen,
1593 STRUCT_FGET(opt, sopt_name), buf, &optlen);
1602 STRUCT_FSET(opt, sopt_len, optlen);
1603 if (so_copyout(STRUCT_BUF(opt), (void *)arg,
1604 STRUCT_SIZE(opt), (mode & (int)FKIOCTL))) {
1606 } else if (so_copyout(buf, STRUCT_FGETP(opt, sopt_val),
1615 STRUCT_INIT(opt, mode);
1617 if (so_copyin((void *)arg, STRUCT_BUF(opt), STRUCT_SIZE(opt),
1621 if ((optlen = STRUCT_FGET(opt, sopt_len)) > SO_MAXARGSIZE)
1628 intval = STRUCT_FGET(opt, sopt_aid);
1645 if (so_copyin(STRUCT_FGETP(opt, sopt_val), buf, optlen,
1657 STRUCT_FGET(opt, sopt_name), buf, optlen);