mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Since all of the commands were following the same procedure, namely, split the input extract the arguments, throw the error if required argument is missing else send the command over to suricata, put all of this in one compact function alongwith a dictionary for specifications for different commands, the name of the argument, the type and if it is required or not. Following fixups come with this commit: - Code becomes really cozy - Split errors on a few commands are well handled - No redundant code - More readability References redmine ticket #2793 |
7 years ago | |
|---|---|---|
| .. | ||
| bin | 8 years ago | |
| suricata | 7 years ago | |
| suricatasc | 8 years ago | |
| .gitignore | 8 years ago | |
| Makefile.am | 8 years ago | |
| setup.py | 8 years ago | |