Skip to content

Commit

Permalink
Skip EPF_TABLE_ONLY fields with --list -N
Browse files Browse the repository at this point in the history
When listing fields with -N (names only), also skip fields with the
EPF_TABLE_ONLY flag. (Skipping fields without -N is handled in libs,
in the as_string() method).

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
  • Loading branch information
mstemm authored and leogr committed Jan 17, 2022
1 parent 0c290d9 commit 85e25cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions userspace/engine/falco_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ void falco_engine::list_fields(std::string &source, bool verbose, bool names_onl
{
for(auto &field : fld_class.fields)
{
// Skip fields with the EPF_TABLE_ONLY flag.
if(field.tags.find("EPF_TABLE_ONLY") != field.tags.end())
{
continue;
}

printf("%s\n", field.name.c_str());
}
}
Expand Down

0 comments on commit 85e25cb

Please sign in to comment.