Skip to content

Commit 0c5b2ca

Browse files
kelsey-steelechessturo
authored andcommitted
configs: enable NETFILTER_XT_MATCH_BPF and NETFILTER_XT_MATCH_U32
NETFILTER_XT_MATCH_BPF=m NETFILTER_XT_MATCH_U32=m BPF matching applies a linux socket filter to each packet and accepts those for which the filter returns non-zero. u32 allows you to extract quantities of up to 4 bytes from a packet, AND them with specified masks, shift them by specified amounts and test whether the results are in any of a set of specified ranges. The specification of what to extract is general enough to skip over headers with lengths stored in the packet, as in IP or TCP header lengths. Enabling these configs as modules to support Docker Swarm overlay encryption. Link: microsoft/WSL#10029 Signed-off-by: Kelsey Steele <kelseysteele@microsoft.com>
1 parent 0922832 commit 0c5b2ca

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/arm64/configs/config-wsl-arm64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ CONFIG_NETFILTER_XT_TARGET_TCPMSS=y
10921092
# Xtables matches
10931093
#
10941094
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
1095-
# CONFIG_NETFILTER_XT_MATCH_BPF is not set
1095+
CONFIG_NETFILTER_XT_MATCH_BPF=m
10961096
CONFIG_NETFILTER_XT_MATCH_CGROUP=y
10971097
# CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set
10981098
CONFIG_NETFILTER_XT_MATCH_COMMENT=y
@@ -1136,7 +1136,7 @@ CONFIG_NETFILTER_XT_MATCH_STATISTIC=y
11361136
# CONFIG_NETFILTER_XT_MATCH_STRING is not set
11371137
# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
11381138
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
1139-
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
1139+
CONFIG_NETFILTER_XT_MATCH_U32=m
11401140
# end of Core Netfilter Configuration
11411141

11421142
CONFIG_IP_SET=y

arch/x86/configs/config-wsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ CONFIG_NETFILTER_XT_TARGET_TCPMSS=y
11271127
# Xtables matches
11281128
#
11291129
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y
1130-
# CONFIG_NETFILTER_XT_MATCH_BPF is not set
1130+
CONFIG_NETFILTER_XT_MATCH_BPF=m
11311131
CONFIG_NETFILTER_XT_MATCH_CGROUP=y
11321132
# CONFIG_NETFILTER_XT_MATCH_CLUSTER is not set
11331133
CONFIG_NETFILTER_XT_MATCH_COMMENT=y
@@ -1171,7 +1171,7 @@ CONFIG_NETFILTER_XT_MATCH_STATISTIC=y
11711171
# CONFIG_NETFILTER_XT_MATCH_STRING is not set
11721172
# CONFIG_NETFILTER_XT_MATCH_TCPMSS is not set
11731173
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
1174-
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
1174+
CONFIG_NETFILTER_XT_MATCH_U32=m
11751175
# end of Core Netfilter Configuration
11761176

11771177
CONFIG_IP_SET=y

0 commit comments

Comments
 (0)