summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-03-26 12:40:46 +0100
committerMaria Matejka <mq@ucw.cz>2022-05-04 15:37:41 +0200
commit80272d4b64a38ee6f04a1c4e8566cac3a2293176 (patch)
tree009e97d313dddf93b252e12d0a5e270eaa50e486 /filter
parent22f95d9889f07d868ffaec40ab43fd8dd9b0bb31 (diff)
Opaque types are named opaque also in filters
Diffstat (limited to 'filter')
-rw-r--r--filter/data.h4
-rw-r--r--filter/f-inst.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/filter/data.h b/filter/data.h
index 6d588204..924bbf3e 100644
--- a/filter/data.h
+++ b/filter/data.h
@@ -20,6 +20,9 @@ enum f_type {
/* Nothing. Simply nothing. */
T_VOID = 0,
+/* Something but inaccessible. */
+ T_OPAQUE = 0xee,
+
/* User visible types, which fit in int */
T_INT = 0x10,
T_BOOL = 0x11,
@@ -41,7 +44,6 @@ enum f_type {
T_ENUM_AF = 0x38,
/* new enums go here */
- T_ENUM_EMPTY = 0x3f, /* Special hack for atomic_aggr */
#define T_ENUM T_ENUM_LO ... T_ENUM_HI
diff --git a/filter/f-inst.c b/filter/f-inst.c
index 11ca1e28..75a53499 100644
--- a/filter/f-inst.c
+++ b/filter/f-inst.c
@@ -704,7 +704,7 @@
RESULT_(T_QUAD, i, e->u.data);
break;
case EAF_TYPE_OPAQUE:
- RESULT_(T_ENUM_EMPTY, i, 0);
+ RESULT_(T_OPAQUE, ad, e->u.ptr);
break;
case EAF_TYPE_IP_ADDRESS:
RESULT_(T_IP, ip, *((ip_addr *) e->u.ptr->data));