Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* osf / fddi / packetfilter questions
@ 1995-08-10  4:00 Brian Field
  0 siblings, 0 replies; only message in thread
From: Brian Field @ 1995-08-10  4:00 UTC (permalink / 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







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-08-10  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-10  4:00 osf / fddi / packetfilter questions Brian Field

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