diff options
author | Laura Garcia Liebana <nevola@gmail.com> | 2016-10-22 23:36:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-10-27 21:46:43 +0200 |
commit | d4f9a8fb9e9acc09b0726e19e7c8e5faaa959803 (patch) | |
tree | 0277f97784fdda68d2e2acb6c8ba493135466a5f /tests | |
parent | 8a7f6de536408336770e352cde939f8cb09a644d (diff) |
src: add offset attribute for numgen expression
Add support to add an offset to the numgen generated value.
Example:
ct mark set numgen inc mod 2 offset 100
This will generate marks with serie like 100, 101, 100, ...
Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/py/ip/numgen.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/py/ip/numgen.t b/tests/py/ip/numgen.t index 9ce0c714..29a6a105 100644 --- a/tests/py/ip/numgen.t +++ b/tests/py/ip/numgen.t @@ -2,5 +2,6 @@ *ip;test-ip4;pre ct mark set numgen inc mod 2;ok +ct mark set numgen inc mod 2 offset 100;ok dnat to numgen inc mod 2 map { 0 : 192.168.10.100, 1 : 192.168.20.200 };ok dnat to numgen inc mod 10 map { 0-5 : 192.168.10.100, 6-9 : 192.168.20.200};ok |