kschin at unf.edu
Thu Aug 30 01:32:13 UTC 2001
I have written a couple of programs to make arp packets. I create my
socket with the following call to socket():
sfd = socket(AF_INET,SOCK_PACKET,htons(ETH_P_ARP));
The Stevens' TCP/IP Illustrated vol 1 has a section on how to fill in the
diff parts of an arp packet.
On Wed, 29 Aug 2001, Dilli Rajesh Kumar wrote:
> I want to build my program of sending arp requests and recieving the
> responses.I have done raw packet buliding on the remaining layers
> but i have meagre idea about this.All i know is that to use th header file
> /net/if_arp.h.If any of you have any ideas please help me out in this.and
> one more thing i 'm using linux so i'm comfortable in using the SOCK_PACKET
> option better than other packet libraries(libpcap)
> This is the Linux C Programming List
> : http://lists.linux.org.au/listinfo/linuxcprogramming List
Keith Schincke My dawg is always with me.
Jacksonville, Fl 00 Spool - Wild at Heart
http://www.unf.edu/~kschin Email: kschin at unf.edu
++The opinions in my email are mine only and are not those of my employer++
Go 'way! You're bothering me!
More information about the linuxCprogramming