Skip to content

Commit 4c437d1

Browse files
committed
Update ndpi api
1 parent bca1c04 commit 4c437d1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

userland/nbpf/nbpftest.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,17 +351,13 @@ void fiberblaze_dump_rules(nbpf_rule_list_item_t *pun) {
351351

352352
/* *********************************************************** */
353353

354-
#ifdef HAVE_NDPI
354+
#ifdef HAVE_NDPI
355355
void init_ndpi_mod() {
356-
NDPI_PROTOCOL_BITMASK all;
357-
358356
ndpi_mod = ndpi_init_detection_module(NULL);
359357

360358
if (ndpi_mod == NULL)
361359
return;
362360

363-
NDPI_BITMASK_SET_ALL(all);
364-
ndpi_set_protocol_detection_bitmask2(ndpi_mod, &all);
365361
ndpi_finalize_initialization(ndpi_mod);
366362
}
367363

0 commit comments

Comments
 (0)