summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0016element_leak_0
blob: 5675db316b1b5f7482d2c54357d60c8cc064c1e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# This tests for a bug where a repeated element is added and the set
# elements counter is incorrectly increased.

set -e
$NFT add table x
$NFT add set x s {type ipv4_addr\; size 2\;}
$NFT add element x s {1.1.1.1}
$NFT add element x s {1.1.1.1}
$NFT add element x s {1.1.1.1}