Sun3 port packet filter problems.

"" <[email protected]>
Newsgroups gmane.os.netbsd.ports.sun3
Message-ID <[email protected]>
OK guys, I'm stuck here...

I'm trying to get ipf/ipnat, etc... to work, but so far no luck.

I built a kernel with options GATEWAY, PFIL_HOOKS, and pseudo-devices ipfilter, bpfilter.

I have verified that I am running the kernel that I built, and the build directory shows the object files from the ip_filter/nat/etc...  So that stuff appears to have been built.

The were no control device nodes in /dev, and MAKEDEV has no ipl entry.  So I looked at the i386 binary distro to get the MAJOR, MINORs for everything.  I created devices ipauth, ipl, ipnat, ipstate with MAJOR=44, and MINORs = 0 - 3.

Tried ipf util and ipnat util, "open not supported on device" "ioctl on bad file descriptor", and various other complaints.

OK, tried looking in the code to see if maybe Sun3 arch issues a different major.  I found a #define CDEV_MAJOR 79 in ip_fil.h, but it does not appear to be used.  I tried recreating the devices with MAJOR=79 just in case, but same problem.

I cannot find the MAJOR registration in the code.  What is the proper MAJOR number for Sun3, is it still 44 like i386?  If so, then why do I get the invalid node complaints from the utilities?

Obviously, I'm missing something here....Any help or suggestions appreciated.

Thanks,

-S-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.