forked from facebook/bpfilter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xlate: nft: add support for NFT_MSG_NEWRULE and NFT_MSG_GETRULE
Processing rules coming from nftables requires parsing the netlink message. nftables sends bytecode to the kernel, so this bytecode need to be careful processed to convert it into bpfilter-specific format. Eventually, we'll have to process NFT_MSG_NEWRULE in a smarter way to handle more use case. For now, a new filtering with to filter on source or destination IP, protocol, with option counters, can be defined. This rule can be fetched back from bpfilter, with the correct counter value. Signed-off-by: Quentin Deslandes <[email protected]>
- Loading branch information
1 parent
3ff6008
commit 31c3bfd
Showing
1 changed file
with
293 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters