Changes to auto-document dpd_config (port analysis) script settings.

This commit is contained in:
Jon Siwek 2011-03-05 16:11:26 -06:00
parent 0d7ffe998f
commit 1bad6e3a95
3 changed files with 69 additions and 8 deletions

View file

@ -73,6 +73,15 @@ public:
*/
void SetPacketFilter(const std::string& s);
/**
* Schedules documentation of a given set of ports being associated
* with a particular analyzer as a result of the current script
* being loaded -- the way the "dpd_config" table is changed.
* @param analyzer An analyzer that changed the "dpd_config" table.
* @param ports The set of ports assigned to the analyzer in table.
*/
void AddPortAnalysis(const std::string& analyzer, const std::string& ports);
/**
* Sets the author of the script.
* The scanner should call this when it sees "## Author: ..."
@ -114,6 +123,7 @@ protected:
std::list<std::string> modules;
std::list<std::string> summary;
std::list<std::string> imports;
std::list<std::string> port_analysis;
std::list<const BroDocObj*> options; // identifiers with &redef attr
std::list<const BroDocObj*> state_vars; // identifiers without &redef?