]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fix s2l binding of gtp
authorRuss Combs <rucombs@cisco.com>
Wed, 21 Oct 2015 21:06:09 +0000 (17:06 -0400)
committerRuss Combs <rucombs@cisco.com>
Wed, 21 Oct 2015 21:06:09 +0000 (17:06 -0400)
tools/snort2lua/preprocessor_states/pps_gtp.cc

index 84c73abcbc3e87980c0b3966a73f129cb6b5d6c5..be6230195d6a5db6ebfab3e932d905f0eb5d86ce 100644 (file)
@@ -49,7 +49,7 @@ Gtp::~Gtp()
         return;
 
     Binder bind(table_api);
-    bind.set_when_proto("tcp");
+    bind.set_when_proto("udp");
     bind.add_when_port("2123");
     bind.add_when_port("3386");
     bind.set_use_type("gtp_inspect");
@@ -65,7 +65,7 @@ bool Gtp::convert(std::istringstream& data_stream)
     bool ports_set = false;
     Binder bind(table_api);
 
-    bind.set_when_proto("tcp");
+    bind.set_when_proto("udp");
     bind.set_use_type("gtp_inspect");
 
     table_api.open_table("gtp_inspect");