Sorry I am replying 2,410 days later, but I found that you have to also specify the destination IP in the pkt_socket_prepare() call for the kernel to figure out the routing destination. I had the same issue. Hope that helps!
Hi, I'm trying to build and send a broadcast IP
packet. I've set destination address to
192.168.1.255 (my local net broadcast
checking with tcpdump no packet gets out.
An open, cross-platform journaling program.
A scientific plotting package.