Remove ancient preprocessor code. Fix module compilation.

Requested by:	n_hibma
This commit is contained in:
Roman Kurakin 2007-03-25 20:21:31 +00:00
parent bcbff0a86f
commit 1b01e9f4ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167882

View File

@ -69,13 +69,6 @@ __FBSDID("$FreeBSD$");
# include <net/if_types.h>
# include <net/if_sppp.h>
# define PP_CISCO IFF_LINK2
# if __FreeBSD_version < 500000
# include <bpf.h>
# define NBPFILTER NBPF
# else
# include "opt_bpf.h"
# define NBPFILTER DEV_BPF
# endif
# include <net/bpf.h>
#endif
#include <dev/cx/machdep.h>
@ -844,10 +837,9 @@ static int ce_detach (device_t dev)
if (! d || ! d->chan)
continue;
#ifndef NETGRAPH
#if __FreeBSD_version >= 410000 && NBPFILTER > 0
/* Detach from the packet filter list of interfaces. */
bpfdetach (d->ifp);
#endif
/* Detach from the sync PPP list. */
sppp_detach (d->ifp);