Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 12:13:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 193888] New: ipfw list will show previous enable rule when current one is disabled.
Message-ID:  <bug-193888-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: bycn82@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193888-8>