Modules¶
Modules
- libbpfilter
bf_ruleset_get()bf_ruleset_set()bf_ruleset_flush()bf_chain_set()bf_chain_get()bf_chain_prog_fd()bf_chain_logs_fd()bf_chain_load()bf_chain_attach()bf_chain_update()bf_chain_flush()bf_ipt_replace()bf_ipt_add_counters()bf_ipt_get_info()bf_ipt_get_entries()bf_nft_send()bf_nft_sendrecv()- Namespaces
- Pack
- Rule
- bpfilter
bpfilter is composed of multiple modules depending on each other. Splitting the project in different modules allows for the source code to be efficiently reused, be it for bfcli, bpfilter’s daemon, or libbpfilter:
core: core definitions used by the daemon,bfcli, andlibbpfilter.bpfilter: daemon logic, including translation of the front-end (client) data intobpfilter’s internal format, and the BPF bytecode generation logic.bfcli: generic client to communicate with the daemon.libbpfilter: static and shared library to communicate with the daemon.external: non-bpfiltercode, imported into the project to provide consistent external definitions.