Reputation: 55
Need to send messages on PC without configured IP using MAC address in C language as a reply on PC's broadcast message. I suppose I should work with ethernet-header and use some (linux) kernel's structures and subroutines, however I couldn't find good links and samples about my question.
Upvotes: 4
Views: 1614
Reputation: 166
Example of sending a raw Ethernet frame in Linux:
https://gist.github.com/austinmarton/1922600
Upvotes: 2