From: Matt Corallo Date: Sun, 16 Jun 2024 02:42:27 +0000 (+0000) Subject: Aavoid incomparable assertion when using mixed src/no-src rules X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=0d495a3ebc0b51bff7e756736a7ce8b12d116b68;p=flowspec-xdp Aavoid incomparable assertion when using mixed src/no-src rules --- diff --git a/genrules.py b/genrules.py index 69fa588..1e9c978 100755 --- a/genrules.py +++ b/genrules.py @@ -350,7 +350,7 @@ class RuleNode: if o == ORD_LESS: return True - return self.action < other.action + return [a for a in self.action if type(a) != IpRule] < [b for b in other.action if type(b) != IpRule] def maybe_join(self, neighbor): if self.ty == RuleAction.CONDITIONS and neighbor.ty == RuleAction.CONDITIONS: