mirror of
https://github.com/utoni/nDPId.git
synced 2026-05-05 10:41:35 +00:00
Renamed basic event to error event for the sake of the logic.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
parent
ed1647b944
commit
daaaa61519
40 changed files with 11771 additions and 11771 deletions
|
|
@ -1,163 +0,0 @@
|
|||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"alias",
|
||||
"source",
|
||||
"packet_id",
|
||||
"basic_event_id",
|
||||
"basic_event_name",
|
||||
"datalink",
|
||||
"global_ts_msec"
|
||||
],
|
||||
|
||||
"if": {
|
||||
"properties": { "basic_event_name": { "enum": [ "Unknown datalink layer packet", "Unknown packet type" ] } }
|
||||
},
|
||||
"then": {
|
||||
"anyOf": [
|
||||
{ "required": [ "layer_type" ] },
|
||||
{ "not": { "required": [ "thread_id" ] } }
|
||||
]
|
||||
},
|
||||
|
||||
"if": {
|
||||
"properties": { "basic_event_name": { "enum": [ "Unknown L3 protocol" ] } }
|
||||
},
|
||||
"then": {
|
||||
"anyOf": [
|
||||
{ "required": [ "protocol" ] },
|
||||
{ "not": { "required": [ "thread_id" ] } }
|
||||
]
|
||||
},
|
||||
|
||||
"if": {
|
||||
"properties": { "basic_event_name": { "enum": [ "Packet too short", "IP4 packet too short",
|
||||
"IP6 packet too short", "TCP packet smaller than expected",
|
||||
"UDP packet smaller than expected",
|
||||
"Captured packet size is smaller than expected packet size" ] } }
|
||||
},
|
||||
"then": {
|
||||
"anyOf": [
|
||||
{ "required": [ "size", "expected" ] },
|
||||
{ "not": { "required": [ "thread_id" ] } }
|
||||
]
|
||||
},
|
||||
|
||||
"if": {
|
||||
"properties": { "basic_event_name": { "enum": [ "Packet header invalid" ] } }
|
||||
},
|
||||
"then": {
|
||||
"anyOf": [
|
||||
{ "required": [ "raeson" ] },
|
||||
{ "not": { "required": [ "thread_id" ] } }
|
||||
]
|
||||
},
|
||||
|
||||
"if": {
|
||||
"properties": { "basic_event_name": { "enum": [ "Flow memory allocation failed" ] } }
|
||||
},
|
||||
"then": {
|
||||
"required": [ "thread_id", "size" ]
|
||||
},
|
||||
|
||||
"if": {
|
||||
"properties": { "basic_event_name": { "enum": [ "Max flows to track reached" ] } }
|
||||
},
|
||||
"then": {
|
||||
"required": [ "thread_id", "current_active", "current_idle", "max_active", "max_idle" ]
|
||||
},
|
||||
|
||||
"properties": {
|
||||
"alias": {
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
},
|
||||
"thread_id": {
|
||||
"type": "number"
|
||||
},
|
||||
"packet_id": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"basic_event_id": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 16
|
||||
},
|
||||
"basic_event_name": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Unknown datalink layer packet",
|
||||
"Unknown L3 protocol",
|
||||
"Unsupported datalink layer",
|
||||
"Packet too short",
|
||||
"Unknown packet type",
|
||||
"Packet header invalid",
|
||||
"IP4 packet too short",
|
||||
"Packet smaller than IP4 header",
|
||||
"nDPI IPv4/L4 payload detection failed",
|
||||
"IP6 packet too short",
|
||||
"Packet smaller than IP6 header",
|
||||
"nDPI IPv6/L4 payload detection failed",
|
||||
"TCP packet smaller than expected",
|
||||
"UDP packet smaller than expected",
|
||||
"Captured packet size is smaller than expected packet size",
|
||||
"Max flows to track reached",
|
||||
"Flow memory allocation failed"
|
||||
]
|
||||
},
|
||||
|
||||
"datalink": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 292
|
||||
},
|
||||
|
||||
"layer_type": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
|
||||
"l4_data_len": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
|
||||
"reason": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
"protocol": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 65535
|
||||
},
|
||||
|
||||
"size": {
|
||||
"type": "number"
|
||||
},
|
||||
"expected": {
|
||||
"type": "number"
|
||||
},
|
||||
|
||||
"current_active": {
|
||||
"type": "number"
|
||||
},
|
||||
"current_idle": {
|
||||
"type": "number"
|
||||
},
|
||||
"max_active": {
|
||||
"type": "number"
|
||||
},
|
||||
"max_idle": {
|
||||
"type": "number"
|
||||
},
|
||||
"global_ts_msec": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue