*BSD News Article 69284


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!iol!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.misc
Subject: Re: Writing to BPF pseudo-device
Date: 21 May 1996 17:12:41 +0100
Organization: Coverform Ltd.
Lines: 19
Message-ID: <4nsq1p$rk@anorak.coverform.lan>
References: <4nica0$30i@aztec.co.za>
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Graham Wheeler (gram@aztec.co.za) wrote:
: Hi folks

: I'm trying to send an Ethernet frame over an interface by writing
: it to a bpf device bound to an interface. The frame is going out,
: but 64 bytes are being inserted between the link header and the IP
: header. These 64 bytes correspond to the bytes from IPheader+2, so
: it is almost as though the IP packet is being appended to itself.

: Is there anyone out there who has experience with this who can help?

: Thanks in advance
: Gram

Shouldn't you be writing to the 'tun' device ?

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....