diff --git a/libnetutils/packet.c b/libnetutils/packet.c index 2debc282f..b3fa90902 100644 --- a/libnetutils/packet.c +++ b/libnetutils/packet.c @@ -40,7 +40,7 @@ int fatal(const char*); int open_raw_socket(const char* ifname __unused, uint8_t hwaddr[ETH_ALEN], int if_index) { - int s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); + int s = socket(PF_PACKET, SOCK_DGRAM, 0); if (s < 0) return fatal("socket(PF_PACKET)"); struct sockaddr_ll bindaddr = {