]> git.ipfire.org Git - thirdparty/suricata.git/commit
app-layer: move ALPROTO_FAILED definition
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 11 Nov 2024 06:21:03 +0000 (07:21 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Mon, 13 Jan 2025 12:28:58 +0000 (13:28 +0100)
commite6be049c5dc2859a833fc21321bc7bfd15be2904
treebc1d51adca939c50c1b79b86a007a70fb8024f60
parent05853fb8d579636c0a7dc8dc34fdb264fead2b47
app-layer: move ALPROTO_FAILED definition

Because some alprotos will remain static and defined as a constant,
such as ALPROTO_UNKNOWN=0, or ALPROTO_FAILED.

The regular already used protocols keep for now their static
identifier such as ALPROTO_SNMP, but this could be made more
dynamic in a later commit.

ALPROTO_FAILED was used in comparison and these needed to change to use
either ALPROTO_MAX or use standard function AppProtoIsValid
13 files changed:
rust/src/core.rs
rust/src/ldap/ldap.rs
rust/src/modbus/modbus.rs
rust/src/ntp/ntp.rs
rust/src/smb/smb.rs
src/app-layer-detect-proto.c
src/app-layer-protos.c
src/app-layer-protos.h
src/app-layer-register.c
src/detect-engine-prefilter.c
src/detect-engine.c
src/detect-parse.c
src/util-profiling.c