diff options
author | Ted Lemon <source@isc.org> | 2000-10-10 22:00:09 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2000-10-10 22:00:09 +0000 |
commit | 52b2c640361a74fa9ff5dab97c38fcdb06cf40f7 (patch) | |
tree | 70abfbe46d4f5ca43d5b8d6fa993590e568ac971 /common/bpf.c | |
parent | d6eb6cf6db0a974473c8643beccc0a8f41d73084 (diff) | |
download | isc-dhcp-52b2c640361a74fa9ff5dab97c38fcdb06cf40f7.tar.gz |
Don't compile in token ring stuff if we don't support it.
Diffstat (limited to 'common/bpf.c')
-rw-r--r-- | common/bpf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/bpf.c b/common/bpf.c index 7f883019..6015bf17 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -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) |