In some email I received from Ayamura KIKUCHI, sie wrote:
> > Anyway, I decided to give 'ipf40a23' a shot, after seeing some
> > other list postings about it.  The first try yielded errors in the
> > compiliation of 'mli_ipl.c':
> > 
> >     cc-1241 cc: ERROR File = ../../mli_ipl.c, Line = 513
> >       A declaration cannot appear after an executable statement in a block.
> >     
> >             extern int ipfilterflag;

That's easy enough fixed...

Darren

Index: mli_ipl.c
===================================================================
RCS file: /devel/CVS/IP-Filter/mli_ipl.c,v
retrieving revision 2.11
diff -c -r2.11 mli_ipl.c
*** mli_ipl.c   2002/02/21 09:23:26     2.11
--- mli_ipl.c   2002/08/17 06:28:04
***************
*** 495,502 ****
  void
  ipl_ipfilter_detach(void)
  {
-       nifdetach();
  #ifdef IPFILTER_LKM
        MUTEX_ENTER(&ipfi_mutex); /* sets interrupt priority level to splhi */
  
        if (ipff_addr) {
--- 495,502 ----
  void
  ipl_ipfilter_detach(void)
  {
  #ifdef IPFILTER_LKM
+       nifdetach();
        MUTEX_ENTER(&ipfi_mutex); /* sets interrupt priority level to splhi */
  
        if (ipff_addr) {
***************
*** 511,516 ****
--- 511,518 ----
        MUTEX_EXIT(&ipfi_mutex);
  #else
        extern int ipfilterflag;
+ 
+       nifdetach();
  
        ipfilterflag = 0;
  #endif

Reply via email to