<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - The -s option does not always exclude stateful information for sets"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1716#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - The -s option does not always exclude stateful information for sets"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1716">bug 1716</a>
from <span class="vcard"><a class="email" href="mailto:phil@nwl.cc" title="Phil Sutter <phil@nwl.cc>"> <span class="fn">Phil Sutter</span></a>
</span></b>
<pre>(In reply to Pablo Neira Ayuso from <a href="show_bug.cgi?id=1716#c4">comment #4</a>)
<span class="quote">> Added Phil to Cc.
>
> (In reply to Pablo Neira Ayuso from <a href="show_bug.cgi?id=1716#c1">comment #1</a>)
> > Not related to this report but it should be possible to strip off 'timeout'
> > when it is the same as the default set timeout, to avoid repetitive printing
> > of the same timeout for every element, ie. only expires would be shown. In
> > such case, if -s/--stateful is specified, then expires would not be not
> > shown.
> >
> > For the record, 'expires' is stripped off from -s/--stateful since:
> >
> > commit 37988cf255e51efba0d81dbc43eb4f0a41e99813
> > Author: Varsha Rao <<a href="mailto:rvarsha016@gmail.com">rvarsha016@gmail.com</a>>
> > Date: Tue Jun 6 11:55:40 2017 +0530
> >
> > src: Remove expire information from list stateless ruleset.
>
> Hm, -s/--stateful skips 'expires' in the listing.</span >
The long-option form of '-s' is '--stateless'. I guess you are aware, but the
typo might confuse readers.
AIUI, a set element's expires value is (part of) it's state, while its timeout
value is not. The latter is similar to the set's timeout value, just a
"configuration detail". Therefore, --stateless option should strip expires
value but keep timeout value.
<span class="quote">> I had a recent discussion with Phil on what 'nft reset' should be resetting.
> Now 'nft reset' only resets stateful objects that are declared in the
> ruleset, not timeouts.
>
> Probably this needs to be changed to get things aligned and provide an
> option not to print the 'expires' part of the timeout to keep things
> consistent.</span >
It is your decision to make, I deliberately included the expires value into set
element reset.
Cheers, Phil</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>