socket for layer 4 copy and changed from quagga