Bug 18351

Summary: ipfw add with no rule number returns the wrong rule number
Product: Base System Reporter: darcy <darcy>
Component: binAssignee: ru <ru>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
ipfw.patch none

Description darcy 2000-05-02 20:20:02 UTC
when you do a ipfw add deny ip from  here to there ipfw will echo back 00000 as the rule number
ipfw show 00000 of course returns no such rule
(rule will be given 100 by default then default +100 for each next rule)

Fix: 

I have a patch to the code to work around this problem
Comment 1 darcy 2000-05-02 20:40:52 UTC
Attached is my patch hopefully someone with a bit more hackers time can
review and clean up this code

\\DB
Comment 2 Johan Karlsson freebsd_committer freebsd_triage 2000-08-24 13:33:05 UTC
State Changed
From-To: open->feedback

Alot has happened with ipfw in current and 4-Stable, 
do you know if this problem still exists in 4-Stable? 



Comment 3 Johan Karlsson freebsd_committer freebsd_triage 2000-08-24 13:33:05 UTC
Responsible Changed
From-To: freebsd-bugs->luigi

Over to ipfw maintainer either as an MFC to releng_3 or 
with a patch for this problem.
Comment 4 ru freebsd_committer freebsd_triage 2000-10-11 15:40:11 UTC
Responsible Changed
From-To: luigi->ru

I have a working patch.
Comment 5 ru freebsd_committer freebsd_triage 2000-10-17 14:45:04 UTC
State Changed
From-To: feedback->closed

Fixed in 5.0-CURRENT and 4.1.1-STABLE.