summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>2004-12-26 09:08:42 +0000
committerdarrenr <darrenr@FreeBSD.org>2004-12-26 09:08:42 +0000
commit7994bf8513148813191f0373935ff1f24a5b33d3 (patch)
treefdd89eb877eaf7e669c79e35316c812aec31c304 /sys/contrib
parent8aa567b09d1acd18d701ab81514a8efcc603c5a5 (diff)
downloadFreeBSD-src-7994bf8513148813191f0373935ff1f24a5b33d3.zip
FreeBSD-src-7994bf8513148813191f0373935ff1f24a5b33d3.tar.gz
* The #ifdef's to cause mutex's for freebsd to be declared were meant to pick
up on USE_MUTEX being defined, but this patch * Remove some code that's in a #ifndef FreeBSD that's no longer used.
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/ipfilter/netinet/fil.c18
-rw-r--r--sys/contrib/ipfilter/netinet/ip_fil.c5
2 files changed, 4 insertions, 19 deletions
diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c
index 5687e8f..e545b9b 100644
--- a/sys/contrib/ipfilter/netinet/fil.c
+++ b/sys/contrib/ipfilter/netinet/fil.c
@@ -115,10 +115,10 @@ extern int opts;
# define FR_VERBOSE(verb_pr)
# define FR_DEBUG(verb_pr)
# define IPLLOG(a, c, d, e) ipflog(a, c, d, e)
-# if SOLARIS || defined(__sgi) || (__FreeBSD_version >= 500043)
+# ifdef USE_MUTEX
extern KRWLOCK_T ipf_mutex, ipf_auth, ipf_nat;
extern kmutex_t ipf_rw;
-# endif /* SOLARIS || __sgi || __FreeBSD_version */
+# endif /* USE_MUTEX */
#endif /* _KERNEL */
@@ -1051,15 +1051,6 @@ int out;
fin->fin_out = out;
#endif /* _KERNEL */
-#ifndef __FreeBSD__
- /*
- * Be careful here: ip_id is in network byte order when called
- * from ip_output()
- */
- if ((out) && (v == 4))
- ip->ip_id = ntohs(ip->ip_id);
-#endif
-
changed = 0;
fin->fin_v = v;
fin->fin_ifp = ifp;
@@ -1305,11 +1296,6 @@ logit:
}
#endif /* IPFILTER_LOG */
-#ifndef __FreeBSD__
- if ((out) && (v == 4))
- ip->ip_id = htons(ip->ip_id);
-#endif
-
#ifdef _KERNEL
/*
* Only allow FR_DUP to work if a rule matched - it makes no sense to
diff --git a/sys/contrib/ipfilter/netinet/ip_fil.c b/sys/contrib/ipfilter/netinet/ip_fil.c
index b3d5ef7..f974400 100644
--- a/sys/contrib/ipfilter/netinet/ip_fil.c
+++ b/sys/contrib/ipfilter/netinet/ip_fil.c
@@ -169,9 +169,8 @@ static int ipfr_fastroute6 __P((struct mbuf *, struct mbuf **,
# endif
# ifdef __sgi
extern int tcp_mtudisc;
-extern kmutex_t ipf_rw;
-extern KRWLOCK_T ipf_mutex;
-# elif (__FreeBSD_version >= 500043)
+# endif
+# ifdef USE_MUTEX
extern kmutex_t ipf_rw;
extern KRWLOCK_T ipf_mutex;
# endif
OpenPOWER on IntegriCloud