void TestReportAddProtocolAnalyzerRuleList()
{
char rules[40000], ruleline[1000];
long offset, i, lineStartPos, lineEndPos;
TestReportAddMiscInfoBlock("Protocol Analyzer rule list:");
if (C2xProtocolAnalyzerGetRuleList(elcount(rules), rules) == 0)
{
// Add Protocol Analyzer rule list to the test report line by line
while (lineEndPos != -1)
{
lineEndPos = strstr_off(rules, offset, "\n");
if (lineEndPos != -1)
{
substr_cpy(ruleline, rules, lineStartPos, lineEndPos-lineStartPos, elcount(ruleline));
offset = lineStartPos = lineEndPos + 1;
TestReportAddExtendedInfo("text", ruleline);
// write(ruleline);
}
}
}
}