Lines Matching defs:opt
829 t_call.opt.len = 0;
830 t_call.opt.maxlen = 0;
831 t_call.opt.buf = NULL;
954 struct opthdr *opt;
959 opt = (struct opthdr *)option;
960 opt->level = SOL_SOCKET;
961 opt->name = SO_KEEPALIVE;
962 opt->len = sizeof (int);
963 p_optval = (int *)(opt + 1);
965 optreq.opt.maxlen = optreq.opt.len =
967 optreq.opt.buf = (char *)option;
969 optret.opt.maxlen = sizeof (struct opthdr)
971 optret.opt.buf = (char *)option_ret;
1030 if (tcp->opt.len > 0) {
1037 netptr->len = tcp->opt.len;
1038 netptr->maxlen = tcp->opt.len;
1039 if ((netptr->buf = malloc(tcp->opt.len)) == NULL)
1041 (void) memcpy(netptr->buf, tcp->opt.buf, tcp->opt.len);