Skip to content

Commit

Permalink
Do not use promiscuous mode
Browse files Browse the repository at this point in the history
  • Loading branch information
olbjo committed Feb 17, 2021
1 parent 77ec6bc commit 94dfe7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ports/linux/pnal_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pnal_eth_handle_t * pnal_eth_init (
strcpy (ifr.ifr_name, if_name);
ifr.ifr_flags = 0;
ioctl (handle->socket, SIOCGIFFLAGS, &ifr);
ifr.ifr_flags = ifr.ifr_flags | IFF_PROMISC | IFF_BROADCAST;
ifr.ifr_flags = ifr.ifr_flags | IFF_MULTICAST | IFF_BROADCAST;
ioctl (handle->socket, SIOCSIFFLAGS, &ifr);

/* Bind socket to all protocols */
Expand Down

0 comments on commit 94dfe7c

Please sign in to comment.