Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2012 16:21:14 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Oguz Yilmaz <oguzyilmazlist@gmail.com>
Cc:        pf@FreeBSD.org
Subject:   Re: [CFT] SMP-friendly pf
Message-ID:  <20120911122114.GK44854@glebius.int.ru>
In-Reply-To: <CAAo%2BKFk0S9=dv2mWcKwiWGHFM3qEnGXBTU%2BCzbbq02LXycUF2g@mail.gmail.com>
References:  <20120608061737.GA28197@glebius.int.ru> <CAAo%2BKFmhAmPw6h=Guq8_G30ak2XNyKib6O1WP9YAEsjB2UshGw@mail.gmail.com> <20120911100639.GE44854@FreeBSD.org> <CAAo%2BKFk0S9=dv2mWcKwiWGHFM3qEnGXBTU%2BCzbbq02LXycUF2g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 11, 2012 at 02:22:39PM +0300, Oguz Yilmaz wrote:
O> Ok. We go thru head.
O> We compiled the kernel and boot into 10.0
O>  FreeBSD 10.0-CURRENT #0 r240350
O> 
O> # pfctl -sr
O> No ALTQ support in kernel
O> ALTQ related functions disabled
O> pfctl: DIOCGETRULES: Permission denied
O> ]# pfctl -si
O> No ALTQ support in kernel
O> ALTQ related functions disabled
O> pfctl: DIOCGETSTATUS: Permission denied
O> 
O> This Permission Denied issues should be old pfctl.
O> 
O> Now, how can we compile pfctl and snmp_pf without make world?

You really should go with make world, because no one guarantees
that head/ branch would work with mismatching world and kernel.

However answer for your question is:

1) Install pfvar.h:

cat /usr/src/sys/contrib/pf/net/pfvar.h > /usr/include/pfvar.h

2) Rebuild and reinstall pfctl and snmp_pf

cd /usr/src/sbin/pfctl
make clean
make
make install

cd /usr/src/usr.sbin/bsnmpd/modules/snmp_pf
make clean
make 
make install

But I'd recommend doing full buildworld and keep your kernel and userland in sync.

-- 
Totus tuus, Glebius.



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