diff --git a/packet.cpp b/packet.cpp index 9f5a436..3e6ec59 100644 --- a/packet.cpp +++ b/packet.cpp @@ -60,7 +60,7 @@ void getLocal (const char *device, bool tracemode) struct ifreq iFreq; struct sockaddr_in *saddr; - if((sock=socket(AF_INET, SOCK_RAW, htons(0x0806)))<0) + if((sock=socket(AF_INET, SOCK_DGRAM, 0))<0) forceExit(false, "creating socket failed while establishing local IP - are you root?"); strcpy(iFreq.ifr_name, device);