From owner-freebsd-net@FreeBSD.ORG Mon Dec 26 14:34:32 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 182E8106566B for ; Mon, 26 Dec 2011 14:34:32 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id CCA3F8FC17 for ; Mon, 26 Dec 2011 14:34:31 +0000 (UTC) Received: by iadj38 with SMTP id j38so22599686iad.13 for ; Mon, 26 Dec 2011 06:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=nGF2D6r//XBPMVKfYyjXJVt0Tav2vejvq8VccAkP0Q4=; b=Ea3nO16ntVZ4ZzpYRN0k65lXs5kSSojK+aEnDWOv2eKdx1btnbWrn776Q9q91fE/7o DZYvz+L0lzsZGDtnHRrg4J1khOy5j3siDK3Pf5e189o0b299CkjGP8yqzHeNFEQeBv0v k4peurWSvBprLflGaVdF0hN20Uc+EFomY8g+4= Received: by 10.50.45.195 with SMTP id p3mr26339249igm.2.1324910071273; Mon, 26 Dec 2011 06:34:31 -0800 (PST) Received: from DataIX.net (24-247-9-230.dhcp.aldl.mi.charter.com. [24.247.9.230]) by mx.google.com with ESMTPS id g34sm78150175ibk.10.2011.12.26.06.34.28 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Dec 2011 06:34:29 -0800 (PST) Sender: Jason Hellenthal Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id pBQEYQEn019468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Dec 2011 09:34:26 -0500 (EST) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id pBQEYL4d019467; Mon, 26 Dec 2011 09:34:21 -0500 (EST) (envelope-from jhell@DataIX.net) Date: Mon, 26 Dec 2011 09:34:21 -0500 From: Jason Hellenthal To: Rajneesh Kumar Message-ID: <20111226143421.GB17435@DataIX.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-net@freebsd.org Subject: Re: Can we do perform a C style file Read/Write from within a ARP module X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2011 14:34:32 -0000 See siftr(4). This module writes to a file. On Mon, Dec 26, 2011 at 07:13:46PM +0530, Rajneesh Kumar wrote: > Hello sir/madam, > > I am new to this. Kindly reply. > > I am modifying the native ARP version to thwart any ARP Poisoning attack > against my machine. I need to save some additional data to achieve my idea. > So, My question is, can I do a file read/write operation using C code from > within any ARP function (precisely from in_arpinput() function in > net/if_ether.c) ? > If no, how can I do it? > If yes, at what location my files would reside? Can I access those files > after system reboot? or it will be in some temporary location and flushed > off after every reboot? > Thank You. > > -- > Regards, > Rajneesh > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- ;s =;