Yikes.  I was way off.  

I have some code that deals with radix tables.  The elements I was trying 
to recall ... pfioc_table.pfrio_esize == Size of each element ... and 
pfioc_table.pfrio_size == total number of elements ... geez, sorry to add 
to the confusion, that was pretty bad.  Apparently that has nothing to do 
with what you're trying to do ... sorry!

The way I finally slugged through my own code was to tear apart the source 
of SRC/sys/net/pf_ioctl.c ... I found DIOCADDRULE on line 884 ... several 
EINVAL error conditions exist in that case clause.  Hope that helps, sorry 
for my previous incoherence.

      jw


> On Thu, 5 Aug 2004, Christopher Keeley wrote:
> 
> > Hello everybody.
> > 
> > I am currently writing a program in C that at certain points needs to
> > add a rule to the current firewall set.
> > 
> > Here is a copy of the code i have so far for the function that will add
> > the rule: 
> > 
> 

-- 

Jeff Wilson                     Senior Analyst/Programmer
Baylor University                  Network Services Group
Waco, TX                  Information Technology Services
                                           (254) 710 4615

Reply via email to