Lines Matching defs:sopt
860 can_raw_getop(struct canpcb *canp, struct sockopt *sopt)
865 switch (sopt->sopt_name) {
868 error = sockopt_set(sopt, &optval, sizeof(optval));
872 error = sockopt_set(sopt, &optval, sizeof(optval));
875 error = sockopt_set(sopt, canp->canp_filters,
886 can_raw_setop(struct canpcb *canp, struct sockopt *sopt)
891 switch (sopt->sopt_name) {
893 error = sockopt_getint(sopt, &optval);
903 error = sockopt_getint(sopt, &optval);
914 int nfilters = sopt->sopt_size / sizeof(struct can_filter);
915 if (sopt->sopt_size % sizeof(struct can_filter) != 0)
917 error = can_pcbsetfilter(canp, sopt->sopt_data, nfilters);
932 can_ctloutput(int op, struct socket *so, struct sockopt *sopt)
941 if (sopt->sopt_level != SOL_CAN_RAW)
952 error = can_raw_setop(canp, sopt);
954 error = can_raw_getop(canp, sopt);