nDPId: Added error event threshold to prevent event spamming which may be abused.

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig 2022-10-16 23:02:52 +02:00
parent 6292102f93
commit 49352698a0
No known key found for this signature in database
GPG key ID: 22C5333D922537D2
71 changed files with 1369 additions and 29332 deletions

View file

@ -7,6 +7,10 @@
"error_event_id",
"error_event_name",
"datalink",
"threshold_n",
"threshold_n_max",
"threshold_time",
"threshold_ts_usec",
"global_ts_usec"
],
@ -115,6 +119,25 @@
"maximum": 292
},
"threshold_n": {
"type": "number",
"minimum": 1
},
"threshold_n_max": {
"type": "number",
"minimum": 1,
"maximum": 65535
},
"threshold_time": {
"type": "number"
},
"threshold_ts_usec": {
"type": "number"
},
"layer_type": {
"type": "number",
"minimum": 0