<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - meta mark 0x80000000 display error"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1739#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - meta mark 0x80000000 display error"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1739">bug 1739</a>
from <span class="vcard"><a class="email" href="mailto:pablo@netfilter.org" title="Pablo Neira Ayuso <pablo@netfilter.org>"> <span class="fn">Pablo Neira Ayuso</span></a>
</span></b>
<pre>(In reply to bolvan from <a href="show_bug.cgi?id=1739#c3">comment #3</a>)
<span class="quote">> Why only 0x80000000 trigger this behavior ?
> What has prefix notation has to do with the mark ?</span >
not only 0x80000000, but also:
table ip x {
chain y {
type filter hook output priority 0;
meta mark and 0xc0000000 != 0
meta mark and 0xe0000000 != 0
meta mark and 0xf0000000 != 0
}
}
results in:
table ip x {
chain y {
type filter hook output priority filter; policy accept;
meta mark != 0x00000000/2
meta mark != 0x00000000/3
meta mark != 0x00000000/4
}
}
because:
0x80000000
0xc0000000
0xe0000000
0xf0000000
...
and so on.
Those are interpreted as a prefix. If this behaviour is confusing, it only
takes a oneliner to remove this behaviour...
diff --git a/src/datatype.c b/src/datatype.c
index 3205b214197f..b368ea9125fc 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -1015,7 +1015,6 @@ const struct datatype mark_type = {
.print = mark_type_print,
.json = mark_type_json,
.parse = mark_type_parse,
- .flags = DTYPE_F_PREFIX,
};
static const struct symbol_table icmp_code_tbl = {
... if it is judged to be counterintuitive.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>