Fixed null pointers derefs in socket, moved TCP table in const memory