mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-23 00:52:00 +01:00
Enabled process_outgoing_traffic and process_incoming_traffic configuration options for IPv6 traffic. Related: #963
This commit is contained in:
parent
1f24ce64e8
commit
2ebc0be49a
@ -2307,6 +2307,12 @@ void process_ipv6_packet(simple_packet_t& current_packet) {
|
||||
}
|
||||
#endif
|
||||
|
||||
// Skip processing of specific traffic direction
|
||||
if ((current_packet.packet_direction == INCOMING && !process_incoming_traffic) or
|
||||
(current_packet.packet_direction == OUTGOING && !process_outgoing_traffic)) {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef USE_NEW_ATOMIC_BUILTINS
|
||||
__atomic_add_fetch(&total_counters_ipv6.total_counters[current_packet.packet_direction].packets,
|
||||
sampled_number_of_packets, __ATOMIC_RELAXED);
|
||||
|
Loading…
Reference in New Issue
Block a user