Hi for all!
I’m making an assessment about the temporal behavior of the standard Protocol Stacks of different operating systems and I’m trying to send Ethernet Raw packets in the QNX Netrino OS. I want send only the most basic packet:
destination MAC (6 bytes) + source MAC (6 bytes) + Ethernet Type (2 bytes) + Payload (46 to 1500 bytes).
In other versions of Linux (eg Ubuntu) I use:
SocketFD = socket(AF_PACKET,SOCK_RAW,htons(ETH_P_ALL));
and I pass the sockaddr_ll struct to the sendto syscall. But on QNX I don’t know what domain and protocol I have to use on socket syscall neither what is the struct that I have to pass to the sendto syscall.
Can you help me with this please?
Thanks in advance!