system/hardware/interfaces
Revision | fc0701b4e09d69373dc708e3c3752ce97044d7f5 (tree) |
---|---|
Time | 2018-04-28 09:43:14 |
Author | Bernie Innocenti <codewiz@goog...> |
Commiter | android-build-merger |
Fix NetdHidlTest.TestAddRemoveInterfaces()
am: 64848957ba
Change-Id: I6915ed661784663ae10cb593e1081ea9c8c688f3
@@ -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 |