removed IP_RECVDSTADDR which doesn't seem to exist on Linux

(or at least on the Android environment)
This commit is contained in:
gardners 2012-02-05 16:21:55 +10:30
parent 5cc6079c0f
commit 355237cc6a

View File

@ -572,9 +572,6 @@ int createServerSocket()
int TRUE=1;
setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &TRUE, sizeof(TRUE));
errno=0;
if(setsockopt(sock, IPPROTO_IP, IP_RECVDSTADDR, &TRUE,sizeof(TRUE))<0)
perror("setsockopt(IP_RECVDSTADDR)");
errno=0;
if(setsockopt(sock, IPPROTO_IP, IP_RECVTTL, &TRUE,sizeof(TRUE))<0)
perror("setsockopt(IP_RECVTTL)");