Can I add to a Raspberry Pi (2, 3?) an usb dongle (to add a network interface) and then install LWIP to manage that connection using LWIP code?
LWIP is a IP/TCP Open stack (https://savannah.nongnu.org/projects/lwip/) to be able to manage both interfaces and create different projects. I'm not sure if it would recognize Raspberry interfaces (integrated or USB).