-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selftests: netfilter: move to net subdir
.. so this can start re-using existing lib.sh infra in next patches. Several of these scripts will not work, e.g. because they assume rp_filter is disabled, or reliance on a particular version/flavor of "netcat" tool. Add config settings for them. nft_trans_stress.sh script is removed, it also exists in the nftables userspace selftests. I do not see a reason to keep two versions in different repositories/projects. The settings file is removed for now: It was used to increase the timeout to avoid slow scripts from getting zapped by the 45s timeout, but some of the slow scripts can be sped up. Re-add it later for scripts that cannot be sped up easily. Update MAINTAINERS to reflect that future updates to netfilter scripts should go through netfilter-devel@. Signed-off-by: Florian Westphal <fw@strlen.de> Link: https://lore.kernel.org/r/20240411233624.8129-2-fw@strlen.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
- Loading branch information
Florian Westphal
authored and
Jakub Kicinski
committed
Apr 13, 2024
1 parent
982a73c
commit 3f18934
Showing
36 changed files
with
97 additions
and
194 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
4 changes: 2 additions & 2 deletions
4
tools/testing/selftests/netfilter/.gitignore → ...esting/selftests/net/netfilter/.gitignore
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
nf-queue | ||
connect_close | ||
audit_logread | ||
connect_close | ||
conntrack_dump_flush | ||
sctp_collision | ||
nf_queue |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
top_srcdir = ../../../../.. | ||
|
||
HOSTPKG_CONFIG := pkg-config | ||
MNL_CFLAGS := $(shell $(HOSTPKG_CONFIG) --cflags libmnl 2>/dev/null) | ||
MNL_LDLIBS := $(shell $(HOSTPKG_CONFIG) --libs libmnl 2>/dev/null || echo -lmnl) | ||
|
||
TEST_PROGS := br_netfilter.sh bridge_brouter.sh | ||
TEST_PROGS += conntrack_icmp_related.sh | ||
TEST_PROGS += conntrack_ipip_mtu.sh | ||
TEST_PROGS += conntrack_tcp_unreplied.sh | ||
TEST_PROGS += conntrack_sctp_collision.sh | ||
TEST_PROGS += conntrack_vrf.sh | ||
TEST_PROGS += ipvs.sh | ||
TEST_PROGS += nf_nat_edemux.sh | ||
TEST_PROGS += nft_audit.sh | ||
TEST_PROGS += nft_concat_range.sh | ||
TEST_PROGS += nft_conntrack_helper.sh | ||
TEST_PROGS += nft_fib.sh | ||
TEST_PROGS += nft_flowtable.sh | ||
TEST_PROGS += nft_meta.sh | ||
TEST_PROGS += nft_nat.sh | ||
TEST_PROGS += nft_nat_zones.sh | ||
TEST_PROGS += nft_queue.sh | ||
TEST_PROGS += nft_synproxy.sh | ||
TEST_PROGS += nft_zones_many.sh | ||
TEST_PROGS += rpath.sh | ||
TEST_PROGS += xt_string.sh | ||
|
||
TEST_CUSTOM_PROGS += conntrack_dump_flush | ||
|
||
TEST_GEN_FILES = audit_logread | ||
TEST_GEN_FILES += conntrack_dump_flush | ||
TEST_GEN_FILES += connect_close nf_queue | ||
TEST_GEN_FILES += sctp_collision | ||
|
||
include ../../lib.mk | ||
|
||
$(OUTPUT)/nf_queue: CFLAGS += $(MNL_CFLAGS) | ||
$(OUTPUT)/nf_queue: LDLIBS += $(MNL_LDLIBS) | ||
|
||
$(OUTPUT)/conntrack_dump_flush: CFLAGS += $(MNL_CFLAGS) | ||
$(OUTPUT)/conntrack_dump_flush: LDLIBS += $(MNL_LDLIBS) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
CONFIG_AUDIT=y | ||
CONFIG_BRIDGE_EBT_BROUTE=m | ||
CONFIG_BRIDGE_EBT_REDIRECT=m | ||
CONFIG_BRIDGE_NETFILTER=m | ||
CONFIG_IP_NF_MATCH_RPFILTER=m | ||
CONFIG_IP6_NF_MATCH_RPFILTER=m | ||
CONFIG_IP_SCTP=m | ||
CONFIG_IP_VS=m | ||
CONFIG_IP_VS_PROTO_TCP=y | ||
CONFIG_NET_CLS_U32=m | ||
CONFIG_NET_SCH_NETEM=m | ||
CONFIG_NET_SCH_HTB=m | ||
CONFIG_NET_IPIP=m | ||
CONFIG_NET_VRF=y | ||
CONFIG_NETFILTER_NETLINK=m | ||
CONFIG_NETFILTER_SYNPROXY=m | ||
CONFIG_NETFILTER_XT_NAT=m | ||
CONFIG_NETFILTER_XT_TARGET_REDIRECT=m | ||
CONFIG_NF_CONNTRACK=m | ||
CONFIG_NF_CONNTRACK_EVENTS=m | ||
CONFIG_NF_CONNTRACK_ZONES=y | ||
CONFIG_NF_CT_NETLINK=m | ||
CONFIG_NF_CT_PROTO_SCTP=y | ||
CONFIG_NF_TABLES=m | ||
CONFIG_NF_TABLES_INET=y | ||
CONFIG_NF_TABLES_IPV4=y | ||
CONFIG_NF_TABLES_IPV6=y | ||
CONFIG_NFT_CT=m | ||
CONFIG_NFT_FIB=m | ||
CONFIG_NFT_FIB_INET=m | ||
CONFIG_NFT_FIB_IPV4=m | ||
CONFIG_NFT_FIB_IPV6=m | ||
CONFIG_NFT_MASQ=m | ||
CONFIG_NFT_NAT=m | ||
CONFIG_NFT_QUEUE=m | ||
CONFIG_NFT_REDIR=m | ||
CONFIG_NFT_SYNPROXY=m |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
net_netfilter_dir=$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") | ||
|
||
source "$net_netfilter_dir/../lib.sh" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.