EXPECTED='table inet t {
flowtable f {
hook ingress priority 10
- devices = { eth0, wlan0 }
+ devices = { lo }
}
chain c {
set -e
$NFT add table t
-$NFT add flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; }
-if $NFT create flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; } 2>/dev/null ; then
+$NFT add flowtable t f { hook ingress priority 10 \; devices = { lo }\; }
+if $NFT create flowtable t f { hook ingress priority 10 \; devices = { lo }\; } 2>/dev/null ; then
echo "E: flowtable creation not failing on existing set" >&2
exit 1
fi
-$NFT add flowtable t f { hook ingress priority 10 \; devices = { eth0, wlan0 }\; }
+$NFT add flowtable t f { hook ingress priority 10 \; devices = { lo }\; }
exit 0
set -e
$NFT add table x
-$NFT add flowtable x y { hook ingress priority 0\; devices = { eth0, wlan0 }\;}
+$NFT add flowtable x y { hook ingress priority 0\; devices = { lo }\;}
$NFT flush ruleset
$NFT add table x
-$NFT add flowtable x y { hook ingress priority 0\; devices = { eth0, wlan0 }\;}
+$NFT add flowtable x y { hook ingress priority 0\; devices = { lo }\;}
+++ /dev/null
-#!/bin/bash
-
-set -e
-$NFT add table x
-$NFT add flowtable x y { hook ingress priority 0\; devices = { eth0, wlan0 }\;}
-$NFT delete flowtable x y
--- /dev/null
+#!/bin/bash
+
+set -e
+$NFT add table x
+$NFT add flowtable x y { hook ingress priority 0\; devices = { lo }\;}
+$NFT delete flowtable x y
set -e
$NFT add table x
$NFT add chain x x
-$NFT add flowtable x y { hook ingress priority 0\; devices = { eth0, wlan0 }\;}
+$NFT add flowtable x y { hook ingress priority 0\; devices = { lo }\;}
$NFT add rule x x flow offload @y
$NFT delete flowtable x y
echo "E: delete flowtable in use"
table inet t {
flowtable f {
hook ingress priority 10
- devices = { eth0, wlan0 }
+ devices = { lo }
}
chain c {