Date: Mon, 2 Apr 2018 00:37:44 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Reshad Patuck <reshadpatuck1@gmail.com>, freebsd-net@freebsd.org Subject: Re: [netgraph] ng_bpf filter large list of IP addresses Message-ID: <5AC118E8.1020800@grosbein.net> In-Reply-To: <D4E00F05-F64D-4446-A572-E1A0E06B2C47@gmail.com> References: <D4E00F05-F64D-4446-A572-E1A0E06B2C47@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
31.03.2018 20:46, Reshad Patuck wrote: > Please let me know what I am doing wrong with the ngctl config file and > if there is another way, maybe something more direct to load a binary bpf filter directly into ng_bpf. There is also netgraph(3) - Netgraph User Library. You can use it within your C code to send binary or text (ASCII) control messages directly to ng_bpf without limitations of ngctl's own parser. You can get an example of NgSendAsciiMsg() usage in ngctl's sources: https://svnweb.freebsd.org/base/head/usr.sbin/ngctl/msg.c?view=markup
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AC118E8.1020800>