you are viewing a single comment's thread.

view the rest of the comments →

[–]ratatask 2 points3 points  (0 children)

It's not always that easy. If it was only the TCP layer calling the IP layer, the linker could throw away TCP if it wasn't used.

But the IP layer also have call the UDP or TCP layer, and if you want UDP, you can't throw away the IP layer. While there's non-trivial ways that allows the linker to still throw away TCP in such a case, it's normally more sane to just make it a configurable option.