If you want to simulate a full UDP-over-IP-over-Ethernet packet, you want DLT_EN10MB
(the "10MB" in the name is historical; DLT_EN10MB
really means "all types of Ethernet").
(DLT_RAW
is for packets where the lowest-level headers are for IP; it doesn't skip the Ethernet header, it means that you don't have to provide an Ethernet header and, in fact, it requires that you don't provide one - if you do provide one, it'll be written to the file, which will confuse programs reading the file, as they'll expect the packets to begin with an IPv4 or IPv6 header, not an Ethernet header.)