]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix values 'LFT_EXT_ACL_CLIENT_EUI48' and 'LFT_EXT_ACL_CLIENT_EUI64' not handled...
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 30 Sep 2015 10:01:33 +0000 (03:01 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 30 Sep 2015 10:01:33 +0000 (03:01 -0700)
src/format/Format.cc

index 451d55f2ac685aab653115dc9bf00dc985f745b7..e607dd23e27691e0fdd5a2775afe44607a3802f2 100644 (file)
@@ -375,25 +375,27 @@ Format::Format::assemble(MemBuf &mb, const AccessLogEntry::Pointer &al, int logS
 #endif
             break;
 
-#if USE_SQUID_EUI
         case LFT_EXT_ACL_CLIENT_EUI48:
+#if USE_SQUID_EUI
             if (al->request && al->request->clientConnectionManager.valid() &&
                     al->request->clientConnectionManager->clientConnection != NULL &&
                     al->request->clientConnectionManager->clientConnection->remote.isIPv4()) {
                 al->request->clientConnectionManager->clientConnection->remoteEui48.encode(tmp, 1024);
                 out = tmp;
             }
+#endif
             break;
 
         case LFT_EXT_ACL_CLIENT_EUI64:
+#if USE_SQUID_EUI
             if (al->request && al->request->clientConnectionManager.valid() &&
                     al->request->clientConnectionManager->clientConnection != NULL &&
                     !al->request->clientConnectionManager->clientConnection->remote.isIPv4()) {
                 al->request->clientConnectionManager->clientConnection->remoteEui64.encode(tmp, 1024);
                 out = tmp;
             }
-            break;
 #endif
+            break;
 
         case LFT_SERVER_IP_ADDRESS:
             if (al->hier.tcpServer != NULL) {