]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Filter: Added missing instruction comparators.
authorJan Maria Matejka <mq@ucw.cz>
Fri, 27 Apr 2018 12:38:41 +0000 (14:38 +0200)
committerJan Maria Matejka <mq@ucw.cz>
Fri, 27 Apr 2018 12:38:41 +0000 (14:38 +0200)
These instructions caused SIGABORTs on reconfiguration.

filter/filter.c

index bb3146e7927751a7fddef950bb1a5db77e0dc5e4..881ba420b4743d2397c33cefbf862706dabb2237 100644 (file)
@@ -1712,7 +1712,10 @@ i_same(struct f_inst *f1, struct f_inst *f2)
   case FI_EA_SET: ONEARG; A2_SAME; break;
 
   case FI_RETURN: ONEARG; break;
+  case FI_ROA_MAXLEN: ONEARG; break;
+  case FI_ROA_ASN: ONEARG; break;
   case FI_IP: ONEARG; break;
+  case FI_IS_V4: ONEARG; break;
   case FI_ROUTE_DISTINGUISHER: ONEARG; break;
   case FI_CALL: /* Call rewriting trickery to avoid exponential behaviour */
              ONEARG;
@@ -1735,6 +1738,8 @@ i_same(struct f_inst *f1, struct f_inst *f2)
               ((struct f_inst_roa_check *) f2)->rtc->name))
       return 0;
     break;
+  case FI_FORMAT: ONEARG; break;
+  case FI_ASSERT: ONEARG; break;
   default:
     bug( "Unknown instruction %d in same (%c)", f1->fi_code, f1->fi_code & 0xff);
   }