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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"