Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2002 08:04:14 -0700 (PDT)
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Subject:   Circumvention for sys/net/if_ethersubr.c
Message-ID:  <200209121504.g8CF4ESD012087@bunrab.catwhisker.org>

next in thread | raw e-mail | index | archive | help
OK; it's probably rather like a sledgehammer, but I got the kernel
to compile and run with the following patch:

Index: sys/net/if_ethersubr.c
===================================================================
RCS file: /cvs/freebsd/src/sys/net/if_ethersubr.c,v
retrieving revision 1.120
diff -u -r1.120 if_ethersubr.c
--- sys/net/if_ethersubr.c	12 Sep 2002 01:05:46 -0000	1.120
+++ sys/net/if_ethersubr.c	12 Sep 2002 14:31:30 -0000
@@ -463,8 +463,10 @@
 	int i;
 	struct ip_fw_args args;
 
+#ifdef IPFIREWALL
 	if (*rule != NULL && fw_one_pass)
 		return 1; /* dummynet packet, already partially processed */
+#endif /* IPFIREWALL */
 
 	/*
 	 * I need some amt of data to be contiguous, and in case others need

As evidenced by:

freebeast(5.0-C)[1] uname -a
FreeBSD freebeast.catwhisker.org 5.0-CURRENT FreeBSD 5.0-CURRENT #30: Thu Sep 12 07:41:46 PDT 2002     root@freebeast.catwhisker.org:/common/S4/obj/usr/src/sys/FREEBEAST  i386
freebeast(5.0-C)[2] 


Cheers,
david
-- 
David H. Wolfskill				david@catwhisker.org
To paraphrase David Hilbert, there can be no conflicts between the
discipline of systems administration and Microsoft, since they have
nothing in common.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209121504.g8CF4ESD012087>