summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-04-13 11:40:04 +0000
committerPavel Machek <pavel@ucw.cz>1999-04-13 11:40:04 +0000
commit43fc099b98594fb3ac6a56a90fd00f42fc98f742 (patch)
tree1ac03700df437b8ee705d93f1bd99c94a5bc9a90
parent24eaae9e5d0b154ec47d9d4e13649fb066814ef1 (diff)
Sets of IP addresses should work, now. (From now on it is also
possible to write if 1.2.3.4 < 1.2.3.5, but I'm not sure if it is good for anything.)
-rw-r--r--filter/filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/filter.c b/filter/filter.c
index a83067df..c6c5c5af 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -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;
}
}