blob: cada6956f165badd750a07e4b6a7b840c9b5b426 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
# check if netdev chains survive without a single device
unshare -n bash -c "ip link add d0 type dummy; \
$NFT \"table netdev t { \
chain c { \
type filter hook ingress priority 0; devices = { d0 }; \
}; \
}\"; \
ip link del d0; \
$NFT list chain netdev t c"
|