|
|
|
@ -186,7 +186,7 @@ static int DetectDNP3FuncParseFunctionCode(char *str, uint8_t *fc)
|
|
|
|
if (ByteExtractStringUint8(fc, 10, strlen(str), str) >= 0) {
|
|
|
|
if (ByteExtractStringUint8(fc, 10, strlen(str), str) >= 0) {
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
|
|
|
|
/* Lookup by name. */
|
|
|
|
/* Lookup by name. */
|
|
|
|
for (size_t i = 0;
|
|
|
|
for (size_t i = 0;
|
|
|
|
i < sizeof(DNP3FunctionNameMap) / sizeof(DNP3Mapping); i++) {
|
|
|
|
i < sizeof(DNP3FunctionNameMap) / sizeof(DNP3Mapping); i++) {
|
|
|
|
@ -195,7 +195,6 @@ static int DetectDNP3FuncParseFunctionCode(char *str, uint8_t *fc)
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|