]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Sets of IP addresses should work, now. (From now on it is also
authorPavel Machek <pavel@ucw.cz>
Tue, 13 Apr 1999 11:40:04 +0000 (11:40 +0000)
committerPavel Machek <pavel@ucw.cz>
Tue, 13 Apr 1999 11:40:04 +0000 (11:40 +0000)
possible to write if 1.2.3.4 < 1.2.3.5, but I'm not sure if it is good
for anything.)

filter/filter.c

index a83067df332b75567c6b951522f176d32aea1dad..c6c5c5af0ca5716d81ac3833fb701d36c83788ab 100644 (file)
@@ -55,6 +55,8 @@ val_compare(struct f_val v1, struct f_val v2)
     if (v1.val.i == v2.val.i) return 0;
     if (v1.val.i < v2.val.i) return -1;
     return 1;
+  case T_IP:
+    return ipa_compare(v1.val.ip, v2.val.ip);
   default: return CMP_ERROR;
   }
 }