hicn.git
2 years agofix(libtransport): fix warning about DOWNLOAD_EXTRACT_TIMESTAMP on CMake 3.24 41/38341/2 master
Michele Papalini [Thu, 23 Feb 2023 10:21:55 +0000 (11:21 +0100)]
fix(libtransport): fix warning about DOWNLOAD_EXTRACT_TIMESTAMP on CMake 3.24
Ref: HICN-845

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: Ibd2f8d83de7dd3bd11d4c292ae8e8de6c42c821a

2 years agofix(hicn-plugin): error on possible uninitialized variable 76/38276/1
Mauro Sardara [Tue, 14 Feb 2023 14:39:20 +0000 (15:39 +0100)]
fix(hicn-plugin): error on possible uninitialized variable

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I7a3b7176bd7599888237f631b7352b56e8e1e5e4

2 years agofix: package dependency and unused variable 68/38268/2
Mauro Sardara [Mon, 13 Feb 2023 18:55:18 +0000 (18:55 +0000)]
fix: package dependency and unused variable

Change-Id: I5dd1b92eeff665bc4e8ad4c1d88f19430bb96a74
(cherry picked from commit da80325f47a9c58aa493441ab54116019811072f)
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat(hicn-plugin): handle case of no exact match for mapme IU 62/38262/2
Mauro Sardara [Mon, 30 Jan 2023 21:14:39 +0000 (21:14 +0000)]
feat(hicn-plugin): handle case of no exact match for mapme IU

Ticket: HICN-844

Change-Id: I1f046e6327e4cf507b7fa7a5adae53e63ab491bf
Signed-off-by: Mauro Sardara <msardara@cisco.com>
(cherry picked from commit 7cfd91a6c6316fe15186c8cd3acc1c4526db7e25)

2 years agoMerge "fix(vpp-plugin): fix catching polymorphic type by value warning Ref: HICN...
Michele Papalini [Fri, 10 Feb 2023 09:39:05 +0000 (09:39 +0000)]
Merge "fix(vpp-plugin): fix catching polymorphic type by value warning Ref: HICN-843"

2 years agofix(vpp-plugin): fix catching polymorphic type by value warning 37/38237/1
Michele Papalini [Fri, 10 Feb 2023 09:05:33 +0000 (10:05 +0100)]
fix(vpp-plugin): fix catching polymorphic type by value warning
Ref: HICN-843

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I93e7009d3f5d2f141e09c67dfb82d38d2ce4ef08

2 years agofix(hicn-plugin): correctly create mapme packets 13/38213/8
Mauro Sardara [Thu, 9 Feb 2023 16:17:42 +0000 (16:17 +0000)]
fix(hicn-plugin): correctly create mapme packets

Ticket: HICN-842

Change-Id: I6f2cc49b6cd9b949f2e7e7cbd85c272339571830
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat(hicn-plugin): specify the dpo_proto when creating a new face 12/38212/3
Mauro Sardara [Thu, 9 Feb 2023 16:02:33 +0000 (16:02 +0000)]
feat(hicn-plugin): specify the dpo_proto when creating a new face

Ticket: HICN-841

Change-Id: I4c5684db936835a0748715680cfbbc22ada642ff
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofix(hicn-plugin): correctly punt mapme packets 11/38211/1
Mauro Sardara [Thu, 9 Feb 2023 15:30:15 +0000 (15:30 +0000)]
fix(hicn-plugin): correctly punt mapme packets

Ticket: HICN-840

Change-Id: Ib92fa130867dcfc1ed7bbc96cc72c6224d94b57b
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofix: do not always set adj_index of incoming packets 10/38210/2
Mauro Sardara [Thu, 9 Feb 2023 15:11:40 +0000 (15:11 +0000)]
fix: do not always set adj_index of incoming packets

Ticket: HICN-839

Change-Id: I67faf5a158a0b58b9ec6d7dfdb234ae3155083b0
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat: libhicnctrl: new API to allow sending MAP-Me command on specific face 19/38119/13
Jordan Augé [Tue, 24 Jan 2023 00:46:29 +0000 (01:46 +0100)]
feat: libhicnctrl: new API to allow sending MAP-Me command on specific face

Change-Id: Iac39a1d145a5c1b4f19e1fa35d713ca720393760
Ticket: HICN-832
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agofix(hicn): fix bugs reported by sonarqube 24/38124/8
Michele Papalini [Thu, 2 Feb 2023 16:49:46 +0000 (17:49 +0100)]
fix(hicn): fix bugs reported by sonarqube
Ref: HICN-837

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I0d02a11361b1ba5ad50123b2dd142c961998922f

2 years agofix(apps): fix issues reported by sonarqube 90/38090/3
Michele Papalini [Wed, 1 Feb 2023 16:25:21 +0000 (17:25 +0100)]
fix(apps): fix issues reported by sonarqube
Ref: HICN-836

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: Ie76771ca75bd224084ce3c893aba661b97064419

2 years agoMerge "feat(tests): add HMAC to functional tests"
Luca Muscariello [Tue, 31 Jan 2023 12:19:54 +0000 (12:19 +0000)]
Merge "feat(tests): add HMAC to functional tests"

2 years agoMerge "fix(vpp): remove unused variables Ref: HICN-835"
Michele Papalini [Mon, 30 Jan 2023 17:31:46 +0000 (17:31 +0000)]
Merge "fix(vpp): remove unused variables Ref: HICN-835"

2 years agofix(vpp): remove unused variables 79/38079/1
Michele Papalini [Mon, 30 Jan 2023 16:55:01 +0000 (17:55 +0100)]
fix(vpp): remove unused variables
Ref: HICN-835

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I2d2eedff244077c6378cdf731873ba2d1c4f8ae7

2 years agofix(fib): fix lmp on hicn-light fib 77/38077/2
Michele Papalini [Mon, 30 Jan 2023 16:21:38 +0000 (17:21 +0100)]
fix(fib): fix lmp on hicn-light fib
Ref: HICN-834

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: Ia5648c8784f2c90fb23d1860f8ee20e21158e5e7

2 years agofeat(tests): add HMAC to functional tests 57/38057/7
Olivier Roques [Fri, 27 Jan 2023 08:24:18 +0000 (08:24 +0000)]
feat(tests): add HMAC to functional tests

Ref: HICN-833

Signed-off-by: Olivier Roques <oroques@cisco.com>
Change-Id: I40df138798f980f8a89e5fd13db54c2ac89f34b7

2 years agofix(libhicnctrl): do not swap bytes when using vapi 95/37995/1
Mauro Sardara [Mon, 23 Jan 2023 16:24:35 +0000 (16:24 +0000)]
fix(libhicnctrl): do not swap bytes when using vapi

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: If1666dd5c31c662570ed10991b3d42d6095693ff

2 years agofeat(hicn-plugin): reuse strategy node to forward interests 94/37994/1
Mauro Sardara [Fri, 20 Jan 2023 20:19:01 +0000 (20:19 +0000)]
feat(hicn-plugin): reuse strategy node to forward interests

Before the interest forwarding was duplicated in 2 different nodes,
the strategy_node and the interest_hitpit_node.
Reuse the strategy node so that the nexthop selection via the strategy
is done only in one place - teh strategy node.

Change-Id: I2c72ec35b1df4e6ed8ce0877e9f3e6f5c1ae68f8
Signed-off-by: Mauro Sardara <msardara@cisco.com>
(cherry picked from commit 4ec2784197db60e4f287a88b7944ecb1067bfc08)

2 years agofix(vpp): remove unused variables in VPP 73/37973/1
Michele Papalini [Sat, 21 Jan 2023 13:50:16 +0000 (14:50 +0100)]
fix(vpp): remove unused variables in VPP
Ref: HICN-831

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I486806b6555ad39b050b97d91fbb428fd0f81387

2 years agofix(hicn-plugin): handle inflight interest coming from deleted face 81/37981/1
Mauro Sardara [Fri, 20 Jan 2023 18:19:03 +0000 (18:19 +0000)]
fix(hicn-plugin): handle inflight interest coming from deleted face

Ticket: HICN-830

Change-Id: I14ed32bba2b07575ee604850080309706eb8ce85
Signed-off-by: Mauro Sardara <msardara@cisco.com>
(cherry picked from commit 64fa723904d35eda3406058469b890a39c3f628c)

2 years agofeat: implement set strategy API for hicn-plugin 80/37980/1
Mauro Sardara [Fri, 20 Jan 2023 14:54:19 +0000 (14:54 +0000)]
feat: implement set strategy API for hicn-plugin

Ticket: HICN-829

Change-Id: I3dabc38e9cc2e06ebed14b9ed265d027f77b7e5f
Signed-off-by: Mauro Sardara <msardara@cisco.com>
(cherry picked from commit da0d60997bce1e40cc0b1c7b7f4f58df56bbead3)

2 years agoMerge "fix(libhicnctrl)/hicn_plugin): copy address to correct offset"
Mauro Sardara [Fri, 20 Jan 2023 11:05:16 +0000 (11:05 +0000)]
Merge "fix(libhicnctrl)/hicn_plugin): copy address to correct offset"

2 years agofix: interest aggregation 62/37962/11
Mauro Sardara [Thu, 19 Jan 2023 20:39:23 +0000 (20:39 +0000)]
fix: interest aggregation

Interests processed in the same vector were not aggregated properly.

Ticket: HICN-827

Change-Id: I9aa83e8689ec11642525fd3406972f1b2dea4d8f
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agoMerge "fix: correctly set next node for ifaces and faces"
Mauro Sardara [Fri, 20 Jan 2023 10:22:54 +0000 (10:22 +0000)]
Merge "fix: correctly set next node for ifaces and faces"

2 years agofix(libhicnctrl)/hicn_plugin): copy address to correct offset 65/37965/2
Mauro Sardara [Fri, 20 Jan 2023 09:37:24 +0000 (09:37 +0000)]
fix(libhicnctrl)/hicn_plugin): copy address to correct offset

Copy address received from vapi into correct ip46address offset

Ticket: HICN-826

Change-Id: I1bf23cc0920539f8883b499981f216038e51a8c0
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofix: correctly set next node for ifaces and faces 58/37958/9
Mauro Sardara [Thu, 19 Jan 2023 13:33:57 +0000 (13:33 +0000)]
fix: correctly set next node for ifaces and faces

Ticket: HICN-828

Change-Id: I7853bc37e34ca4f2303a537396aef4cb8b06ec98
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat(vpp): improve tracing 66/37966/2
Mauro Sardara [Fri, 20 Jan 2023 09:48:58 +0000 (09:48 +0000)]
feat(vpp): improve tracing

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Ic20b5cc7f34b35c86b6c100f9a7c868b119bd129

2 years agofix: correctly print fib prefixes 49/37949/1
Mauro Sardara [Wed, 18 Jan 2023 20:07:48 +0000 (20:07 +0000)]
fix: correctly print fib prefixes

Change-Id: Icd00882577be78fe8996f53f737d87d5c8e2da99
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat: local-remote strategy 32/37932/18
Mauro Sardara [Mon, 16 Jan 2023 20:18:23 +0000 (20:18 +0000)]
feat: local-remote strategy

Ticket: HICN-824

Change-Id: Iea285cb499b13c943a142fa39328ee36c91ae913
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat: forward local interest if PIT entry exists in case of local remote strategy 26/37926/1
Michele Papalini [Mon, 16 Jan 2023 11:00:38 +0000 (12:00 +0100)]
feat: forward local interest if PIT entry exists in case of local remote strategy
Ref: HICN-823

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I9e4b5da6ae1011e29e128d7811e29b3020a4a3cc

2 years agofeat: update cmake modules version 17/37917/6
Mauro Sardara [Fri, 13 Jan 2023 10:13:14 +0000 (10:13 +0000)]
feat: update cmake modules version

Change-Id: I3154e22faa5c274dda3645f3a4e81cf5b6ea526b
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat: set STREAM parameters in functional tests 01/37901/6 v23.02-rc0
Mauro Sardara [Thu, 12 Jan 2023 08:48:47 +0000 (08:48 +0000)]
feat: set STREAM parameters in functional tests

Ticket: HICN-822

Change-Id: I0b05a3d4b01fe2ab35682eb7d70fa0f0bdf05176
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agoMerge "feat: upgrade to VPP 22.10"
Luca Muscariello [Tue, 10 Jan 2023 16:48:16 +0000 (16:48 +0000)]
Merge "feat: upgrade to VPP 22.10"

2 years agofeat: upgrade to VPP 22.10 18/37818/18 v22.10-rc0
Mauro Sardara [Mon, 12 Dec 2022 16:19:35 +0000 (16:19 +0000)]
feat: upgrade to VPP 22.10

Change-Id: I556bd8c44f0ff7a631a0df34b498ffd7952fcf4a
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofix(libtransport): fix variable type for port number 43/37743/1
Michele Papalini [Fri, 2 Dec 2022 16:04:26 +0000 (17:04 +0100)]
fix(libtransport): fix variable type for port number
Ref: HICN-820

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: Ibad1b02abcc40734143ca3dad1d3e37c93ae8eaf

2 years agofeat: configure hicnlight port in libtransport and libconfig 40/37740/7
Mauro Sardara [Fri, 2 Dec 2022 14:20:18 +0000 (15:20 +0100)]
feat: configure hicnlight port in libtransport and libconfig

Change-Id: Ib55747b4589150ce4a88938e28371c6cf5ab979b
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Signed-off-by: Michele Papalini <micpapal@cisco.com>
2 years agofeat(libtransport): add configuration section for hicnlight io_module 37/37737/5
Mauro Sardara [Thu, 1 Dec 2022 15:29:08 +0000 (16:29 +0100)]
feat(libtransport): add configuration section for hicnlight io_module

And add configuration for hicnlight url.

Ticket: HICN-819

Change-Id: I0c2557ca49078e1e405d078da2768372e5f44525
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat(auth): add support for ED25519 and ED448 89/37689/1
Olivier Roques [Thu, 17 Nov 2022 11:26:23 +0000 (11:26 +0000)]
feat(auth): add support for ED25519 and ED448

Ref: HICN-818

Signed-off-by: Olivier Roques <oroques@cisco.com>
Change-Id: I8672f022b74be387e16496660a78edf3c1da4bf1

2 years agoMerge "fix(hicn-light): fib_contains incorrectly matches subprefixes"
Michele Papalini [Fri, 21 Oct 2022 14:19:42 +0000 (14:19 +0000)]
Merge "fix(hicn-light): fib_contains incorrectly matches subprefixes"

2 years agofix(libhicnctrl): hc_face_create does not update face id in parameter 02/37502/1
Jordan Augé [Fri, 21 Oct 2022 12:45:43 +0000 (14:45 +0200)]
fix(libhicnctrl): hc_face_create does not update face id in parameter

Change-Id: I30090edb7d365befdc838e0b08ae22bdde377ea2
Ticket: HICN-817
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agofix(sonar): False positives Identical sub-expressions on both sides of operator 86/37486/4
Luca Muscariello [Wed, 19 Oct 2022 15:51:12 +0000 (17:51 +0200)]
fix(sonar): False positives Identical sub-expressions on both sides of operator

Ref: HICN-816

Signed-off-by: Luca Muscariello <muscariello@ieee.org>
Change-Id: Ifdbcad287f89378dc2a35110fac01dba9c341ef9

2 years agoMerge "fix(libhicn): Out of bound memory access"
Luca Muscariello [Wed, 19 Oct 2022 15:31:05 +0000 (15:31 +0000)]
Merge "fix(libhicn): Out of bound memory access"

2 years agofix: show forwarder log after test execution 77/37477/2
Mauro Sardara [Tue, 18 Oct 2022 16:48:45 +0000 (18:48 +0200)]
fix: show forwarder log after test execution

The command to show the log should be executed
with "sudo", as the log file is owned by the root user.

Ticket: HICN-815

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I3c1bf40691037d32c09e095e6011992212b19e38

2 years agoMerge "fix(hicn-light): access to field 'local' results in a dereference of a null...
Luca Muscariello [Tue, 18 Oct 2022 07:44:25 +0000 (07:44 +0000)]
Merge "fix(hicn-light): access to field 'local' results in a dereference of a null pointer"

2 years agofix(sonar): Nodejs LTS update 43/37443/3
Luca Muscariello [Mon, 17 Oct 2022 15:57:25 +0000 (17:57 +0200)]
fix(sonar): Nodejs LTS update

Ref: HICN-814

Signed-off-by: Luca Muscariello <muscariello@ieee.org>
Change-Id: I3da9837c9e42d9b509dfb863c0f01302fe39aa97

2 years agofix(libhicn): Out of bound memory access 41/37441/1
Jordan Augé [Mon, 17 Oct 2022 14:52:25 +0000 (16:52 +0200)]
fix(libhicn): Out of bound memory access

Change-Id: If7ef58bc05dd62f58bf5d5a8bce0491afab37d42
Ticket: HICN-813
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agofix(hicn-light): access to field 'local' results in a dereference of a null pointer 36/37436/1
Jordan Augé [Mon, 17 Oct 2022 13:13:05 +0000 (15:13 +0200)]
fix(hicn-light): access to field 'local' results in a dereference of a null pointer

Change-Id: I7251e7024c2e0a29629df2a1a7d9b0561ec0e9a6
Ticket: HICN-812
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agofix(hicn-light): fib_contains incorrectly matches subprefixes 33/37433/2
Jordan Augé [Mon, 17 Oct 2022 09:40:32 +0000 (11:40 +0200)]
fix(hicn-light): fib_contains incorrectly matches subprefixes

Change-Id: I9575012a4980649a05a490057bf4a71675792396
Ticket: HICN-811
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agorefactor(hicn-light): cleanup towards optimizations to UDP socket face 71/37371/25
Jordan Augé [Fri, 30 Sep 2022 10:29:05 +0000 (12:29 +0200)]
refactor(hicn-light): cleanup towards optimizations to UDP socket face

Change-Id: If5bc3c4dfcdde386ac02674f3c03d32d495b2231
Ticket: HICN-771
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agoMerge "fix(hicn-light): error handling for invalid connections + local bind/remote...
Mauro Sardara [Fri, 14 Oct 2022 15:47:51 +0000 (15:47 +0000)]
Merge "fix(hicn-light): error handling for invalid connections + local bind/remote connect returning EINVAL in tests"

2 years agofix(hicn-light): error handling for invalid connections + local bind/remote connect... 23/37423/4
Jordan Augé [Fri, 14 Oct 2022 13:45:53 +0000 (15:45 +0200)]
fix(hicn-light): error handling for invalid connections + local bind/remote connect returning EINVAL in tests

Change-Id: I7398ff034ce0b96ea31bc3fa9d5ba515a5c14804
Ticket: HICN-809
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agofix(libhicnctrl): new create/face&route command fail 21/37421/2
Jordan Augé [Fri, 14 Oct 2022 08:37:53 +0000 (10:37 +0200)]
fix(libhicnctrl): new create/face&route command fail

Change-Id: I49d80a741672c4f9da75e36cc816fc53f37ac158
Ticket: HICN-808
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agotest: instrument functional tests with more logs 82/37382/37
Mauro Sardara [Tue, 11 Oct 2022 18:01:32 +0000 (20:01 +0200)]
test: instrument functional tests with more logs

Also:
 - Do not tun tests with privileged containers HICN-806
 - Refactor robot test files and config.sh

Currently some logs are missing from the robot output of the functional tests.
This patch adds them.

Ticket: HICN-805

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I9893eb356a4dd12f4bc6347b8fe02e358c9bf737

2 years agoMerge "feat(strategy): forwarding strategy for local faces Ref: HICN-802"
Michele Papalini [Tue, 11 Oct 2022 14:40:15 +0000 (14:40 +0000)]
Merge "feat(strategy): forwarding strategy for local faces Ref: HICN-802"

2 years agofeat(strategy): forwarding strategy for local faces 81/37381/4
Michele Papalini [Tue, 11 Oct 2022 08:44:22 +0000 (08:44 +0000)]
feat(strategy): forwarding strategy for local faces
Ref: HICN-802

Signed-off-by: Michele Papalini <micpapal@cisco.com>
Change-Id: I22b48d700b1b46599e570d841932d74c5ac65891

2 years agoMerge "refactor(hicn-light): cleanup and optimizations to UDP socket face"
Mauro Sardara [Fri, 7 Oct 2022 15:54:49 +0000 (15:54 +0000)]
Merge "refactor(hicn-light): cleanup and optimizations to UDP socket face"

2 years agorefactor(hicn-light): cleanup and optimizations to UDP socket face 12/37312/14
Jordan Augé [Fri, 30 Sep 2022 10:29:05 +0000 (12:29 +0200)]
refactor(hicn-light): cleanup and optimizations to UDP socket face

Ticket: HICN-771
Change-Id: Ie84dc2f61888c3fdd7b3728b2a13cacbac503d1a
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agoMerge "test: new packet format functional test with hiperf/libtransport"
Mauro Sardara [Fri, 7 Oct 2022 11:25:49 +0000 (11:25 +0000)]
Merge "test: new packet format functional test with hiperf/libtransport"

2 years agofix(libhicnctrl): connections created without interface conflict with existing listeners 69/37369/2
Jordan Augé [Fri, 7 Oct 2022 06:46:31 +0000 (08:46 +0200)]
fix(libhicnctrl): connections created without interface conflict with existing listeners

Change-Id: Idc891221b2cd149a4a5decc45c2e84da74b832df
Ticket: HICN-804
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agorefactor(libhicnctrl): strategy/set missing in VFT 60/37360/3
Jordan Augé [Wed, 5 Oct 2022 15:46:32 +0000 (17:46 +0200)]
refactor(libhicnctrl): strategy/set missing in VFT

Change-Id: I19a8dd89a1f03127d414d1c086848079ff10d0df
Ticket: HICN-803
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agotest: new packet format functional test with hiperf/libtransport 40/37340/4
Jordan Augé [Tue, 4 Oct 2022 15:41:36 +0000 (17:41 +0200)]
test: new packet format functional test with hiperf/libtransport

Change-Id: Ib6ca26e9ee1a042a72ac81da71493542e8b833e6
Ticket: HICN-774
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agofeat: support for new packet format in hicn-light 10/37210/12
Jordan Augé [Wed, 21 Sep 2022 15:11:22 +0000 (17:11 +0200)]
feat: support for new packet format in hicn-light

Ref: HICN-792

Change-Id: I3204006bd2dd2be6504c33035c6578ec0292455a
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agoMerge "fix(rtc-production-protocol): do not modify packet just after sending it"
Michele Papalini [Thu, 29 Sep 2022 13:53:38 +0000 (13:53 +0000)]
Merge "fix(rtc-production-protocol): do not modify packet just after sending it"

2 years agorefactor(io_modules): remove deprecated loopback module 02/37302/1
Mauro Sardara [Thu, 29 Sep 2022 13:32:18 +0000 (15:32 +0200)]
refactor(io_modules): remove deprecated loopback module

The loopback io-module is not used and its functionalities
are already covered by the forwarder io-module.

We should then deprecate it.

Ticket: HICN-800
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I709b8e27d00c03f009d33846076d65b0fee9a6d8

2 years agofix(rtc-production-protocol): do not modify packet just after sending it 01/37301/2
Mauro Sardara [Thu, 29 Sep 2022 11:25:26 +0000 (13:25 +0200)]
fix(rtc-production-protocol): do not modify packet just after sending it

Also:
 - Fix consumer-producer unit test
 - Enable communication of local socket using forwarder io-module

Ticket: HICN-799

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Ib245fce6d6f409255d4e91e5745a6919acb3e720

2 years agofix(memif.patch): use correct cwd in git describe 56/37256/1
Mauro Sardara [Mon, 26 Sep 2022 14:35:46 +0000 (16:35 +0200)]
fix(memif.patch): use correct cwd in git describe

If libmemif is included as subfolder, it might not
find a .git folder in the CMAKE_SOURCE_DIR.

To prevent this we need to use CMAKE_CURRENT_SOURCE_DIR,
in order to get the folder containing the CMakeLists of libmemif.

Ticket: HICN-798
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I51bb5dc94fa79d17482896bca356e60993ea39eb

2 years agoMerge "fix(stats): fix forwarder statistics retrieval"
Mauro Sardara [Mon, 26 Sep 2022 11:20:08 +0000 (11:20 +0000)]
Merge "fix(stats): fix forwarder statistics retrieval"

2 years agoMerge "fix(Makefile): fix the `make commit-template` target"
Luca Muscariello [Mon, 26 Sep 2022 08:40:23 +0000 (08:40 +0000)]
Merge "fix(Makefile): fix the `make commit-template` target"

2 years agochore(hicn-plugin): install hicn.api.json 51/37251/3
Mauro Sardara [Mon, 26 Sep 2022 08:23:04 +0000 (10:23 +0200)]
chore(hicn-plugin): install hicn.api.json

The hicn.api.json is currently used by govpp/vapi_c_gen/vapi_cpp_gen
etc. to generate the APIs to configure the hicn plugin.

It should be installed in the system as external component may require
it to generate the api, as in the govpp case
(cf https://github.com/FDio/govpp/tree/master/binapi).

The hicn.api.son file will be installed with the rest of the plugins
API (share/vpp/api/plugins)

Ticket: HICN-797
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Ief7f0010a718efd272e260552f2f2d1428fac486

2 years agofix(Makefile): fix the `make commit-template` target 50/37250/3
Mauro Sardara [Mon, 26 Sep 2022 08:09:30 +0000 (10:09 +0200)]
fix(Makefile): fix the `make commit-template` target

make commit template expects the CWD of make to be a git repository.

While this is true most of the time, there are cases where we use the
Makefile just for install dependencies
(e.g. https://github.com/FDio/hicn/blob/master/Dockerfile.dev#L22) and
in that case we do not copy the .git folder.

The solution is to check if the current make directory is actually a
.git repository.

Ticket: HICN-796
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I12912c76c9ddfa3b7a19d0faf8c84b178ca728bf
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofix(stats): fix forwarder statistics retrieval 49/37249/2
Enrico Loparco (eloparco) [Fri, 23 Sep 2022 15:27:34 +0000 (15:27 +0000)]
fix(stats): fix forwarder statistics retrieval

Ref: HICN-794
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Change-Id: I13162174f45855989727f92e96c11a1d48d710dd

2 years agofix(hicn-light): fix routing issues 33/37133/11
Jordan Augé [Fri, 16 Sep 2022 11:56:34 +0000 (13:56 +0200)]
fix(hicn-light): fix routing issues

Ref: HICN-786

Change-Id: I541c87d2d810907489ca4f59b3d7740a18c108fb
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agoMerge "fix(libhicnctrl): fix new listener validation during face or connection creation"
Mauro Sardara [Thu, 22 Sep 2022 13:47:55 +0000 (13:47 +0000)]
Merge "fix(libhicnctrl): fix new listener validation during face or connection creation"

2 years agofeat(libhicnctrl): implement face delete command 11/37211/4
Mauro Sardara [Wed, 21 Sep 2022 17:36:30 +0000 (19:36 +0200)]
feat(libhicnctrl): implement face delete command

Ticket: HICN-793
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I87f2cd5a9e077ba81cc0d92fc2ec9fb5c9ec2ff0

2 years agofix(libhicnctrl): fix new listener validation during face or connection creation 66/37166/4
Jordan Augé [Tue, 20 Sep 2022 11:27:12 +0000 (13:27 +0200)]
fix(libhicnctrl): fix new listener validation during face or connection creation

Change-Id: I5f532320fcb3fc01cd3a027af7ea5fc6425e4097
Ref: HICN-790
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2 years agoci: add commit check 01/37201/6
Mauro Sardara [Wed, 21 Sep 2022 10:24:33 +0000 (12:24 +0200)]
ci: add commit check

Check the format of commit is conventional commit compliant

Ticket: HICN-791
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I56b0884c1bb84ef29adc55a5f07eafb3763eff43

2 years agoMerge "refactor(logs): use glog instead of prints"
Mauro Sardara [Wed, 21 Sep 2022 10:20:54 +0000 (10:20 +0000)]
Merge "refactor(logs): use glog instead of prints"

2 years agorefactor(logs): use glog instead of prints 48/37148/9
Enrico Loparco (eloparco) [Mon, 19 Sep 2022 08:37:30 +0000 (08:37 +0000)]
refactor(logs): use glog instead of prints

Ref: HICN-788
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Change-Id: Iedf75e1658a335985cc2dfd7b82ae61124f2371e

2 years agoMerge "fix(packaging): set correct dependencies for hicn-light package"
Mauro Sardara [Mon, 19 Sep 2022 11:14:19 +0000 (11:14 +0000)]
Merge "fix(packaging): set correct dependencies for hicn-light package"

2 years agofix(packaging): set correct dependencies for hicn-light package 54/37154/1
Mauro Sardara [Mon, 19 Sep 2022 10:43:13 +0000 (12:43 +0200)]
fix(packaging): set correct dependencies for hicn-light package

Ref: HICN-789

Change-Id: If6cde9d9a4289defa5fe283319fd8181c4b1bf90
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofix(gcc): fix gcc warnings 39/37139/1
Enrico Loparco (eloparco) [Fri, 16 Sep 2022 14:53:05 +0000 (14:53 +0000)]
fix(gcc): fix gcc warnings

Ref: HICN-787
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Change-Id: I2a69be00382f6e5b2544b766d6ac9e1f8cae4bd6

2 years agoMerge "fix(strategy): fix memory leaks detected by valgrind in unit tests"
Mauro Sardara [Thu, 15 Sep 2022 11:06:52 +0000 (11:06 +0000)]
Merge "fix(strategy): fix memory leaks detected by valgrind in unit tests"

2 years agofix(strategy): fix memory leaks detected by valgrind in unit tests 26/37126/1
Enrico Loparco (eloparco) [Wed, 14 Sep 2022 15:57:25 +0000 (15:57 +0000)]
fix(strategy): fix memory leaks detected by valgrind in unit tests

Ref: HICN-785

Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Change-Id: I0102bdba4257b891fc6843d42e6eccc5e48687dc

2 years agoMerge "feat(hicn-ping): allow usage of random prefixes/suffixes in hicn-ping"
Mauro Sardara [Wed, 14 Sep 2022 15:23:25 +0000 (15:23 +0000)]
Merge "feat(hicn-ping): allow usage of random prefixes/suffixes in hicn-ping"

2 years agoci: correctly generate tests reports 24/37124/2
Mauro Sardara [Wed, 14 Sep 2022 14:17:22 +0000 (16:17 +0200)]
ci: correctly generate tests reports

Do not use make test to run the tests after the build,
as it overwrites the report file for each single unit tests.

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Icdc55b31c1e36b213f977b76f8518ac16c393afc

2 years agofeat(hicn-ping): allow usage of random prefixes/suffixes in hicn-ping 20/37120/2
Enrico Loparco (eloparco) [Wed, 14 Sep 2022 08:58:55 +0000 (08:58 +0000)]
feat(hicn-ping): allow usage of random prefixes/suffixes in hicn-ping

Ref: HICN-783

Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Change-Id: I41c804dd639ee15aee9619732f55e39a3baf1385

2 years agoci: group all unit test reports under same folder 17/37117/1
Mauro Sardara [Tue, 13 Sep 2022 19:08:01 +0000 (21:08 +0200)]
ci: group all unit test reports under same folder

Ref: HICN-872

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I29f34e15e3cc4e04d50de937568a4e4e76a33f33

2 years agoMerge "refactor: update INFO.yaml"
Luca Muscariello [Tue, 13 Sep 2022 12:51:44 +0000 (12:51 +0000)]
Merge "refactor: update INFO.yaml"

2 years agoMerge "fix: re-introduce BASE_IMAGE argument in docker-compose files for tests"
Mauro Sardara [Tue, 13 Sep 2022 10:58:30 +0000 (10:58 +0000)]
Merge "fix: re-introduce BASE_IMAGE argument in docker-compose files for tests"

2 years agofix: re-introduce BASE_IMAGE argument in docker-compose files for tests 03/37103/3
Mauro Sardara [Mon, 12 Sep 2022 15:05:43 +0000 (17:05 +0200)]
fix: re-introduce BASE_IMAGE argument in docker-compose files for tests

Ref: HICN-732

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I26ab4e0630d143bd429dc44318868667a155ed12

2 years agoMerge "fix(download_artifacts): use latest URLs from list retrieved from gerrit"
Angelo Mantellini [Tue, 13 Sep 2022 09:03:12 +0000 (09:03 +0000)]
Merge "fix(download_artifacts): use latest URLs from list retrieved from gerrit"

2 years agofix(download_artifacts): use latest URLs from list retrieved from gerrit 08/37108/1
Mauro Sardara [Mon, 12 Sep 2022 19:13:44 +0000 (21:13 +0200)]
fix(download_artifacts): use latest URLs from list retrieved from gerrit

Ref: HICN-781

Change-Id: Iaeaa57bb97599772611506444fcf806f17f7b9b0
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofix(interest_manifest.h): set correct type to pos variable when using it in interest_... 04/37104/1
Mauro Sardara [Mon, 12 Sep 2022 16:36:10 +0000 (18:36 +0200)]
fix(interest_manifest.h): set correct type to pos variable when using it in interest_manifest_foreach_suffix

Ref: HICN-780

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I6025c3e87d4d8cb6a1e5e1f68e856214f8aa81ed

2 years agofeat(slab): add slab allocator to store hashtables' keys 91/37091/6
Enrico Loparco (eloparco) [Thu, 8 Sep 2022 12:18:09 +0000 (12:18 +0000)]
feat(slab): add slab allocator to store hashtables' keys

Ref: HICN-777
Signed-off-by: Enrico Loparco (eloparco) <eloparco@cisco.com>
Change-Id: Ibbd5c5e73cfd2f6adf757f7248dff8a933515d21

2 years agorefactor: update INFO.yaml 00/37100/3
Olivier Roques [Mon, 12 Sep 2022 07:34:37 +0000 (07:34 +0000)]
refactor: update INFO.yaml

Ref: HICN-779

Signed-off-by: Olivier Roques <oroques+fdio@cisco.com>
Change-Id: I3b1e93067bd005c29cf6d0c40867288bd5c5d04e

2 years agofix(sonar): make sonarqube happy 70/37070/2
Mauro Sardara [Fri, 2 Sep 2022 14:34:36 +0000 (14:34 +0000)]
fix(sonar): make sonarqube happy

Ref: HICN-766 HICN-767 HICN-764 HICN-762 HICN-743 HICN-759 HICN-760 HICN-758 HICN-761 HICN-756

Change-Id: Ic2accf6b6771c7a78d2b22d9bdb8e5a5be9ead8a
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofix: correct bugs in interest processing pipeline 65/37065/1
Mauro Sardara [Fri, 2 Sep 2022 11:17:49 +0000 (11:17 +0000)]
fix: correct bugs in interest processing pipeline

ResHHICN-748

Change-Id: I8e55932fda2c77891f7b2aaf7fa5d7087f1aa2bf
Signed-off-by: Mauro Sardara <msardara@cisco.com>
2 years agofeat(hicn-plugin): interest manifest 27/37027/18
Mauro Sardara [Fri, 26 Aug 2022 15:02:12 +0000 (15:02 +0000)]
feat(hicn-plugin): interest manifest

Ref: HICN-748

Change-Id: Ie403de53a93094dca997cec379db6f5d3ce8e6be
Signed-off-by: Mauro Sardara <msardara@cisco.com>