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

Rajneesh Kumar iwc2010005 at gmail.com
Mon Dec 26 13:43:47 UTC 2011


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


More information about the freebsd-net mailing list