<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><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> changed
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Consider allowing for variable interpolation"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1458">bug 1458</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>ASSIGNED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Consider allowing for variable interpolation"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1458#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Consider allowing for variable interpolation"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1458">bug 1458</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 kfm from <a href="show_bug.cgi?id=1458#c0">comment #0</a>)
<span class="quote">> This is another feature request extracted from <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - Usability improvements, enabling creation of complex firewalls"
href="show_bug.cgi?id=1434">bug 1434</a> (the "usability"
> bug). Currently, variable interpolation isn't supported by the parser. The
> originally given example was as follows.
>
> define LOG_PREFIX = "[foo] "
> table inet filter {
> chain input {
> type filter hook input priority 0; policy drop;
> counter log prefix "$LOG_PREFIX DROP"
> }
> }</span >
commit e76bb379401816bbea773e73b524cd747324760a
Author: Pablo Neira Ayuso <<a href="mailto:pablo@netfilter.org">pablo@netfilter.org</a>>
Date: Tue Jul 7 17:42:37 2020 +0200
src: allow for variables in the log prefix string
For example:
define test = "state"
define foo = "match"
table x {
chain y {
ct state invalid log prefix "invalid $test $foo:"
}
}
<span class="quote">> If this is ever implemented, it might also make sense to allow for strings
> to be single-quoted so as to be able to suppress expansion (just like in
> sh). Otherwise, there would need to be some means of escaping the $ symbol.</span >
>
<span class="quote">> Another approach could be so support a concatenation operator instead. For
> instance:
>
> counter log prefix $LOG_PREFIX + " DROP"</span >
For the record: These last two items are not implemented.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>