The purpose of this ticket is to change the type of the “dir” field in the DetectEngineAppInspectionEngine structure.
Should this enum support assignments for both directions (it currently does not, but this was one of the requests in the original GitHub thread)?
Does the scope of this ticket extend only to DetectEngineAppInspectionEngine, or is the enum intended for use in other structures that store direction information?
Furthermore, converting from a 'uint8_t' type to an 'enum' changes the memory size of the field (which isn’t an issue here since there was padding in the structure). C23 supports enum underlying type changes. Are we in agreement that Suricata does not officially support this version of the language? I don’t want to create a macro just to use this feature if it goes against the codebase (from what I’ve read in the build system, the supported version is C11 and C99, but since I couldn’t find this information in the documentation, I’d rather ask).