From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10fc40,26aff53e845e6592,start X-Google-Attributes: gid10fc40,public X-Google-Thread: f678f,26aff53e845e6592,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,26aff53e845e6592,start X-Google-Attributes: gidfee84,public From: bfield@advtech.uswest.com (Brian Field) Subject: osf / fddi / packetfilter questions Date: 1995/08/10 Message-ID: <40dgq1$95k@cherokee.advtech.uswest.com>#1/1 X-Deja-AN: 107907782 organization: U S WEST Advanced Technologies followup-to: comp.unix.osf.osf1 newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc,comp.dcom.lans.fddi 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