Alexander Chernavin 6cc757eff7 flowprobe: fix sending L4 fields in L2 template and flows
Currently, when L2 and L4 recording is enabled on the L2 datapath, the
L2 template will contain L4 fields and L2 flows will be exported with
those fields always set to zero.

With this fix, when L4 recording is enabled, add L4 fields to templates
other than the L2 template (i.e. to the IP4, IP6, L2_IP4, and L2_IP6
templates). And export L2 flows without L4 fields. Also, cover that case
in the tests.

Type: fix
Change-Id: Id5ed8b99af5634fb9d5c6e695203344782fdac01
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
(cherry picked from commit 6b027cfdbcb750b8aa1b8ab9a3904c1b2dca6f15)
2023-12-01 19:28:14 +00:00
..
2023-09-13 16:35:51 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2022-05-10 18:52:08 +00:00
2023-09-01 08:43:23 +00:00
2022-05-13 08:34:34 +00:00
2023-03-23 08:58:55 +00:00
2022-05-10 18:52:08 +00:00