Skip to content
mihaelamartinas edited this page May 24, 2013 · 1 revision

Raw sockets

PF_SWITCH sockets created for LiSA must be replaced because they needed modifications in kernel space. Some back-end implementation won't allow us to do this kind of modification so a generic solution was found. For receiving packets libpcap was used. To be able to compile the following libraries should be installed:

libpcap libpcap-devel

The sockets which were previously created as PF_SWITCH sockets are now created as PF_PACKET. Packet sending is made using send for the created socket.