Deleted Added
full compact
fil.c (102520) fil.c (108172)
1/*
2 * Copyright (C) 1993-2001 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6#ifdef __sgi
7# include <sys/ptimers.h>
8#endif

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

94# define MIN(a,b) (((a)<(b))?(a):(b))
95#endif
96#include "netinet/ipl.h"
97
98#include <machine/in_cksum.h>
99
100#if !defined(lint)
101static const char sccsid[] = "@(#)fil.c 1.36 6/5/96 (C) 1993-2000 Darren Reed";
1/*
2 * Copyright (C) 1993-2001 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6#ifdef __sgi
7# include <sys/ptimers.h>
8#endif

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

94# define MIN(a,b) (((a)<(b))?(a):(b))
95#endif
96#include "netinet/ipl.h"
97
98#include <machine/in_cksum.h>
99
100#if !defined(lint)
101static const char sccsid[] = "@(#)fil.c 1.36 6/5/96 (C) 1993-2000 Darren Reed";
102static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/fil.c 102520 2002-08-28 13:41:36Z darrenr $";
102static const char rcsid[] = "@(#)$FreeBSD: head/sys/contrib/ipfilter/netinet/fil.c 108172 2002-12-22 05:35:03Z hsu $";
103#endif
104
105#ifndef _KERNEL
106# include "ipf.h"
107# include "ipt.h"
108extern int opts;
109
110# define FR_VERBOSE(verb_pr) verbose verb_pr

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

1958{
1959# if !SOLARIS
1960 register struct ifnet *ifp;
1961
1962# if defined(__OpenBSD__) || ((NetBSD >= 199511) && (NetBSD < 1991011)) || \
1963 (defined(__FreeBSD_version) && (__FreeBSD_version >= 300000))
1964# if (NetBSD >= 199905) || defined(__OpenBSD__)
1965 for (ifp = ifnet.tqh_first; ifp; ifp = ifp->if_list.tqe_next)
103#endif
104
105#ifndef _KERNEL
106# include "ipf.h"
107# include "ipt.h"
108extern int opts;
109
110# define FR_VERBOSE(verb_pr) verbose verb_pr

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

1958{
1959# if !SOLARIS
1960 register struct ifnet *ifp;
1961
1962# if defined(__OpenBSD__) || ((NetBSD >= 199511) && (NetBSD < 1991011)) || \
1963 (defined(__FreeBSD_version) && (__FreeBSD_version >= 300000))
1964# if (NetBSD >= 199905) || defined(__OpenBSD__)
1965 for (ifp = ifnet.tqh_first; ifp; ifp = ifp->if_list.tqe_next)
1966# elif defined(__FreeBSD_version) && (__FreeBSD_version >= 500043)
1967 IFNET_RLOCK();
1968 TAILQ_FOREACH(ifp, &ifnet, if_link)
1966# else
1967 for (ifp = ifnet.tqh_first; ifp; ifp = ifp->if_link.tqe_next)
1968# endif
1969# else
1970 for (ifp = ifnet; ifp; ifp = ifp->if_next)
1971# endif
1972 {
1973 ip_natsync(ifp);
1974 ip_statesync(ifp);
1975 }
1969# else
1970 for (ifp = ifnet.tqh_first; ifp; ifp = ifp->if_link.tqe_next)
1971# endif
1972# else
1973 for (ifp = ifnet; ifp; ifp = ifp->if_next)
1974# endif
1975 {
1976 ip_natsync(ifp);
1977 ip_statesync(ifp);
1978 }
1979# if defined(__FreeBSD_version) && (__FreeBSD_version >= 500043)
1980 IFNET_RUNLOCK();
1981# endif
1976 ip_natsync((struct ifnet *)-1);
1977# endif /* !SOLARIS */
1978
1979 WRITE_ENTER(&ipf_mutex);
1980 frsynclist(ipacct[0][fr_active]);
1981 frsynclist(ipacct[1][fr_active]);
1982 frsynclist(ipfilter[0][fr_active]);
1983 frsynclist(ipfilter[1][fr_active]);

--- 221 unchanged lines hidden ---
1982 ip_natsync((struct ifnet *)-1);
1983# endif /* !SOLARIS */
1984
1985 WRITE_ENTER(&ipf_mutex);
1986 frsynclist(ipacct[0][fr_active]);
1987 frsynclist(ipacct[1][fr_active]);
1988 frsynclist(ipfilter[0][fr_active]);
1989 frsynclist(ipfilter[1][fr_active]);

--- 221 unchanged lines hidden ---