LIB: Fix bug with IP length extracted from header with wrong endianness
LIB: Remove a bunch of commented out code