Home
last modified time | relevance | path

Searched refs:XT_MULTI (Results 1 – 25 of 52) sorted by relevance

123

/external/iptables/iptables/tests/shell/testcases/ebtables/
D0002-ebtables-save-restore_07 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
11 $XT_MULTI ebtables --init-table
12 $XT_MULTI ebtables -A INPUT -p IPv4 -i lo -j ACCEPT
13 $XT_MULTI ebtables -P FORWARD DROP
14 $XT_MULTI ebtables -A OUTPUT -s ff:ff:ff:ff:ff:ff/ff:ff:ff:ff:ff:ff -j DROP
15 $XT_MULTI ebtables -N foo
16 $XT_MULTI ebtables -A foo --802_3-sap 0x23 -j ACCEPT
17 $XT_MULTI ebtables -A foo --802_3-sap 0xaa --802_3-type 0x1337 -j ACCEPT
19 $XT_MULTI ebtables -A foo -p ARP --arp-gratuitous -j ACCEPT
20 $XT_MULTI ebtables -A foo -p ARP --arp-opcode Request -j ACCEPT
[all …]
D0001-ebtables-basic_03 case "$XT_MULTI" in
7 echo "skip $XT_MULTI"
13 $XT_MULTI ebtables -L $1 | sed -n 's/.*entries: \([0-9]*\).*/\1/p'
19 $XT_MULTI ebtables -t $t -L || exit 1
20 $XT_MULTI ebtables -t $t -X || exit 1
21 $XT_MULTI ebtables -t $t -F || exit 1
25 $XT_MULTI ebtables -t $t -L &&
26 $XT_MULTI ebtables -t $t -X &&
27 $XT_MULTI ebtables -t $t -F
35 $XT_MULTI ebtables -t filter -N FOO || exit 1
[all …]
D0004-save-counters_06 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
8 $XT_MULTI ebtables --init-table
9 $XT_MULTI ebtables -A FORWARD -i nodev123 -o nodev432 -j ACCEPT
10 $XT_MULTI ebtables -A FORWARD -i nodev432 -o nodev123 -j ACCEPT
19 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables -L FORWARD)
28 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables -L FORWARD --Lc)
38 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save | grep -v '^#')
48 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save -c | grep -v '^#')
54 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save -c | grep -v '^#')
64 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save | grep -v '^#')
D0003-ebtables-restore-defaults_06 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
29 $XT_MULTI ebtables --init-table
30 $XT_MULTI ebtables-restore <<<$DUMP
31 diff -u <(echo -e "$EXPECT") <($XT_MULTI ebtables-save | grep -v '^#')
/external/iptables/iptables/tests/shell/testcases/arptables/
D0001-arptables-save-restore_07 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
11 $XT_MULTI arptables -F
12 $XT_MULTI arptables -A INPUT -s 10.0.0.0/8 -j ACCEPT
13 $XT_MULTI arptables -A INPUT -d 192.168.123.1 -j ACCEPT
14 $XT_MULTI arptables -A INPUT --source-mac fe:ed:ba:be:00:01 -j ACCEPT
15 $XT_MULTI arptables -A INPUT --destination-mac fe:ed:ba:be:00:01 -j ACCEPT
16 $XT_MULTI arptables -N foo
17 $XT_MULTI arptables -A foo -i lo -j ACCEPT
18 $XT_MULTI arptables -A foo -l 6 -j ACCEPT
19 $XT_MULTI arptables -A foo -j MARK --set-mark 12345
[all …]
D0003-arptables-verbose-output_07 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
9 $XT_MULTI arptables -N foo
31 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI arptables -v -A INPUT $RULE1)
32 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI arptables -v -A INPUT $RULE2)
33 diff -u -Z <(echo -e "$VOUT3") <($XT_MULTI arptables -v -A INPUT $RULE3)
34 diff -u -Z <(echo -e "$VOUT4") <($XT_MULTI arptables -v -A OUTPUT $RULE4)
35 diff -u -Z <(echo -e "$VOUT5") <($XT_MULTI arptables -v -A OUTPUT $RULE5)
36 diff -u -Z <(echo -e "$VOUT6") <($XT_MULTI arptables -v -A foo $RULE6)
50 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI arptables -v -n -L)
63 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI arptables-save | grep -v '^#')
D0002-arptables-restore-defaults_06 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
24 $XT_MULTI arptables -F
25 $XT_MULTI arptables-restore <<<$DUMP
26 diff -u <(echo -e "$EXPECT") <($XT_MULTI arptables-save | grep -v '^#')
/external/iptables/iptables/tests/shell/testcases/iptables/
D0006-46-args_05 $XT_MULTI iptables -6 -A FORWARD -j ACCEPT
12 $XT_MULTI ip6tables -4 -A FORWARD -j ACCEPT
30 echo "$RULESET" | $XT_MULTI iptables-restore || {
34 diff -u -Z <(echo -e "$EXPECT4") <($XT_MULTI iptables -S FORWARD) || {
38 diff -u -Z <(echo -e "$EXPECT_EMPTY") <($XT_MULTI ip6tables -S FORWARD) || {
43 $XT_MULTI iptables -F FORWARD
45 echo "$RULESET" | $XT_MULTI ip6tables-restore || {
49 diff -u -Z <(echo -e "$EXPECT6") <($XT_MULTI ip6tables -S FORWARD) || {
53 diff -u -Z <(echo -e "$EXPECT_EMPTY") <($XT_MULTI iptables -S FORWARD) || {
58 $XT_MULTI ip6tables -F FORWARD
[all …]
D0002-verbose-output_013 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI iptables -v -A FORWARD $RULE1)
14 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI iptables -v -I FORWARD 2 $RULE2)
16 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI iptables -v -C FORWARD $RULE1)
17 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI iptables -v -C FORWARD $RULE2)
30 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -n -L)
32 [[ -z $($XT_MULTI iptables -v -N foobar) ]] || exit 1
34 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI iptables -v -D FORWARD $RULE1)
35 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI iptables -v -D FORWARD $RULE2)
42 diff -u <(echo -e "$EXPECT") <($XT_MULTI iptables -v -F)
49 diff -u <(echo -e "$EXPECT") <($XT_MULTI iptables -v -Z)
[all …]
D0003-list-rules_05 $XT_MULTI iptables -N foo
6 $XT_MULTI iptables -A FORWARD -i eth23 -o eth42 -j ACCEPT
7 $XT_MULTI iptables -A FORWARD -i eth42 -o eth23 -g foo
8 $XT_MULTI iptables -t nat -A OUTPUT -o eth123 -m mark --mark 0x42 -j ACCEPT
17 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -S)
26 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -S)
32 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -S FORWARD)
38 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -S FORWARD)
43 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -t nat -S OUTPUT)
48 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI iptables -v -t nat -S OUTPUT)
[all …]
D0005-rule-replace_09 $XT_MULTI iptables -S | grep -v '^-P'
12 $XT_MULTI iptables -A FORWARD -m comment --comment "rule 1" -j ACCEPT
13 $XT_MULTI iptables -A FORWARD -m comment --comment "rule 2" -j ACCEPT
14 $XT_MULTI iptables -A FORWARD -m comment --comment "rule 3" -j ACCEPT
16 $XT_MULTI iptables -R FORWARD 2 -m comment --comment "replaced 2" -j ACCEPT
24 $XT_MULTI iptables -R FORWARD 1 -m comment --comment "replaced 1" -j ACCEPT
32 $XT_MULTI iptables -R FORWARD 3 -m comment --comment "replaced 3" -j ACCEPT
D0001-chain-refs_07 $XT_MULTI iptables -N foo
8 $XT_MULTI iptables -L | grep 'Chain foo (0 references)'
10 $XT_MULTI iptables -A foo -j ACCEPT
11 $XT_MULTI iptables -L | grep 'Chain foo (0 references)'
13 $XT_MULTI iptables -A FORWARD -j foo
14 $XT_MULTI iptables -L | grep 'Chain foo (1 references)'
/external/iptables/iptables/tests/shell/testcases/ip6tables/
D0002-verbose-output_013 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI ip6tables -v -A FORWARD $RULE1)
14 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI ip6tables -v -I FORWARD 2 $RULE2)
16 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI ip6tables -v -C FORWARD $RULE1)
17 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI ip6tables -v -C FORWARD $RULE2)
30 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -n -L)
32 diff -u -Z <(echo -e "$VOUT1") <($XT_MULTI ip6tables -v -D FORWARD $RULE1)
33 diff -u -Z <(echo -e "$VOUT2") <($XT_MULTI ip6tables -v -D FORWARD $RULE2)
39 diff -u <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -F)
45 diff -u <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -Z)
47 diff -u <(echo "Flushing chain \`OUTPUT'") <($XT_MULTI ip6tables -v -F OUTPUT)
[all …]
D0003-list-rules_05 $XT_MULTI ip6tables -N foo
6 $XT_MULTI ip6tables -A FORWARD -i eth23 -o eth42 -j ACCEPT
7 $XT_MULTI ip6tables -A FORWARD -i eth42 -o eth23 -g foo
8 $XT_MULTI ip6tables -t nat -A OUTPUT -o eth123 -m mark --mark 0x42 -j ACCEPT
17 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -S)
26 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -S)
32 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -S FORWARD)
38 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -S FORWARD)
43 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -t nat -S OUTPUT)
48 diff -u -Z <(echo -e "$EXPECT") <($XT_MULTI ip6tables -v -t nat -S OUTPUT)
[all …]
/external/iptables/iptables/tests/shell/testcases/ipt-save/
D0003save-restore_033 $XT_MULTI iptables -N FOO || exit 1
34 $XT_MULTI iptables -I INPUT || exit 1
35 $XT_MULTI iptables -I FOO || exit 1
36 $XT_MULTI iptables -I FOO || exit 1
38 $XT_MULTI iptables-save | grep -v "^#" > "$tmpfile" || exit 1
39 $XT_MULTI iptables-restore < "$tmpfile" || exit 1
41 $XT_MULTI iptables -N BAR || exit 1
42 $XT_MULTI iptables -A BAR || exit 1
44 $XT_MULTI iptables-restore < "$tmpfile" || exit 1
45 $XT_MULTI iptables-save | grep -v "^#" > "$tmpfile1" || exit 1
/external/iptables/iptables/tests/shell/testcases/chain/
D0003rename_13 $XT_MULTI iptables -N c1 || exit 0
4 $XT_MULTI iptables -N c2 || exit 0
5 $XT_MULTI iptables -E c1 c2 || exit 1
7 $XT_MULTI ip6tables -N c1 || exit 0
8 $XT_MULTI ip6tables -N c2 || exit 0
9 $XT_MULTI ip6tables -E c1 c2 || exit 1
D0002newchain_05 $XT_MULTI iptables -N c1
6 $XT_MULTI ip6tables -N c1
8 $XT_MULTI iptables -N c2
9 $XT_MULTI ip6tables -N c2
/external/iptables/iptables/tests/shell/testcases/nft-only/
D0006-policy-override_03 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
11 $XT_MULTI $@
12 $XT_MULTI iptables -S | grep -q -- '-P FORWARD DROP' && return
15 $XT_MULTI iptables -P FORWARD DROP
19 $XT_MULTI iptables -P FORWARD DROP
D0009-needless-bitwise_03 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
15 ) | $XT_MULTI iptables-restore
24 ) | $XT_MULTI ip6tables-restore
45 ) | $XT_MULTI arptables-restore
53 ) | $XT_MULTI ebtables-restore
D0002invflags_05 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
7 $XT_MULTI iptables -A INPUT -p tcp --dport 53 ! -s 192.168.0.1 -j ACCEPT
8 $XT_MULTI ip6tables -A INPUT -p tcp --dport 53 ! -s feed:babe::1 -j ACCEPT
9 $XT_MULTI ebtables -A INPUT -p IPv4 --ip-src 10.0.0.1 ! -i lo -j ACCEPT
D0007-mid-restore-flush_03 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
4 nft -v >/dev/null || { echo "skip $XT_MULTI (no nft)"; exit 0; }
6 coproc $XT_MULTI iptables-restore --noflush
16 $XT_MULTI iptables-save | grep -q ':foo'
D0008-basechain-policy_03 [[ $XT_MULTI == *xtables-nft-multi ]] || { echo "skip $XT_MULTI"; exit 0; }
6 $XT_MULTI iptables -t raw -P OUTPUT DROP
11 $XT_MULTI iptables-restore --noflush <<EOF
26 $XT_MULTI iptables-save | grep -C2 raw | grep OUTPUT | grep DROP
/external/iptables/iptables/tests/shell/testcases/ipt-restore/
D0004-restore-race_013 $XT_MULTI iptables -t filter -F
14 $XT_MULTI iptables -t filter -X
77 $XT_MULTI iptables-restore -w < $dumpfile
79 $XT_MULTI iptables-save | grep -v '^#' > $dumpfile
87 case "$XT_MULTI" in
103 $XT_MULTI iptables-restore -w 15 < $dumpfile &
111 $XT_MULTI iptables-save | grep -v '^#' > $tmpfile
D0003-restore-ordering_010 $XT_MULTI iptables -S | grep -v '^-P'
15 $XT_MULTI iptables-restore <<EOF
33 $XT_MULTI iptables-restore --noflush <<EOF
63 $XT_MULTI iptables-restore <<EOF
85 $XT_MULTI iptables-restore --noflush <<EOF
105 $XT_MULTI iptables-restore <<EOF
113 $XT_MULTI iptables-restore --noflush <<EOF
/external/iptables/iptables/tests/shell/testcases/firewalld-restore/
D0001-firewalld_03 $XT_MULTI iptables -w -L -n > /dev/null || exit 1
4 $XT_MULTI iptables -w2 -L -n > /dev/null || exit 1
6 echo -n '#foo' | $XT_MULTI iptables-restore -w || exit 1
10 $XT_MULTI iptables -w2 -t $table -L -n > /dev/null
13 $XT_MULTI iptables -w2 -p icmp --help | grep -q 'Valid ICMP Types' || exit 1
15 cat <<EOF | $XT_MULTI iptables-restore -w -n
105 cat <<EOF | $XT_MULTI iptables-restore -w -n
181 cat <<EOF | $XT_MULTI iptables-restore -w -n
205 cat <<EOF | $XT_MULTI iptables-restore -w -n
230 $XT_MULTI iptables-save -t $table | grep -v '^#' >> "$tmpfile"

123