diff options
author | Janeks Jaunups <th3n3x@gmail.com> | 2014-05-06 07:30:15 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2014-05-06 07:30:15 +0200 |
commit | 12452d6a15fdc50ce53a1fe428fd2520979d7aa6 (patch) | |
tree | 34cb2fffbf452263587d73aebcdec2ebfaa6c5ac /tests/macipmap.t | |
parent | cf5e55f3bab6696e72dfb59bf31064678e391891 (diff) |
ipset: Handle missing leading zeros in ethernet address parser
ipset would not parse ether addresses which are not exactly
17 characters long, for ex. 1:2:3:4:5:6, which is fixed in
the patch.
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'tests/macipmap.t')
-rw-r--r-- | tests/macipmap.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/macipmap.t b/tests/macipmap.t index 53b12fa..45783d6 100644 --- a/tests/macipmap.t +++ b/tests/macipmap.t @@ -44,6 +44,14 @@ 0 diff -u -I 'Size in memory.*' .foo macipmap.t.list0 # Range: Flush test set 0 ipset -F test +# Range: Catch invalid (too long) MAC +1 ipset -A test 2.0.0.2,00:11:22:33:44:55:66 +# Range: Catch invalid (too short) MAC +1 ipset -A test 2.0.0.2,00:11:22:33:44 +# Range: Add an element with MAC without leading zeros +0 ipset -A test 2.0.0.2,0:1:2:3:4:5 +# Range: Check element with MAC without leading zeros +0 ipset -T test 2.0.0.2,0:1:2:3:4:5 # Range: Delete test set 0 ipset -X test # Network: Try to create a set from an invalid network |