trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1144377 - /trafficserver/traffic/trunk/lib/ts/IpMap.cc
Date Fri, 08 Jul 2011 16:22:34 GMT
Author: amc
Date: Fri Jul  8 16:22:34 2011
New Revision: 1144377

URL: http://svn.apache.org/viewvc?rev=1144377&view=rev
Log:
Compiler fix because apparently my system is globally unique.

Modified:
    trafficserver/traffic/trunk/lib/ts/IpMap.cc

Modified: trafficserver/traffic/trunk/lib/ts/IpMap.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/lib/ts/IpMap.cc?rev=1144377&r1=1144376&r2=1144377&view=diff
==============================================================================
--- trafficserver/traffic/trunk/lib/ts/IpMap.cc (original)
+++ trafficserver/traffic/trunk/lib/ts/IpMap.cc Fri Jul  8 16:22:34 2011
@@ -926,7 +926,7 @@ protected:
   static void inc(
     Metric& m ///< Incremented in place.
   ) {
-    uint8_t* addr = m.sin6_addr.__in6_u.__u6_addr8;
+    uint8_t* addr = m.sin6_addr.s6_addr;
     uint8_t* b = addr + INK_IP6_SIZE;
     do {
       ++*--b;
@@ -937,7 +937,7 @@ protected:
   static void dec(
     Metric& m ///< Decremented in place.
   ) {
-    uint8_t* addr = m.sin6_addr.__in6_u.__u6_addr8;
+    uint8_t* addr = m.sin6_addr.s6_addr;
     uint8_t* b = addr + INK_IP6_SIZE;
     do {
       --*--b;



Mime
View raw message