mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
af_packet: GetFanoutMode: Fix case statement (missing breaks).
Without this, you can't actually set the fanout mode to anything but HASH.
This commit is contained in:
parent
62356c38dd
commit
e3c5865684
1 changed files with 3 additions and 0 deletions
|
@ -183,10 +183,13 @@ inline uint32_t AF_PacketSource::GetFanoutMode(bool defrag)
|
|||
|
||||
switch ( BifConst::AF_Packet::fanout_mode->AsEnum() ) {
|
||||
case BifEnum::AF_Packet::FANOUT_CPU: fanout_mode = PACKET_FANOUT_CPU;
|
||||
break;
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0)
|
||||
case BifEnum::AF_Packet::FANOUT_QM: fanout_mode = PACKET_FANOUT_QM;
|
||||
break;
|
||||
#endif
|
||||
default: fanout_mode = PACKET_FANOUT_HASH;
|
||||
break;
|
||||
}
|
||||
|
||||
if ( defrag )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue