From owner-freebsd-net@FreeBSD.ORG Tue Jun 17 18:34:46 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6614D37B401 for ; Tue, 17 Jun 2003 18:34:46 -0700 (PDT) Received: from relay1.softcomca.com (relay1.softcomca.com [168.144.1.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4E7243FAF for ; Tue, 17 Jun 2003 18:34:45 -0700 (PDT) (envelope-from akanwar@digitarchy.com) Received: from M2W098.mail2web.com ([168.144.251.211]) by relay1.softcomca.com with Microsoft SMTPSVC(5.0.2195.5576); Tue, 17 Jun 2003 21:34:45 -0400 Message-ID: <184670-22003631813445521@M2W098.mail2web.com> X-Priority: 3 X-Originating-IP: 66.162.33.181 X-URL: http://mail2web.com/ From: "akanwar@digitarchy.com" To: wollman@lcs.mit.edu, freebsd-net@freebsd.org Date: Tue, 17 Jun 2003 21:34:45 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 18 Jun 2003 01:34:45.0462 (UTC) FILETIME=[CC5DE760:01C33539] Subject: RE: replacement for SOCK_PACKET X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: akanwar@digitarchy.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 01:34:46 -0000 Thanks Garrett=2E=20 I am trying to write a small program to send out gratituous arps (because the em driver does not work) for a redundancy (via IP address take over) scheme=2E I do NOT want to use libpcap or libnet as these will not be available on prodution servers=2E I could probably statically link and make a huge executable=2E=2E=2Ebut then I think there ought to be a simpler way=2E Any ideas? -ansh =20 Original Message: ----------------- From: Garrett Wollman wollman@lcs=2Emit=2Eedu Date: Tue, 17 Jun 2003 20:59:23 -0400 (EDT) To: akanwar@digitarchy=2Ecom, freebsd-net@freebsd=2Eorg Subject: replacement for SOCK_PACKET ansh said: > What is the BSD equivalent of this Linux call: > sock=3Dsocket(AF_INET,SOCK_PACKET,htons(ETH_P_RARP)); man libpcap -GAWollman -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web=2Ecom/ =2E