Remove long-standing leftover

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Introduce generic typedef for socket's peer info

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Less if..else calls

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>