Unable to send packet to the destination
I am working on socket programming and I can successfully receive packets. What I need to do is to get the dest,src MACs and then assigning that MAC to the sockaddr_ll type destination Address This address, I am providign in the sendto function but I am not getting it properly. My packet goes to the network as I checked with wireshark but the destination address is not correct.
Appreciate if anyone knows how to send a raw ethernet packet as it is captured.