[comp.sys.sun] need NIT help for our netwatchtool on SunOS 4.0

dunigan@msr.epm.ornl.gov (Tom Dunigan 576-2522) (01/19/89)

We have converted the NIT stuff for our netwatchtool from 3.5 to 4.0, but
the promiscuous packets returned are mostly "truncated" (just the NIT
header stuff and about 16 bytes of the Ether packet).  snaplen is 92,
running in nbuf mode, i don't have Sun sources (presumably a peek at
rpc.etherd would answer my questions).

any suggestions or incantations?

thanks
tom
  dunigan@msr.epm.ornl.gov

cyrus@sonne.unm.edu (Tait Cyrus) (02/01/89)

dunigan@msr.epm.ornl.gov (Tom Dunigan 576-2522) writes:
>We have converted the NIT stuff for our netwatchtool from 3.5 to 4.0, but
>the promiscuous packets returned are mostly "truncated" (just the NIT
>header stuff and about 16 bytes of the Ether packet)....

Yes.  I had this same problem and have since had it fixed by Sun.  I was
working with a VERY VERY helpfully person from Sun Software Technical
Support (Kevin Fox).  There were/are several problems with NIT under 4.0.

	1) Packet sizes were not returned in a manner like that under
           3.X ("truncated").
	2) 'read's only returned one packet
	3) lots of dropped packets

Fixes supplied me by Sun are:
	nit_if.o
	if.o
	nit_buf.o

as well as a recommendation on changing param.c increasing the NBLK's and
the NSTREAM.  

The three .o's and my "hacked" param.c are available via anonymous ftp
from pprg.unm.edu (192.31.154.1 or 129.24.13.10) and have path names:

	/pub/sun/sun_4.0_patches/if.o.Z
	/pub/sun/sun_4.0_patches/nit_buf.o.Z
	/pub/sun/sun_4.0_patches/nit_if.o.Z
	/pub/sun/sun_4.0_patches/param.c.Z

My anonymous ftp requires you to enter your e-mail address as a password.

Hope this helps.