OSDN Git Service

Update binder benchmark to use google-benchmark
[android-x86/system-extras.git] / tests / net_test / netlink.py
index 479d3a4..2b8f744 100644 (file)
@@ -79,11 +79,12 @@ class NetlinkSocket(object):
   def _GetConstantName(self, module, value, prefix):
     thismodule = sys.modules[module]
     for name in dir(thismodule):
+      if name.startswith("INET_DIAG_BC"):
+        break
       if (name.startswith(prefix) and
           not name.startswith(prefix + "F_") and
-          name.isupper() and
-          getattr(thismodule, name) == value):
-        return name
+          name.isupper() and getattr(thismodule, name) == value):
+          return name
     return value
 
   def _Decode(self, command, msg, nla_type, nla_data):