]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve-schema: add bittorrent-dht
authorJason Ish <jason.ish@oisf.net>
Fri, 12 Aug 2022 16:03:58 +0000 (10:03 -0600)
committerVictor Julien <vjulien@oisf.net>
Fri, 28 Oct 2022 09:48:13 +0000 (11:48 +0200)
etc/schema.json

index 2161f8b82fd2ce3e5bbb0f609df9a4a922b47a3c..1c03b7131cabc85e16b79c79fc840065235e5cd2 100644 (file)
             },
             "additionalProperties": false
         },
+        "bittorrent-dht": {
+            "type": "object",
+            "optional": true,
+            "properties": {
+                "transaction_id": {
+                    "type": "string"
+                },
+                "client_version": {
+                    "type": "string"
+                },
+                "request_type": {
+                    "type": "string"
+                },
+                "request": {
+                    "type": "object",
+                    "additionalProperties": false,
+                    "optional": true,
+                    "properties": {
+                        "id": {
+                            "type": "string"
+                        },
+                        "target": {
+                            "type": "string",
+                            "optional": true
+                        },
+                        "implied_port": {
+                            "type": "integer"
+                        },
+                        "info_hash": {
+                            "type": "string",
+                            "optional": true
+                        },
+                        "port": {
+                            "type": "integer"
+                        },
+                        "token": {
+                            "type": "string",
+                            "optional": true
+                        }
+                    }
+                },
+                "response": {
+                    "type": "object",
+                    "additionalProperties": false,
+                    "optional": true,
+                    "properties": {
+                        "id": {
+                            "type": "string",
+                            "optional": false
+                        },
+                        "nodes": {
+                            "type": "string",
+                            "optional": true
+                        },
+                        "token": {
+                            "type": "string",
+                            "optional": true
+                        },
+                        "values": {
+                            "type": "array",
+                            "optional": true,
+                            "items": {
+                                "type": "string"
+                            }
+                        }
+                    }
+                },
+                "error": {
+                    "type": "object",
+                    "optional": true,
+                    "additionalProperties": false,
+                    "properties": {
+                        "num": {
+                            "type": "integer"
+                        },
+                        "msg": {
+                            "type": "string"
+                        }
+                    }
+                }
+            },
+            "additionalProperties": false
+        },
         "dcerpc": {
             "type": "object",
             "optional": true,
                         "error": {
                             "type": "object",
                             "properties": {
+                                "bittorrent-dht": { 
+                                    "$ref": "#/$defs/stats_applayer_error"
+                                },
                                 "dcerpc_tcp": {
                                     "$ref": "#/$defs/stats_applayer_error"
                                 },
                         "flow": {
                             "type": "object",
                             "properties": {
+                                "bittorrent-dht": {
+                                    "type": "integer"
+                                },
                                 "dcerpc_tcp": {
                                     "type": "integer"
                                 },
                         "tx": {
                             "type": "object",
                             "properties": {
+                                "bittorrent-dht": {
+                                    "type": "integer"
+                                },
                                 "dcerpc_tcp": {
                                     "type": "integer"
                                 },