[Bug 193888] New: ipfw list will show previous enable rule when current one is disabled.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 24 12:13:49 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193888
Bug ID: 193888
Summary: ipfw list will show previous enable rule when current
one is disabled.
Product: Base System
Version: 10.3-BETA1
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: bycn82 at gmail.com
Created attachment 147635
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147635&action=edit
set the header of the buffer to 0
bp_flush() doesnt clean the buffer, it resets the pointers only.
the "ipfw list" will do below
loop rules and do
1.if current rule is disabled
continue
otherwise
write rule into the buffer,
2.printf(buffer)
3.bp_flush(buffer).
done
so it will print the previous enable rule when current one is disabled.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list