On 2012/11/08 11:52, Gleydson Soares wrote:
> Hi,
>
> protect bpfilter portion with #if NBPFILTER > 0.
> fix kernel builds without bpfilter.
>
> OK ?
Due to the variable ifp being unused. Yep, OK.
> Index: if_pflow.c
> ===================================================================
> RCS file: /cvs/src/sys/net/if_pflow.c,v
> retrieving revision 1.21
> diff -u -p -r1.21 if_pflow.c
> --- if_pflow.c 30 Oct 2012 12:09:05 -0000 1.21
> +++ if_pflow.c 8 Nov 2012 13:49:13 -0000
> @@ -1106,7 +1106,9 @@ pflow_sendout_mbuf(struct pflow_softc *s
> {
> struct udpiphdr *ui;
> u_int16_t len = m->m_pkthdr.len;
> +#if NBPFILTER > 0
> struct ifnet *ifp = &sc->sc_if;
> +#endif
> struct ip *ip;
> int err;