]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
eve/schema: bittorrent-dht updates
authorJason Ish <jason.ish@oisf.net>
Thu, 8 Sep 2022 18:08:26 +0000 (12:08 -0600)
committerVictor Julien <vjulien@oisf.net>
Fri, 28 Oct 2022 09:48:13 +0000 (11:48 +0200)
Some values that were previously strings are now parsed down into
objects.

etc/schema.json

index e4b097bd77e2bf4ea4ee67de05d09e9fb19bc880..cbfae61eb569e02088ea5271bf5997502011f995 100644 (file)
                             "optional": false
                         },
                         "nodes": {
-                            "type": "string",
-                            "optional": true
+                            "type": "array",
+                            "optional": true,
+                            "items": {
+                                "type": "object",
+                                "items": {
+                                    "type": "object",
+                                    "additionalProperties": false,
+                                    "properties": {
+                                        "id": {
+                                            "type": "string",
+                                            "optional": false
+                                        },
+                                        "ip": {
+                                            "type": "string",
+                                            "optional": false
+                                        },
+                                        "port": {
+                                            "type": "number",
+                                            "optional": false
+                                        }
+                                    }
+                                }
+                            }
+                        },
+                        "nodes6": {
+                            "type": "array",
+                            "optional": true,
+                            "items": {
+                                "type": "object",
+                                "additionalProperties": false,
+                                "properties": {
+                                    "id": {
+                                        "type": "string",
+                                        "optional": false
+                                    },
+                                    "ip": {
+                                        "type": "string",
+                                        "optional": false
+                                    },
+                                    "port": {
+                                        "type": "number",
+                                        "optional": false
+                                    }
+                                }
+                            }
                         },
                         "token": {
                             "type": "string",
                             "type": "array",
                             "optional": true,
                             "items": {
-                                "type": "string"
+                                "type": "object"
                             }
                         }
                     }