Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Slight adjustment to last, to allow the userland...



details:   https://anonhg.NetBSD.org/src/rev/dd43d5412df2
branches:  trunk
changeset: 495603:dd43d5412df2
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Aug 01 15:03:51 2000 +0000

description:
Slight adjustment to last, to allow the userland version to build.

diffstat:

 sys/netinet/ip_fil.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 03659af961a0 -r dd43d5412df2 sys/netinet/ip_fil.c
--- a/sys/netinet/ip_fil.c      Tue Aug 01 14:28:32 2000 +0000
+++ b/sys/netinet/ip_fil.c      Tue Aug 01 15:03:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_fil.c,v 1.56 2000/08/01 03:46:09 thorpej Exp $      */
+/*     $NetBSD: ip_fil.c,v 1.57 2000/08/01 15:03:51 thorpej Exp $      */
 
 /*
  * Copyright (C) 1993-2000 by Darren Reed.
@@ -9,7 +9,7 @@
  */
 #if !defined(lint)
 #if defined(__NetBSD__)
-static const char rcsid[] = "$NetBSD: ip_fil.c,v 1.56 2000/08/01 03:46:09 thorpej Exp $";
+static const char rcsid[] = "$NetBSD: ip_fil.c,v 1.57 2000/08/01 15:03:51 thorpej Exp $";
 #else
 static const char sccsid[] = "@(#)ip_fil.c     2.41 6/5/96 (C) 1993-2000 Darren Reed";
 static const char rcsid[] = "@(#)Id: ip_fil.c,v 2.42.2.10 2000/05/25 20:16:44 darrenr Exp";
@@ -497,8 +497,13 @@
                 * Since the default rule is to pass all packets,
                 * this shouldn't cause any noticeable side-effects.
                 */
-               if (fr_running == 0)
+               if (fr_running == 0) {
+#if defined(_KERNEL)
                        error = ipl_enable();
+#else
+                       error = EIO;
+#endif
+               }
                if (error == 0)
                        error = nat_ioctl(data, cmd, mode);
                SPL_X(s);



Home | Main Index | Thread Index | Old Index