I\'m trying to create a DHCP Server and the first step is for me to send packets through my ethernet port. I\'m trying to send packets to my Ethernet interface and having an
DHCP is a UDP protocol. You shouldn't need a raw socket to implement a DHCP server.
Use an AF_INET/SOCK_DGRAM socket, and bind to address 255.255.255.255 in order to implement your server.