Deleted Added
full compact
ip_auth.c (110916) ip_auth.c (111888)
1/*
2 * Copyright (C) 1998-2001 by Darren Reed & Guido van Rooij.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6#if defined(__sgi) && (IRIX > 602)
7# include <sys/ptimers.h>
8#endif

--- 91 unchanged lines hidden (view full) ---

100# if (defined(_KERNEL) || defined(KERNEL)) && !defined(IPFILTER_LKM)
101# include <sys/libkern.h>
102# include <sys/systm.h>
103# endif
104#endif
105
106#if !defined(lint)
107/* static const char rcsid[] = "@(#)$Id: ip_auth.c,v 2.11.2.12 2001/07/18 14:57:08 darrenr Exp $"; */
1/*
2 * Copyright (C) 1998-2001 by Darren Reed & Guido van Rooij.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6#if defined(__sgi) && (IRIX > 602)
7# include <sys/ptimers.h>
8#endif

--- 91 unchanged lines hidden (view full) ---

100# if (defined(_KERNEL) || defined(KERNEL)) && !defined(IPFILTER_LKM)
101# include <sys/libkern.h>
102# include <sys/systm.h>
103# endif
104#endif
105
106#if !defined(lint)
107/* static const char rcsid[] = "@(#)$Id: ip_auth.c,v 2.11.2.12 2001/07/18 14:57:08 darrenr Exp $"; */
108static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/ip_auth.c 110916 2003-02-15 06:25:25Z darrenr $";
108static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/ip_auth.c 111888 2003-03-04 23:19:55Z jlemon $";
109#endif
110
111
112#if (SOLARIS || defined(__sgi)) && defined(_KERNEL)
113extern KRWLOCK_T ipf_auth, ipf_mutex;
114extern kmutex_t ipf_authmx;
115# if SOLARIS
116extern kcondvar_t ipfauthwait;

--- 320 unchanged lines hidden (view full) ---

437 if (error)
438 fr_authstats.fas_sendfail++;
439 else
440 fr_authstats.fas_sendok++;
441 } else if (m) {
442# if SOLARIS
443 error = (fr_qin(fra->fra_q, m) == 0) ? EINVAL : 0;
444# else /* SOLARIS */
109#endif
110
111
112#if (SOLARIS || defined(__sgi)) && defined(_KERNEL)
113extern KRWLOCK_T ipf_auth, ipf_mutex;
114extern kmutex_t ipf_authmx;
115# if SOLARIS
116extern kcondvar_t ipfauthwait;

--- 320 unchanged lines hidden (view full) ---

437 if (error)
438 fr_authstats.fas_sendfail++;
439 else
440 fr_authstats.fas_sendok++;
441 } else if (m) {
442# if SOLARIS
443 error = (fr_qin(fra->fra_q, m) == 0) ? EINVAL : 0;
444# else /* SOLARIS */
445 if (! IF_HANDOFF(&ipintrq, m, NULL))
445 if (! netisr_queue(NETISR_IP, m))
446 error = ENOBUFS;
446 error = ENOBUFS;
447 else
448 schednetisr(NETISR_IP);
449# endif /* SOLARIS */
450 if (error)
451 fr_authstats.fas_quefail++;
452 else
453 fr_authstats.fas_queok++;
454 } else
455 error = EINVAL;
456# if SOLARIS

--- 203 unchanged lines hidden ---
447# endif /* SOLARIS */
448 if (error)
449 fr_authstats.fas_quefail++;
450 else
451 fr_authstats.fas_queok++;
452 } else
453 error = EINVAL;
454# if SOLARIS

--- 203 unchanged lines hidden ---