Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site wdl1.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxj!houxm!ihnp4!zehntel!dual!amdcad!fortune!wdl1!clt
From: clt@wdl1.UUCP
Newsgroups: net.unix-wizards
Subject: 4.2 networking question
Message-ID: <188@wdl1.UUCP>
Date: Tue, 15-Jan-85 16:40:19 EST
Article-I.D.: wdl1.188
Posted: Tue Jan 15 16:40:19 1985
Date-Received: Sun, 20-Jan-85 05:46:35 EST
Sender: jrb@wdl1.UUCP
Organization: Ford Aerospace, Western Development Laboratories
Lines: 27
Nf-ID: #N:wdl1:17100039:000:1000
Nf-From: wdl1!clt    Dec 12 14:04:00 1984

<>
Problem overview: using raw sockets in 4.2bsd

What I want to do: Write a network application which uses IP.  I am
	implementing an XNET User program (Internet protocol #15).
	This would require sending (and receiving!) packets with the
	IP protocol field set to 15.  Note that I don't care whether
	the user process actually receives the entire IP packet.  If
	the header is stripped off, that is fine.

What I am doing: trying to establish a raw socket, with protocol number 15:

	#define XNETPROTO	15
	...
	socknbr = socket(AF_INET,SOCK_RAW,XNETPROTO);

	This call is returning the "Protocol not supported" error.
	By the way, I have SETUIDed, so it is running in supervisor mode,
	as it should, for using raw sockets.

If anyone has any sample code where a process is running on top of IP
directly, I would greatly appreciate a message telling me what I am
doing wrong (either the idea or the specific code, preferably the latter,
but I'm not picky).			Thank you in advance,

					Chris Tucci