From owner-freebsd-net@FreeBSD.ORG Mon Dec 26 13:43:47 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 A598C106566B for ; Mon, 26 Dec 2011 13:43:47 +0000 (UTC) (envelope-from iwc2010005@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3DC8C8FC15 for ; Mon, 26 Dec 2011 13:43:47 +0000 (UTC) Received: by eekc50 with SMTP id c50so13133419eek.13 for ; Mon, 26 Dec 2011 05:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ees8L+HnAV8+s8HAAuyn24DY0yYxYNv8nYOzmx1EH5E=; b=gqA8l4VPn5dnV/LEw34BSqlwWGrgpYTDJv/nDibHdtoOU2Bz2Ew0VFJftrnRPcccyx +u55i9b0AKVg9l/QiuRSeqiJ2e+nwayeIy0Nyn89Z/GooGQaGq9SJTJx66Mcg1UX6hKQ gxVCPEndAjPayAk7V9Ha/Lik3k+vQrhjA0ftA= MIME-Version: 1.0 Received: by 10.213.28.7 with SMTP id k7mr8262380ebc.11.1324907026342; Mon, 26 Dec 2011 05:43:46 -0800 (PST) Received: by 10.14.96.5 with HTTP; Mon, 26 Dec 2011 05:43:46 -0800 (PST) Date: Mon, 26 Dec 2011 19:13:46 +0530 Message-ID: From: Rajneesh Kumar To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 13:43:47 -0000 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