aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_proto_field.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-03-21 03:06:17 -0700
committerGuy Harris <gharris@sonic.net>2021-03-21 03:27:44 -0700
commitb61fd6d76a2ce97f2bae40d8a8eacebc91e617ea (patch)
treed229e30e3f969bb916d1dd50f1d98a60b33252d0 /epan/wslua/wslua_proto_field.c
parentce611792c37f5c80692bc927e07d3d4f36cd5b65 (diff)
dfilter, ftypes: get rid of FT_PCRE.
It's not a valid field type, it's only a hack to support regular expression matching in packet-matching expressions. Instead, in the packet-matching code, have a separate syntax tree type for Perl-compatible regular expressions, and a separate instruction to load one into a register, and have the "matching" operator for field types take a GRegex * as the second argument.
Diffstat (limited to 'epan/wslua/wslua_proto_field.c')
-rw-r--r--epan/wslua/wslua_proto_field.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/wslua/wslua_proto_field.c b/epan/wslua/wslua_proto_field.c
index e3f63273df..2d4b0d06cd 100644
--- a/epan/wslua/wslua_proto_field.c
+++ b/epan/wslua/wslua_proto_field.c
@@ -746,8 +746,6 @@ WSLUA_CONSTRUCTOR ProtoField_new(lua_State* L) {
case FT_STRINGZTRUNC:
WSLUA_ARG_ERROR(ProtoField_new,TYPE,"Unsupported ProtoField field type");
break;
- /* FT_PCRE isn't a valid field type. */
- case FT_PCRE:
default:
WSLUA_ARG_ERROR(ProtoField_new,TYPE,"Invalid ProtoField field type");
break;