Hello,

tried the new NetBSD-current snapshot (1.5ZC) for sparc64 on an Ultra-1.
Having a problem with ipmon not logging any blocked packets, although
it (sort of) logs the state entries, like this:

01/01/1970 02:00:00.210052 STATE:CLOSE 192.168.20.10,65531 ->
132.227.74.11,22 PR tcp Pkts 22 Bytes 2752
01/01/1970 02:00:00.210055 STATE:CLOSE 192.168.20.10,65529 ->
132.227.74.11,22 PR 
tcp Pkts 24 Bytes 3100

When cat'ing from /dev/ipl, you see a steady stream of bytes if you
ping the box, so it seems to be a problem with ipmon.

ktrace for /usr/sbin/ipmon -f /dev/ipl shows the following:

First ipmon initializes (notice the "Bad file descriptor" in the
middle)..
The linefeeds were in kdump's output also.

<snip>
 280 ipmon    CALL  open(0x1047a8,0x601,0x1a4)
   280 ipmon    NAMI  "/var/run/ipmon.pid"
   280 ipmon    RET   open 5
   280 ipmon    CALL  fcntl(0x5,0x3,0)
   280 ipmon    RET   fcntl 1
   280 ipmon    CALL  getpid
   280 ipmon    RET   getpid 280/0x118
   280 ipmon    CALL  __fstat13(0x5,0xffffffffffffaff0)
   280 ipmon    RET   __fstat13 0
   280 ipmon    CALL  write(0x5,0x20e000,0x4)
   280 ipmon    GIO   fd 5 wrote 4 bytes
       "280
       "
   280 ipmon    RET   write 4
   280 ipmon    CALL  close(0x5)
   280 ipmon    RET   close 0
   280 ipmon    CALL  close(0x5)
-->   280 ipmon    RET   close -1 errno 9 Bad file descriptor
   280 ipmon    CALL 
__sigaction14(0x1,0xffffffffffffb720,0xffffffffffffb700)
   280 ipmon    RET   __sigaction14 0
   280 ipmon    CALL  ioctl(0x4,FIONREAD,0xffffffffffffb80c)
   280 ipmon    RET   ioctl 0
   280 ipmon    CALL  nanosleep(0xffffffffffffb730,0xffffffffffffb720)

..but then something goes wrong, and it drops to nanosleep.

System:

sikw4:(root)/tmp# uname -a
NetBSD sikw4 1.5ZC NetBSD 1.5ZC (GENERIC) #0: Sun May 12 04:12:26 PDT
2002     [EMAIL PROTECTED]:/u1/obj/sys/arch/sparc64/compile/GENERIC
sparc64
sikw4:(root)/tmp# 

ipf:

sikw4:(root)/tmp# ipf -V
ipf: IP Filter: v3.4.27 (384)
Kernel: IP Filter: v3.4.27              
Running: yes
Log Flags: 0 = none set
Default: pass all, Logging: available
Active list: 0
sikw4:(root)/tmp# 

Any help appreciated, will provide more details/clarify if needed.

Regards,

Tomi

Reply via email to