Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: bfield@advtech.uswest.com (Brian Field)
Subject: osf / fddi / packetfilter questions
Date: 1995/08/10	[thread overview]
Message-ID: <40dgq1$95k@cherokee.advtech.uswest.com> (raw)


I've got an OSF 3000/800 box running 2.0 configured with a defta fddi card
(fta0).  I'm using OSF's packetfilter interface to write fddi frames directly
to the wire.  I've put together a little program that just pfopen()'s the
interface and writes 30 or so bytes just to test things out.  I've got a fddi
sniffer hooked up to capture the traffic I'm generating.

I've noticed that my frames are being put on the wire (via write(2)), but that
8 bytes immediately following the src address is getting overwritten with 0s.
Data before (frame control + dst + src address) and after these 8 bytes appear
on the wire ok (verified via the sniffer).

Any ideas on what is causing these bytes to get overwritten?  Write () isn't
returning any errors.  I get the same behaviour if I run this as root.  Are
there any options I should have set for this packetfilter?  (all I do is
pfopen in write-only mode and then write-- no ioctls are invoked or filters
attached)

Some other questions:

1) Should I be using bpf instead?  Why?  A long term need is to be able to
sink bursts of full-sized fddi frames and bpf appears to be limited to 32KB.

2) If I open a packetfilter for reading, can I fcntl () to set the descriptor
as non-blocking?  Or can a packetfilter be set to non-blocking only with the
timeout mechanism (via ioctl()).


Thanks
Brian







                 reply	other threads:[~1995-08-10  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox