]> git.ipfire.org Git - people/ms/suricata.git/commitdiff
scripts/setup-app-layer: fix rust generation
authorJason Ish <jason.ish@oisf.net>
Wed, 30 Sep 2020 17:18:46 +0000 (11:18 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 3 Oct 2020 17:52:53 +0000 (19:52 +0200)
Fix Rust app-layer generation. Main parser file was being named
gopher.rs instead of the name of the protocol.

scripts/setup-app-layer.py

index 0dbcae01038597f3961cbe9f5e33069b2d123a93..0b375c1ac290cde2b4f611786485df0c442c3b46 100755 (executable)
@@ -71,7 +71,7 @@ def copy_app_layer_templates(proto, rust):
             ("rust/src/applayertemplate/mod.rs",
              "rust/src/applayer%s/mod.rs" % (lower)),
             ("rust/src/applayertemplate/template.rs",
-             "rust/src/applayer%s/gopher.rs" % (lower)),
+             "rust/src/applayer%s/%s.rs" % (lower, lower)),
             ("rust/src/applayertemplate/parser.rs",
              "rust/src/applayer%s/parser.rs" % (lower)),
         )