Can we do perform a C style file Read/Write from within a ARP module

Jason Hellenthal jhell at DataIX.net
Mon Dec 26 14:34:32 UTC 2011


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"

-- 
;s =;


More information about the freebsd-net mailing list