Thanks for the reply.
My network protocol stack is only for same subnet.
Protocol specification doesn't allow out of band message exchange, so
Applications can't provide their own MAC address. Also the application
session gets established only after remote/client MAC address bindings
with Server.
The protocol specification is for routers where the IPAddress of the
remote systems keep on changing (DHCP) but the MAC Address remains
same.
I am looking at the implementation level solution for obtaining the
remote MAC address through their IP Addresses.
Reading /proc/net/arp wouldn't be reliable as the ARP Table cache can
be flushed irrespective of the usage. BTW, can native code access /
proc/net/arp without special permissions like root?