In some email I received from Hans Werner Strube, sie wrote:
> > From Darren Reed Thu, 25 Mar 2004 01:09:08 +1100 (EST)
>
> > Finally, how is the ipfrule module to be loaded? By explicit modload?
>
> Yes.
>
> In Solaris 7_x86, I copied a newly built ipfrule (from rules/ip_rules)
> to /usr/kernel/drv and called
> modload /usr/kernel/drv/ipfrule
> This always resulted in the message
> can't load module: Unknown error
Try this patch for size. End result should be something like this:
# modload SunOS5/sparc-5.6/ipfrule
# ipfstat -ioh
0 # Builtin: call /0 out call function at f76ea9cc scan *
8 # Builtin: pass out all
0 # Builtin: call /0 in call function at f76ea848 scan *
12 # Builtin: pass in all
# modinfo | grep ipf
80 f72f1000 334c6 127 1 ipf (IP Filter: v4.1.1)
104 f76ea000 f58 - 1 ipfrule (IP Filter rules)
Darren
Index: tools/ipfcomp.c
===================================================================
RCS file: /devel/CVS/IP-Filter/tools/ipfcomp.c,v
retrieving revision 1.24
diff -c -r1.24 ipfcomp.c
*** ipfcomp.c 2004/01/24 16:04:29 1.24
--- ipfcomp.c 2004/03/24 15:06:58
***************
*** 1289,1294 ****
--- 1289,1297 ----
fp->fr_flags = FR_%sQUE|FR_NOMATCH;\n\
fp->fr_data = (void *)ipf_rules_%s_%s[0];\n",
(in != 0) ? "IN" : "OUT", instr, group);
+ fprintf(fp, "\
+ fp->fr_dsize = sizeof(ipf_rules_%s_%s[0]);\n",
+ instr, group);
fprintf(fp, "\
fp->fr_v = 4;\n\