mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Add an option to ignore packets sourced from particular subnets.
It's implemented with a new set[subnet] option named ignore_checksums_nets. If you populate this set with subnets, any packet with a src address within that set of subnets will not have it's checksum validated.
This commit is contained in:
parent
e4df60c51d
commit
552a24e07c
12 changed files with 63 additions and 9 deletions
|
@ -906,6 +906,10 @@ public:
|
|||
[[deprecated("Remove in v4.1. Use Find() or FindOrDefault().")]]
|
||||
Val* Lookup(Val* index, bool use_default_val = true);
|
||||
|
||||
// Returns true if this is a table[subnet]/set[subnet] and the
|
||||
// given address was found in the table. Otherwise returns false.
|
||||
bool Contains(const IPAddr& addr);
|
||||
|
||||
// For a table[subnet]/set[subnet], return all subnets that cover
|
||||
// the given subnet.
|
||||
// Causes an internal error if called for any other kind of table.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue