Use (SOCK_DGRAM,IPPROTO_IP) socket instead of (SOCK_STREAM,IPPROTO_TCP).
This is exactly what Linux ifconfig does and seems to be the preferred way.
Showing
Please register or sign in to comment
This is exactly what Linux ifconfig does and seems to be the preferred way.