unable to use BPF Just-In-Time compiler
Jung-uk Kim
jkim at FreeBSD.org
Mon Sep 19 16:04:55 UTC 2016
On 09/17/2016 17:11, Bjoern A. Zeeb wrote:
> On 15 Sep 2016, at 5:32, KrishnamRaju ErapaRaju wrote:
>
>> Hi,
>>
>> I want to use BPF JIT Kernel APIs in FreeBSD(like: bpf_jitter(),
>> etc..), for implementing TCP connection packet filtering.
>>
>> I have followed below instructions as specified in:
>> https://lists.freebsd.org/pipermail/freebsd-current/2005-December/058603.html
>>
>>
>> STEPS followed:
>> ---------------------
>> cp /usr/src/sys/amd64/conf/GENERIC /usr/src/sys/amd64/conf/MYKERNEL
>>
>> And added below line in MYKERNEL config file.
>> options BPF_JITTER
>
> I think you want
>
> device bpf_jitter
>
> The options line to my understanding only turns it on by default.
"options BPF_JITTER" works. I don't know why the OP thinks that it
doesn't work, though.
Jung-uk Kim
>> make buildkernel KERNCONF=MYKERNEL
>> make installkernel KERNCONF=MYKERNEL
>> reboot
>>
>> But after reboot the flag BPF_JITTER is not getting enabled(all the
>> code inside "#ifdef BPF_JITTER" is not getting executed).
>>
>> Am I missing something?
>>
>> Also it looks like there are not many updates to BPF JIT code since
>> 2005, is it stable? anyone using it?
>>
>> Thanks,
>> Krishna.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20160919/6c4958ed/attachment.sig>
More information about the freebsd-net
mailing list