This file documents the mmap() facility available with the PACKET
socket interface on 2.4/2.6/3.x kernels. This type of sockets is used for
i) capture network traffic with utilities like tcpdump, ii) transmit network
traffic, or any other that needs raw access to network interface.
I consider using it to try improving performance of my simple-java-networking-library and test how it works.
But, from documentation I read that it is a facility available with the PACKET socket interface. So, the my question is
1. Is it possible to use that for normal (AF_INET, SOCK_DGRAM/SOCK_STREAM) socket to send/receive a message?
2. Use cases:
i) capture network traffic with utilities like tcpdump,
ii) transmit network traffic, or any other that needs raw access to network interface.
also don't indicates on possibility to use that for "normal" sockets.
3. Do you have any experience with that?