Only allow a single trace file (-r) or interface (-i) option on the command-line

This commit is contained in:
Tim Wojtulewicz 2019-11-26 09:37:12 -07:00
parent 2b2121be60
commit f16f0360ff
17 changed files with 93 additions and 141 deletions

View file

@ -207,7 +207,7 @@ void Manager::Register(IOSource* src, bool dont_count)
void Manager::Register(PktSrc* src)
{
pkt_srcs.push_back(src);
pkt_src = src;
Register(src, false);
}