<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:arturo@debian.org" title="Arturo Borrero Gonzalez <arturo@debian.org>"> <span class="fn">Arturo Borrero Gonzalez</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - nft does not allow comments within sets: Error: syntax error, unexpected newline"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1196">bug 1196</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>arturo@debian.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - nft does not allow comments within sets: Error: syntax error, unexpected newline"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1196#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - nft does not allow comments within sets: Error: syntax error, unexpected newline"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1196">bug 1196</a>
from <span class="vcard"><a class="email" href="mailto:arturo@debian.org" title="Arturo Borrero Gonzalez <arturo@debian.org>"> <span class="fn">Arturo Borrero Gonzalez</span></a>
</span></b>
<pre>Additional information reported in Debian bug tracker:
<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932877">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932877</a>
# cat tmp.nft
table inet x {
# comments are allowed here
chain y {
# comments are allowed here
icmpv6 type {
1, # comments are allowed here
2,
} accept
icmpv6 type {
1,
# comments AREN'T allowed here
2,
} accept
}
}
list ruleset
root@not-omega:~# nft --file tmp.nft
tmp.nft:12:43-43: Error: syntax error, unexpected newline, expecting comma
or '}'
# comments AREN'T allowed here
^
tmp.nft:13:14-14: Error: syntax error, unexpected comma
2,
^
tmp.nft:14:11-16: Error: syntax error, unexpected accept, expecting newline
or semicolon
} accept
^^^^^^
PS: it also doesn't allow blank lines, e.g.
add table x
add chain x y
add rule x y ip saddr {
1,
2,
} accept</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>