fix socket validation logic
move setup of receive socket into BFD core