I have a requirement wherein i need to write a program such that i can make an ARP request or ARP reply. i.e. if i execute the program i should be able to make a request (send the ARP PDU with opcode-request) and the output of the program is the reply and vice-versa. i should not use that "arp -a" command for knowing the MAC Address.
How can this be done a linux or a solaris machine?
Please let me know a proper solution for this.
Thanks in advance.