I was checking out the uIP (micro IP) IP stack, to figure out what porting a TCP/IP stack means.
I was wondering if there is a way we can cleanly remove only the TCP/IP stack from FreeBSD codebase and Linux codebase.
Is there some documentation about this? Is it as simple as just removing a couple of files and their respective Makefile components and building it or is it like copying just the code into personal project?
Any pointers would be really useful.
In many modern OSes the TCP/IP stack is very tightly integrated into the OS, or uses many core OS primitives (like memory allocation, synchronization, etc.) that it would be nearly impossible to "pull it out" into your own project (assuming embedded). uIP and lwIP were written specifically for this purpose - using in your own custom environment without many ties to existing OS services.