add loopback and broadcast define to socket header