system/hardware/interfaces
修訂 | f60452177644f04e34f06e7600a88d934c1c1662 (tree) |
---|---|
時間 | 2018-04-28 09:50:40 |
作者 | Bernie Innocenti <codewiz@goog...> |
Commiter | android-build-merger |
Fix NetdHidlTest.TestAddRemoveInterfaces() am: 64848957ba
am: fc0701b4e0
Change-Id: I1f90f51156393b94853edf75b95fb932798d56dd
@@ -88,7 +88,8 @@ int countMatchingIpRules(const std::string& regexString) { | ||
88 | 88 | |
89 | 89 | int countRulesForFwmark(const uint32_t fwmark) { |
90 | 90 | // Skip top nibble, which differs between rules. |
91 | - std::string regex = StringPrintf("from all fwmark 0x[0-9a-f]+%x/.* lookup ", fwmark); | |
91 | + std::string regex = | |
92 | + StringPrintf("from all fwmark 0x(%x|[0-9a-f]+%04x)/.* lookup ", fwmark, fwmark); | |
92 | 93 | return countMatchingIpRules(regex); |
93 | 94 | } |
94 | 95 |