<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Setting bit mark according to result of lookup"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1125">1125</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Setting bit mark according to result of lookup
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>Gentoo
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>uzytkownik2@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>I tried to set a mark according to interface it come through. My first attempt
was:
table bridge filter {
map iface_to_mark {
type iface_index: mark
elements = {
iface0: 0x1,
iface1: 0x2,
...
}
}
chain input {
type filter hook input priority 0
mark set mark or iif map @iface_to_mark
}
}
However as RHS of | is not constant it is not allowed. I WAR by vmap jump
depending on interface and inlining constants but it is much less clearer (and
probably much less performant) then simple lookup and or.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>