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#ifdef __sgi
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 105194 2002-10-16 01:54:46Z sam $";
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;
--- 336 unchanged lines hidden (view full) ---
453 if (m && au->fra_info.fin_out) {
454# if SOLARIS
455 error = (fr_qout(fra->fra_q, m) == 0) ? EINVAL : 0;
456# else /* SOLARIS */
457 struct route ro;
458
459 bzero((char *)&ro, sizeof(ro));
460# if ((_BSDI_VERSION >= 199802) && (_BSDI_VERSION < 200005)) || \
461 defined(__OpenBSD__) || (defined(IRIX) && (IRIX >= 605)) || \
462 (__FreeBSD_version >= 500042)
463 error = ip_output(m, NULL, &ro, IP_FORWARDING, NULL,
464 NULL);
465# else
466 error = ip_output(m, NULL, &ro, IP_FORWARDING, NULL);
467# endif
468 if (ro.ro_rt) {
469 RTFREE(ro.ro_rt);
470 }
--- 161 unchanged lines hidden ---
2 * Copyright (C) 1998-2001 by Darren Reed & Guido van Rooij.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6#ifdef __sgi
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 105194 2002-10-16 01:54:46Z sam $";
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;
--- 336 unchanged lines hidden (view full) ---
453 if (m && au->fra_info.fin_out) {
454# if SOLARIS
455 error = (fr_qout(fra->fra_q, m) == 0) ? EINVAL : 0;
456# else /* SOLARIS */
457 struct route ro;
458
459 bzero((char *)&ro, sizeof(ro));
460# if ((_BSDI_VERSION >= 199802) && (_BSDI_VERSION < 200005)) || \
461 defined(__OpenBSD__) || (defined(IRIX) && (IRIX >= 605)) || \
462 (__FreeBSD_version >= 500042)
463 error = ip_output(m, NULL, &ro, IP_FORWARDING, NULL,
464 NULL);
465# else
466 error = ip_output(m, NULL, &ro, IP_FORWARDING, NULL);
467# endif
468 if (ro.ro_rt) {
469 RTFREE(ro.ro_rt);
470 }
--- 161 unchanged lines hidden ---