This commit adds packet socket support to socket api. This version supports basic packet socket features. Protocol family is AF_PACKET, type of socket is SOCK_RAW and proto type is ETH_P_ALL. The user will receive every packet (with L2 header) on the wire. For TX, the subsystem expects that the user has set all the protocol headers (L2 and L3) properly. Networking subsystem doesn't verify or alter the headers while sending or receiving the packets. This version supports packet socket over Etherent only. Also combination of other family and protocols doesn't work (i.e. Application can not open packet-socket and non packet-socket together). Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com> |
||
|---|---|---|
| .. | ||
| ip | ||
| l2 | ||
| lib | ||
| buf.c | ||
| CMakeLists.txt | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Kconfig.template.log_config.default.net | ||
| Kconfig.template.log_config.net | ||
| TODO | ||