Lines Matching defs:error
283 int error;
286 error = mac_ifnet_check_transmit(ifp, m);
287 if (error) {
292 error = ENETDOWN;
315 error = EAFNOSUPPORT;
349 error = ipsec4_process_packet(m, sp, NULL);
354 error = ipsec6_process_packet(m, sp, NULL);
361 if (error != 0)
363 return (error);
466 int error;
488 error = ENXIO;
491 error = 0;
497 error = EINVAL;
538 error = EAFNOSUPPORT;
542 error = EAFNOSUPPORT;
557 error = EADDRNOTAVAIL;
577 error = sa6_embedscope(satosin6(src), 0);
578 if (error != 0)
580 error = sa6_embedscope(satosin6(dst), 0);
581 if (error != 0)
585 error = ipsec_set_addresses(ifp, src, dst);
599 error = EADDRNOTAVAIL;
608 error = EADDRNOTAVAIL;
621 error = EADDRNOTAVAIL;
632 error = EAFNOSUPPORT;
634 if (error == 0) {
655 if (error != 0)
661 error = prison_if(curthread->td_ucred,
663 if (error != 0)
670 error = prison_if(curthread->td_ucred,
672 if (error == 0)
673 error = sa6_recoverscope(sin6);
674 if (error != 0)
683 if ((error = priv_check(curthread, PRIV_NET_SETIFFIB)) != 0)
686 error = EINVAL;
692 error = copyout(&reqid, ifr_data_get_ptr(ifr), sizeof(reqid));
695 if ((error = priv_check(curthread, PRIV_NET_SETIFCAP)) != 0)
697 error = copyin(ifr_data_get_ptr(ifr), &reqid, sizeof(reqid));
698 if (error != 0)
700 error = ipsec_set_reqid(ifp, reqid);
703 error = EINVAL;
708 return (error);