Skip to content

Commit

Permalink
pcap_set_fanout_linux: Fix unused enable argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tsnoam committed Sep 13, 2020
1 parent 929be78 commit bcd3778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcap-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -7159,7 +7159,7 @@ pcap_set_fanout_linux(pcap_t *p, int enable, uint16_t mode, uint16_t group_id)
return (PCAP_ERROR_ACTIVATED);
}

p->opt.fanout_enabled = 1;
p->opt.fanout_enabled = enable;
p->opt.fanout_opt = (((int)mode) << 16) | ((int)group_id & 0xffff);

return 0;
Expand Down

0 comments on commit bcd3778

Please sign in to comment.