<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:fw@strlen.de" title="Florian Westphal <fw@strlen.de>"> <span class="fn">Florian Westphal</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - nft commandline tool can't parse negative priority values."
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1254">bug 1254</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;">CC</td>
<td>
</td>
<td>fw@strlen.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - nft commandline tool can't parse negative priority values."
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1254#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - nft commandline tool can't parse negative priority values."
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1254">bug 1254</a>
from <span class="vcard"><a class="email" href="mailto:fw@strlen.de" title="Florian Westphal <fw@strlen.de>"> <span class="fn">Florian Westphal</span></a>
</span></b>
<pre>(In reply to elohh from <a href="show_bug.cgi?id=1254#c0">comment #0</a>)
<span class="quote">> nft add chain raw PREROUTING { type filter hook prerouting priority -300\; }
> nft add chain raw PREROUTING { type filter hook prerouting priority -300 \; }
> nft: invalid option -- '3'
>
> Tried different variants, tried to escape the - minus and set it into "&'.</span >
Use
nft -- add chain ...
or, better yet,
nft "add chain ... { }"
to prevent the shell from interpreting {, ; etc.
(In this case, -300 is passed as individual argument, and getopt
sees an option "-3" which it won't understand).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>