Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nat: make tcp/udp/icmp packet counters consistent
[vpp.git]
/
src
/
plugins
/
nat
/
nat44-ed
/
nat44_ed_out2in.c
diff --git
a/src/plugins/nat/nat44-ed/nat44_ed_out2in.c
b/src/plugins/nat/nat44-ed/nat44_ed_out2in.c
index
40a7212
..
aa0cc50
100644
(file)
--- a/
src/plugins/nat/nat44-ed/nat44_ed_out2in.c
+++ b/
src/plugins/nat/nat44-ed/nat44_ed_out2in.c
@@
-1135,8
+1135,12
@@
nat44_ed_out2in_slow_path_node_fn_inline (vlib_main_t * vm,
goto trace0;
}
goto trace0;
}
- vlib_increment_simple_counter (&sm->counters.slowpath.out2in.icmp,
- thread_index, sw_if_index0, 1);
+ if (NAT_NEXT_DROP != next[0])
+ {
+ vlib_increment_simple_counter (
+ &sm->counters.slowpath.out2in.icmp, thread_index, sw_if_index0,
+ 1);
+ }
goto trace0;
}
goto trace0;
}