In CMake:
- Select the option "BUILD_ONLY_LIB".
- If you do not have a multitask system, you also need to check "BUILD_ONLY_ONE_TASK".
Code-wise you have to setup the following:
- call IP::init() before using any of the ipstack methods.
- Route traffic received from your network card driver to IP::receive_from_network(char* data, int len).
- Implement a function for sending to your network card driver and set the function pointer of IP::send_to_network(char* data, int len) accordingly. This is called by the ipstack for outgoing traffic.
Example: Look at integration/linux_userspace_without_aspects
.