Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!zehntel!hplabs!hao!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.unix-wizards Subject: Re: 4.2 networking question Message-ID: <2623@umcp-cs.UUCP> Date: Mon, 21-Jan-85 11:50:37 EST Article-I.D.: umcp-cs.2623 Posted: Mon Jan 21 11:50:37 1985 Date-Received: Wed, 23-Jan-85 19:25:58 EST References: <188@wdl1.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 31 > Path: umcp-cs!seismo!harvard!talcott!panda!teddy!genrad!decvax! > bellcore!allegra!ulysses!mhuxr!mhuxj!houxm!ihnp4!zehntel!dual!amdcad! > fortune!wdl1!clt Great galloping horney todes! [Tryinta get inta the spirit for Dallas...) > 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. Waaall, a couple of things: first, AF_INET SOCK_RAW will get you a raw connection. But you don't need (or want) a protocol field. Instead, you get to read and write headers yourself. Lessee, to get to the IMP (or whatever), you want to bind() in AF_INET to the interface address, I think. I'm sure y'all 'r gonna jump on me if I missed anything, so I'll jest mosey on outta here now ... -- (This line accidently left nonblank.) In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland