🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1288

Which IP implementations can send traffic to a process?

#1288
From: John Chambers
Date: Mon, 26 Nov 1990 04:59
28 lines
1765 bytes
Just recently, it came to my attention that at least one commercial 
version of Unix has a driver that implements a very useful feature:
It creates a pseudo-interface that has an IP address, and is a file
that can be opened by a process.  Thus one can write a program that
tells the kernel "If you get any traffic for a.b.c.d, give it to me
and I'll handle it."   I can think of lots & lots of uses for this.

This driver is on Ultrix; it is unsupported, but it is available.

Do any other extant Unix releases implement this capability?  If
so, can you say what they are, what sort of special hooks (if any)
are needed, and whether programming examples are available?

It's not obvious that this requires a special driver, but I suspect
that in most cases it will.  You'd think you could do it via a raw
socket, for instance, but just try...  (If anyone knows how, I'd 
like to see the code.)  I wonder if the Ultrix driver would work
on many other Unices.

It also seems that a streams-based system should be able to do this,
but I haven't yet succeeded in decrypting the manuals, so I can't
say for sure.  Anyone know for sure?

-- 
Zippy-Says: Imagine ... a world without clothing folds, chiaroscuro, or marital difficulties ...
Home: 1-617-484-6393 Work: 1-508-952-3274
Uucp: ...!{harvard.edu,ima.com,eddie.mit.edu,ora.com}!minya!jc (John Chambers)
Uucp-map: minya	adelie(DEAD)
Technical Details
Message-ID: <441@minya.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!minya!jc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!telly!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!minya!jc
From: jc@minya.UUCP (John Chambers)
Newsgroups: comp.unix.programmer
Subject: Which IP implementations can send traffic to a process?
Message-ID: <441@minya.UUCP>
Date: 26 Nov 90 04:59:34 GMT
Lines: 28