*BSD News Article 22370


Return to BSD News archive

Xref: sserve comp.unix.programmer:12350 comp.unix.bsd:12749
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!decwrl!vixie!efficacy!vixie
From: vixie@gw.home.vix.com (Paul A Vixie)
Newsgroups: comp.unix.programmer,comp.unix.bsd
Subject: Re: Looking for raw sockets code
Date: 13 Oct 93 18:02:23
Organization: Vixie Enterprises
Lines: 12
Distribution: world
Message-ID: <VIXIE.93Oct13180223@gw.home.vix.com>
References: <29gp6t$ia3@thor.tjhsst.edu>
NNTP-Posting-Host: gw.home.vix.com
In-reply-to: cmetz@thor.tjhsst.edu's message of 13 Oct 1993 07:35:57 -0400

"Raw" sockets are useful for sending out packets which will have your own
protocol headers on them, but to receive such packets you need something
like a "NIT" (Network Interface Tap, on SunOS) or "packet filter" (versions
of which are present in Ultrix and any BNR2-derived system, such as BSD/386).

A good example of how to do all this is the CAP (Columbia Appletalk Protocol)
package (look for "cap60.tar.Z" on ftp.uu.net or gatekeeper.dec.com).
--
Paul Vixie
Redwood City, CA
<paul@vix.com>
decwrl!vixie!paul