From: Jason Ish Date: Wed, 30 Sep 2020 17:18:46 +0000 (-0600) Subject: scripts/setup-app-layer: fix rust generation X-Git-Tag: suricata-6.0.0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13049ae09d4c792248977d0daf449a97e8643a4c;p=thirdparty%2Fsuricata.git scripts/setup-app-layer: fix rust generation Fix Rust app-layer generation. Main parser file was being named gopher.rs instead of the name of the protocol. --- diff --git a/scripts/setup-app-layer.py b/scripts/setup-app-layer.py index 0dbcae0103..0b375c1ac2 100755 --- a/scripts/setup-app-layer.py +++ b/scripts/setup-app-layer.py @@ -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)), )