Rule Engine: Add JtR compatible support for hex notations in rule engine

This commit is contained in:
jsteube
2018-06-14 15:08:00 +02:00
parent a8060f4946
commit b88c956d97
3 changed files with 52 additions and 16 deletions
+2
View File
@@ -26,6 +26,8 @@ int conv_itoc (const u8 c);
int generate_random_rule (char rule_buf[RP_RULE_SIZE], const u32 rp_gen_func_min, const u32 rp_gen_func_max);
bool is_hex_notation (char *rule_buf, u32 rule_len, u32 rule_pos);
int cpu_rule_to_kernel_rule (char *rule_buf, u32 rule_len, kernel_rule_t *rule);
int kernel_rule_to_cpu_rule (char *rule_buf, kernel_rule_t *rule);