mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
removed IP_RECVDSTADDR which doesn't seem to exist on Linux
(or at least on the Android environment)
This commit is contained in:
parent
5cc6079c0f
commit
355237cc6a
3
server.c
3
server.c
@ -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)");
|
||||
|
Loading…
Reference in New Issue
Block a user