Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!mike@BRL.ARPA From: mike@BRL.ARPA (Mike Muuss) Newsgroups: net.unix-wizards Subject: Re: Raw AF_INET ICMP sockets Message-ID: <611@brl-tgr.ARPA> Date: Sun, 11-Aug-85 22:41:29 EDT Article-I.D.: brl-tgr.611 Posted: Sun Aug 11 22:41:29 1985 Date-Received: Tue, 13-Aug-85 03:49:09 EDT Sender: news@brl-tgr.ARPA Lines: 39 As the comment on the front of PING.C says, it depends on your having installed various fixes to your kernel. Most importantly, you have to change /sys/netinet/in_proto.c: Remove: < { 0, PF_INET, IPPROTO_ICMP, 0, < icmp_input, 0, 0, 0, < 0, < 0, 0, 0, 0, < }, At the end of the protosw table, add: > { SOCK_RAW, PF_INET, IPPROTO_ICMP, PR_ATOMIC|PR_ADDR, > icmp_input, rip_output, 0, 0, > raw_usrreq, > 0, 0, 0, 0, > }, This will be enough to get you started. There are bugs in ip_input.c as well; contact me by electronic mail if you need these changes too; they are too numerous to post here. Best, -Mike Muuss (301)-278-6678 AV 283-6678 FTS 939-6678 ArpaNet: Mike @ BRL UUCP: ...!{decvax,cbosgd}!brl-bmd!mike Postal: Mike Muuss Leader, Advanced Computer Systems Team Computer Science and Mathematics Branch Systems Engineering and Concepts Analysis Division U.S. Army Ballistic Research Laboratory Attn: AMXBR-SECAD (Muuss) APG, MD 21005