]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't compile in token ring stuff if we don't support it.
authorTed Lemon <source@isc.org>
Tue, 10 Oct 2000 22:00:09 +0000 (22:00 +0000)
committerTed Lemon <source@isc.org>
Tue, 10 Oct 2000 22:00:09 +0000 (22:00 +0000)
common/bpf.c

index 7f883019bc6929daf0b926c6035888442ffd95c5..6015bf17b43cfc516d5683c6624962cbf7a5a428 100644 (file)
@@ -47,7 +47,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bpf.c,v 1.42 2000/09/01 23:03:31 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bpf.c,v 1.43 2000/10/10 22:00:09 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -210,9 +210,12 @@ struct bpf_insn dhcp_bpf_filter [] = {
        BPF_STMT(BPF_RET+BPF_K, 0),
 };
 
+#if defined (DEC_FDDI)
 struct bpf_insn *bpf_fddi_filter;
+#endif
 
 int dhcp_bpf_filter_len = sizeof dhcp_bpf_filter / sizeof (struct bpf_insn);
+#if defined (HAVE_TR_SUPPORT)
 struct bpf_insn dhcp_bpf_tr_filter [] = {
         /* accept all token ring packets due to variable length header */
         /* if we want to get clever, insert the program here */
@@ -226,7 +229,8 @@ struct bpf_insn dhcp_bpf_tr_filter [] = {
 
 int dhcp_bpf_tr_filter_len = (sizeof dhcp_bpf_tr_filter /
                              sizeof (struct bpf_insn));
-#endif
+#endif /* HAVE_TR_SUPPORT */
+#endif /* USE_LPF_RECEIVE || USE_BPF_RECEIVE */
 
 #if defined (USE_BPF_RECEIVE)
 void if_register_receive (info)