Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 1997 11:35:30 -0500 (EST)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Snob Art Genre <benedict@echonyc.com>
Cc:        =?iso-8859-1?Q?Dag-Erling_Coidan_Sm=F8rgrav?= <dag-erli@ifi.uio.no>, hackers@FreeBSD.ORG
Subject:   Re: Ethernet packet generation
Message-ID:  <Pine.BSF.3.96.971114113410.18833H-100000@picnic.mat.net>
In-Reply-To: <Pine.GSO.3.96.971114113235.15529A-100000@echonyc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 Nov 1997, Snob Art Genre wrote:

> I think the book you want is _Unix Network Programming_, by W. Richard
> Stevens.  I have a copy on order, when it arrives I'll see if it has BPF
> stuff.  But chances are it does.

Doesn't, but recommending that book will _never_ get you in trouble.  It
will show you enough network programming to where you can just read the
bpf man page and use that.

> 
> On 14 Nov 1997, Dag-Erling Coidan Smørgrav wrote:
> 
> > Curt Sampson <cjs@portal.ca> writes:
> > > On Tue, 11 Nov 1997, Michael Knoll wrote:
> > > > Is there a way to generate an ethernet packet, with an unsupported protocol
> > > > through a user level program?
> > > Yes. Use bpf.
> > 
> > On a related subject, is there documentation available on how to
> > program BPF under FreeBSD or other BSD unices? I think I've mostly
> > figured it out from reading tcpdump and trafshow source as well as the
> > Usenix'93 BPF paper, but I'd still like docs.
> > 
> > -- 
> >  * Finrod (INTJ) * Unix weenie * dag-erli@ifi.uio.no * cellular +47-92835919 *
> >   RFC1123: "Be liberal in what you accept, and conservative in what you send"
> > 
> 
> 
> 
>  Ben
> 
> "You have your mind on computers, it seems." 
> 
> 
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971114113410.18833H-100000>