aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-08-24 16:30:58 +0200
committerLuca Deri <deri@ntop.org>2024-08-24 16:30:58 +0200
commit53a6bae365618f9b301cf51e5f3f9d5450b0e280 (patch)
tree922e0791f71403d03d90fa2958e102fa2a727bfd /tests/unit
parent8894ebc76f4e3d928dd3c2e32a0470149ce90550 (diff)
Introduced ndpi_master_app_protocol typedef
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/unit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit.c b/tests/unit/unit.c
index 3ad95e229..8e797a3b1 100644
--- a/tests/unit/unit.c
+++ b/tests/unit/unit.c
@@ -282,8 +282,8 @@ int serializeProtoUnitTest(void)
}
assert(ndpi_init_serializer(&serializer, fmt) != -1);
- ndpi_protocol ndpi_proto = { .master_protocol = NDPI_PROTOCOL_TLS,
- .app_protocol = NDPI_PROTOCOL_FACEBOOK,
+ ndpi_protocol ndpi_proto = { .proto.master_protocol = NDPI_PROTOCOL_TLS,
+ .proto.app_protocol = NDPI_PROTOCOL_FACEBOOK,
.protocol_by_ip = NDPI_PROTOCOL_FACEBOOK,
.category = NDPI_PROTOCOL_CATEGORY_SOCIAL_NETWORK };
ndpi_risk risks = 0;