Revision 2f702671 filter/filter.c

View differences:

filter/filter.c
6 6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7 7
 *
8 8
 * 	Notice that pair is stored as integer: first << 16 | second
9
 *
10
 *	FIXME: Check if prefixes are really prefixes.
9 11
 */
10 12

  
11 13
#include <stdio.h>
......
111 113
  if (res != CMP_ERROR)
112 114
    return res;
113 115

  
114
  if (((v1.type == T_INT) || (v1.type == T_IP)) && (v2.type == T_SET)) {
116
  if (((v1.type == T_INT) || ((v1.type == T_IP) || (v1.type == T_PREFIX)) && (v2.type == T_SET))) {
115 117
    struct f_tree *n;
116 118
    n = find_tree(v2.val.t, v1);
117 119
    if (!n)

Also available in: Unified diff