Skip to content

Commit

Permalink
netfilter: add bpf match support
Browse files Browse the repository at this point in the history
Add xt_bpf modules to {kmod-ipt,iptables-mod}-filter.

Match using Linux Socket Filter. Expects a BPF program in decimal
format. This is the format generated by the nfbpf_compile utility.

Signed-off-by: Alin Nastac <[email protected]>
  • Loading branch information
alinnastac authored and blogic committed Jun 26, 2018
1 parent 094d49c commit ab07ae2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/netfilter.mk
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ $(eval $(call nf_add,IPT_PHYSDEV,CONFIG_NETFILTER_XT_MATCH_PHYSDEV, $(P_XT)xt_ph
# filter

$(eval $(call nf_add,IPT_FILTER,CONFIG_NETFILTER_XT_MATCH_STRING, $(P_XT)xt_string))
$(eval $(call nf_add,IPT_FILTER,CONFIG_NETFILTER_XT_MATCH_BPF, $(P_XT)xt_bpf))


# ipopt
Expand Down
1 change: 1 addition & 0 deletions package/kernel/linux/modules/netfilter.mk
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ define KernelPackage/ipt-filter/description
Netfilter (IPv4) kernel modules for packet content inspection
Includes:
- string
- bpf
endef

$(eval $(call KernelPackage,ipt-filter))
Expand Down
1 change: 1 addition & 0 deletions package/network/utils/iptables/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Includes support for:

Matches:
- string
- bpf

endef

Expand Down

0 comments on commit ab07ae2

Please sign in to comment.