]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2310 in SNORT/snort3 from ~MIALTIZE/snort3:service_state_ut to...
authorMichael Altizer (mialtize) <mialtize@cisco.com>
Thu, 2 Jul 2020 14:35:53 +0000 (14:35 +0000)
committerMichael Altizer (mialtize) <mialtize@cisco.com>
Thu, 2 Jul 2020 14:35:53 +0000 (14:35 +0000)
Squashed commit of the following:

commit 476c846954b981c4d700f658f358e67f2e662c70
Author: Michael Altizer <mialtize@cisco.com>
Date:   Thu Jul 2 10:33:42 2020 -0400

    appid: Fix the format of the IPv6 strings in the Service State unit tests

src/network_inspectors/appid/test/service_state_test.cc

index 158b00320120caac88332bcf6f36a103098c1f8d..d0848d87e6f01783a68efa9656e27ace42b0b316 100644 (file)
@@ -187,7 +187,7 @@ TEST(service_state_tests, appid_service_state_key_comparison_test)
 {
     SfIp ip4, ip6;
     ip4.set("1.2.3.4");
-    ip6.set("1111.2222.3333.4444.5555.6666.7777.8888");
+    ip6.set("1111:2222:3333:4444:5555:6666:7777:8888");
     IpProtocol proto = IpProtocol::TCP;
     uint16_t port=3000;
 
@@ -209,7 +209,7 @@ TEST(service_state_tests, service_cache)
     uint16_t port = 3000;
     SfIp ip4, ip6;
     ip4.set("1.2.3.4");
-    ip6.set("1111.2222.3333.4444.5555.6666.7777.8888");
+    ip6.set("1111:2222:3333:4444:5555:6666:7777:8888");
 
     ServiceDiscoveryState* ss = nullptr;
     std::vector<ServiceDiscoveryState*> ssvec;