Lines Matching defs:error

129 /* Returns:     int - 0 == success, else error                              */
144 /* Returns: int - 0 == success, else error */
191 /* Returns: int - 0 == success, else error */
226 /* Returns: int - 0 == success, else error */
544 /* Returns: int - 0 == success, else error */
563 int error = 0, i;
574 error = ipf_inobj(softc, data, &obj, &iter, IPFOBJ_GENITER);
575 if (error != 0)
581 error = ipf_auth_geniter(softc, token, &iter, &obj);
587 error = ESRCH;
598 error = EPERM;
600 error = frrequest(softc, IPL_LOGAUTH, cmd, data,
607 error = EPERM;
609 error = ipf_lock(data, &softa->ipf_auth_lock);
615 error = ipf_outobj(softc, data, &softa->ipf_auth_stats,
625 error = BCOPYOUT(&i, data, sizeof(i));
626 if (error != 0) {
628 error = EFAULT;
633 error = ipf_auth_wait(softc, softa, data);
637 error = ipf_auth_reply(softc, softa, data);
642 error = EINVAL;
645 return error;
721 /* Returns: int - 0 == success, else error */
735 int error = 0;
753 error = EINVAL;
757 error = ESRCH;
790 error = ENOMEM;
794 error = EINVAL;
796 return error;
870 /* Returns: int - 0 == success, else error */
888 int error;
928 error = ipf_outobjk(softc, objp, next);
934 return error;
985 /* Returns: int - 0 == success, else error */
1001 int error, len, i;
1007 error = ipf_inobj(softc, data, NULL, au, IPFOBJ_FRAUTH);
1008 if (error != 0)
1009 return error;
1014 * we are trying to guard against here is an error in the copyout
1032 error = ipf_outobj(softc, data,
1035 if (error != 0) {
1038 return error;
1044 * requested. Bail on an error.
1054 error = copyoutptr(softc, MTOD(m, char *),
1058 if (error != 0) {
1061 return error;
1084 error = 0;
1087 error = EINTR;
1090 error = SLEEP(&softa->ipf_auth_next, "ipf_auth_next");
1094 if (error == 0)
1096 return error;
1102 /* Returns: int - 0 == success, else error */
1118 int error, i;
1122 error = ipf_inobj(softc, data, NULL, &auth, IPFOBJ_FRAUTH);
1123 if (error != 0)
1124 return error;
1131 error = 0;
1169 error = ipf_inject(&fin, m);
1170 if (error != 0) {
1172 error = ENOBUFS;
1178 error = ipf_inject(&fin, m);
1179 if (error != 0) {
1181 error = ENOBUFS;
1188 error = EINVAL;
1192 * If we experience an error which will result in the packet
1195 if (error == ENOBUFS) {