MEDIUM: pattern: add new sample types to replace pattern types
The new sample types are necessary for the acl-pattern convergence.
These types are boolean and signed int. Some types were renamed for
less ambiguity (ip->ipv4, integer->uint).
diff --git a/src/frontend.c b/src/frontend.c
index 685b172..00a461e 100644
--- a/src/frontend.c
+++ b/src/frontend.c
@@ -503,7 +503,7 @@
struct acl_expr *expr, struct acl_test *test) {
test->flags = ACL_TEST_F_READ_ONLY;
- temp_pattern.data.integer = l4->fe->uuid;
+ temp_pattern.data.uint = l4->fe->uuid;
return 1;
}
@@ -516,7 +516,7 @@
struct acl_expr *expr, struct acl_test *test)
{
test->flags = ACL_TEST_F_VOL_TEST;
- temp_pattern.data.integer = read_freq_ctr(&expr->args->data.prx->fe_sess_per_sec);
+ temp_pattern.data.uint = read_freq_ctr(&expr->args->data.prx->fe_sess_per_sec);
return 1;
}
@@ -529,7 +529,7 @@
struct acl_expr *expr, struct acl_test *test)
{
test->flags = ACL_TEST_F_VOL_TEST;
- temp_pattern.data.integer = expr->args->data.prx->feconn;
+ temp_pattern.data.uint = expr->args->data.prx->feconn;
return 1;
}