From owner-freebsd-net Mon May 11 20:42:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA21612 for freebsd-net-outgoing; Mon, 11 May 1998 20:42:26 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA21597 for ; Mon, 11 May 1998 20:42:18 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id UAA00558; Mon, 11 May 1998 20:41:49 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma000556; Mon May 11 20:41:38 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id UAA23360; Mon, 11 May 1998 20:41:38 -0700 (PDT) From: Archie Cobbs Message-Id: <199805120341.UAA23360@bubba.whistle.com> Subject: Re: Help with RAW sockets... In-Reply-To: <199805112153.PAA12212@softweyr.com> from Wes Peters at "May 11, 98 03:53:22 pm" To: wes@softweyr.com (Wes Peters) Date: Mon, 11 May 1998 20:41:38 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wes Peters writes: > I'm trying to write a program to send specially formatted ARP > requests and replies to the ethernet broadcast address. This tool > will be used to debug ARP responses. I think I should be able to > do this with a SOCK_RAW,IPPROTO_RAW socket, but just do not grock > what address to use in the sendto calls. > > Can anyone here in FreeBSD net land help me? Suggestions, snippets > of source, any help at all will be greatly appreciated. Thanks! Your task might be easier by using BPF.. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message