You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2017/05/11 13:41:11 UTC

[trafficserver] 03/11: Wccp: CV-126003 - CapabilityElt initialization.

This is an automated email from the ASF dual-hosted git repository.

sorber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 720f126a8df4df6f85a297ddf2a70adc496d1be4
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Wed May 10 10:36:55 2017 -0500

    Wccp: CV-126003 - CapabilityElt initialization.
---
 lib/wccp/WccpLocal.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/wccp/WccpLocal.h b/lib/wccp/WccpLocal.h
index 0f0fcc8..79773e2 100644
--- a/lib/wccp/WccpLocal.h
+++ b/lib/wccp/WccpLocal.h
@@ -326,7 +326,8 @@ public:
   typedef CapabilityElt self; ///< Self reference type.
 
   /// Capability types.
-  enum Type {
+  enum Type : uint16_t {
+    NO_METHOD               = 0; ///< Method not set.
     PACKET_FORWARD_METHOD   = 1, ///< Packet forwarding methods.
     CACHE_ASSIGNMENT_METHOD = 2, ///< Cache assignment methods.
     PACKET_RETURN_METHOD    = 3  ///< Packet return methods.
@@ -350,9 +351,9 @@ public:
                    );
   //@}
 protected:
-  uint16_t m_cap_type;   ///< Capability type.
-  uint16_t m_cap_length; ///< Length of capability data.
-  uint32_t m_cap_data;   ///< Capability data.
+  enum Type m_cap_type  = NO_METHOD; ///< Capability type.
+  uint16_t m_cap_length = 0;         ///< Length of capability data.
+  uint32_t m_cap_data   = 0;         ///< Capability data.
 };
 
 /// Sect 5.7.7: Mask element

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.