Subject: kern/3140: entry of ipfilter module named unwisely
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@lyssa.owl.de>
List: netbsd-bugs
Date: 01/25/1997 18:28:42
>Number:         3140
>Category:       kern
>Synopsis:       entry of ipfilter module named unwisely
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 25 09:35:00 1997
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler				http://colwyn.owl.de/~tron/
>Release:        970124
>Environment:
System: NetBSD lyssa 1.2B NetBSD 1.2B (LYSSA) #1: Sat Jan 25 16:18:23 MET 1997 tron@lyssa:/usr/src/sys/arch/i386/compile/LYSSA i386


>Description:
Today I built a kernel with ipfilter hooks and the ipfilter module.
When I tried to load the module I discovered that the entry is not named
like in all the other LKMs what IMHO causes unnecessary confusion.

>How-To-Repeat:
modload -e if_ipl_lkmentry -o /var/run/lkm.if_ipl /usr/lkm/if_ipl.o

>Fix:
*** src/sys/lkm/netinet/if_ipl/mln_ipl.c.orig   Sun Jan 12 13:19:35 1997
--- src/sys/lkm/netinet/if_ipl/mln_ipl.c        Sat Jan 25 18:12:14 1997
*************** static int ipl_load()
*** 236,242 ****
  }
  
  
! int xxxinit(lkmtp, cmd, ver)
  struct lkm_table *lkmtp;
  int cmd, ver;
  {
--- 236,242 ----
  }
  
  
! int if_ipl_lkmentry(lkmtp, cmd, ver)
  struct lkm_table *lkmtp;
  int cmd, ver;
  {

>Audit-Trail:
>Unformatted: