ARP module interaction

2012-02-24 Thread Rajneesh Kumar
Hi, I am working on ARP module of FreeBSD and want to modify it to suit my needs. I am trying to prevent ARP cache poisoning by a false reply reply packet. For the same I referred "Rechard Steven's TCP/IP Illustrated vol.-2" to understand how the modules interact and the purpose served by every fu

Modifying "arp" command

2011-12-31 Thread Rajneesh Kumar
Hello list, I want to modify the "arp" command in FreeBSD. Precisely I don't want it to display the time to expire for every entry. Which file should I edit? Will it be effective after kernel compilation and re-build? -- Regards, Rajneesh ___ freebsd-n

Compiling only "network" part of the kernel

2011-12-26 Thread Rajneesh Kumar
Hi list, During my development, I want to check if my modules compile successfully or not. I am only changing the ARP portion and whenever I compile my kernel, it takes around 20mins and compiles all different modules also. I just want to compile and check whether my ARP modules, which I have chan

Failed to compile kernel because ioctl.h not found

2011-12-26 Thread Rajneesh Kumar
Hi list, I did slight modification in ARP module of 4.4FreeBSD-Lite (getting help from the book TCP/IP illustrated vol 2 by Richard Stevens). After that I found this kernel is replaced by a new version. I am trying to incorporate those changes in new kernel but facing problem. There was #include

Which function can allocate memory for a given structure type

2011-12-26 Thread Rajneesh Kumar
Hello sir/madam, Please help! I am trying to modify the ARP module. I want to know which function can allocate memory for a given structure type and return me back the same? e.g. I want to have declared a pointer of sockaddr_dl{} type. Now I want to allocate memory to it. How can I do it? Thank Y

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

2011-12-26 Thread Rajneesh Kumar
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

ARP Mechanism Modification Issue

2011-12-24 Thread Rajneesh Kumar
Hello, I have designed a new ARP mechanism that would probably stop ARP poisoning on LAN. I programmed it according to the ARP mechanism mentioned in Steven's Book (TCP/IP Illustrated Vol 2). But that kernel is too old now. I want to test that code whether it would work well or not. What is the wa