[comp.unix.wizards] Very raw sockets

yang@uiucdcsb.cs.uiuc.edu (02/20/88)

I was wondering if anyone out there knows if you can create a raw socket
that talks directly to the ethernet interface.  The project group I'm in
is trying to bypass the IP layer on a Sun-2, but we don't want to hack
the kernel (not to mention that our system administrator wouldn't be too
happy about that).  The manual says that with the proper privileges,
one can talk directly to the IP layer, but we haven't been able to get
any info on whether sockets allow you to go directly to the ethernet layer.

Thanks in advance for any help you folks can offer,
David Yang
yang@b.cs.uiuc.edu

chris@trantor.umd.edu (Chris Torek) (02/20/88)

In article <164600009@uiucdcsb> yang@uiucdcsb.cs.uiuc.edu writes:
>I was wondering if anyone out there knows if you can create a raw socket
>that talks directly to the ethernet interface.

Use AF_DLI, the Data Link Interface layer.  Of course, it is not
implemented.  (Oh well.)

>The project group I'm in is trying to bypass the IP layer on a Sun-2,
>but we don't want to hack the kernel....

If you are running SunOS 3.2 or later, look up `NIT' (Network
Interface Tap) in the manuals.  NIT exists in 3.0 but is largely
broken there.
-- 
In-Real-Life: Chris Torek, Univ of MD Computer Science, +1 301 454 7163
(hiding out on trantor.umd.edu until mimsy is reassembled in its new home)
Domain: chris@mimsy.umd.edu		Path: not easily reachable

bzs@bu-cs.BU.EDU (Barry Shein) (02/21/88)

Re: direct ethernet interface on Sun

See "man nit".

	-Barry Shein, Boston University