Datagrams Outside the Kernel

Dave Mack mack at inco.UUCP
Wed Jun 27 03:21:50 AEST 1990


I have question which may (or may not) be worthy of this august
assemblage.

I have a program running in user context which has a datagram (IP,
for example) in a buffer. I need to hand this datagram over to
the kernel in such a way that it gets transmitted to whatever
Internet address lurks in the IP header.

I also need to solve the inverse problem: getting a datagram in
its raw form from the kernel when it arrives at my machine.

What makes this tough is that I have to do this without modifying
the kernel source. I can add pseudo-device drivers, if necessary,
but I can't change anything whose source doesn't come with a
binary Unix distribution.

The current context of this is a Sun-2/120 under SunOS3.4, but
I'd like to be able to run on any system with BSD networking.
Note: I can't assume the availability of streams.

So. Is this possible or am I screwed? Does any PD software to
do something like this exist?

Thanks very much,
Dave Mack
mack at inco.mdc.com
{uunet!alembic,pyrdc,sundc}!inco!mack
-- 
Dave Mack				McDonnell Douglas Electronic Systems
uunet!inco!mack, inco%mack at uunet.uu.net			(703)883-3911
All opinions expressed are my own and do not reflect those of MDESC. Ever.



More information about the Comp.unix.wizards mailing list