Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site lasspvax.UUCP Path: utzoo!linus!philabs!prls!amdimage!amdcad!decwrl!decvax!harpo!whuxlm!whuxl!houxm!mtuxo!mtunh!mtung!mtunf!ariel!vax135!cornell!lasspvax!andy From: andy@lasspvax.UUCP (Andy Pfiffer) Newsgroups: net.unix-wizards Subject: Raw AF_INET ICMP sockets Message-ID: <435@lasspvax.UUCP> Date: Tue, 6-Aug-85 14:20:56 EDT Article-I.D.: lasspvax.435 Posted: Tue Aug 6 14:20:56 1985 Date-Received: Mon, 12-Aug-85 05:45:39 EDT Reply-To: andy@lasspvax.UUCP (Andy Pfiffer) Organization: LASSP, Cornell University Lines: 27 Keywords: "ping" I'm trying to get a public domain pinger (from Mike Muus, Army Ballistic Research Lab.) to run. Simply, why does: . . if ((s = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)) < 0) { perror("ping: socket"); exit(5); } . . generate: ping: socket: Protocol wrong type for socket ?? Can't I create a socket like this? It runs setuid root... Frustrated. Help... -- ========================================================= USENET: {decvax,ihnp4,cmcl2,vax135}!cornell!devvax!andy ARPA: andy%devvax@Cornell.arpa MAIL: Theory Center/265 Olin Hall "What do you mean Cornell University I watch too much Ithaca, NY 14853 TV?" PHONE: (607) 256-8686 =========================================================