C Code to send UDP packets using Ethernet

Hi everyone,

I am new with the Beaglebone black and I would like to make a little program in C to send UDP packets using Ethernet. Can someone please tell me where I can find some code to do this or to point in the right direction to do this?

Thank you for the help

There’s nothing Beaglebone about this question, really. Just google “send udp packets c posix”.