diff options
author | Ravi Kerur <ravi.kerur@viasat.com> | 2019-09-23 17:06:43 -0700 |
---|---|---|
committer | Ravi Kerur <ravi.kerur@viasat.com> | 2019-09-23 17:06:43 -0700 |
commit | e29032085df18b034fe9e7b036869f187187ea4b (patch) | |
tree | c874e9b7f308de3658deee048f916ad6c66042fd /python/ndpi_wrap.c | |
parent | e8d501158e07af7dbe67cc795d64532031a4f1d4 (diff) | |
parent | 19dbcaa3a9653f1e910db332572dd86ba3963b46 (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into ndpi_icmp
Diffstat (limited to 'python/ndpi_wrap.c')
-rw-r--r-- | python/ndpi_wrap.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/python/ndpi_wrap.c b/python/ndpi_wrap.c index c8f7fdd96..7a052ddff 100644 --- a/python/ndpi_wrap.c +++ b/python/ndpi_wrap.c @@ -23,33 +23,38 @@ #include "ndpi_main.h" int ndpi_wrap_get_api_version(){ - return NDPI_API_VERSION; + return NDPI_API_VERSION; } int ndpi_wrap_ndpi_num_fds_bits(){ - return NDPI_NUM_FDS_BITS; + return NDPI_NUM_FDS_BITS; } int ndpi_wrap_num_custom_categories(){ - return NUM_CUSTOM_CATEGORIES; + return NUM_CUSTOM_CATEGORIES; } int ndpi_wrap_custom_category_label_len(){ - return CUSTOM_CATEGORY_LABEL_LEN; + return CUSTOM_CATEGORY_LABEL_LEN; } int ndpi_wrap_ndpi_max_supported_protocols(){ - return NDPI_MAX_SUPPORTED_PROTOCOLS; + return NDPI_MAX_SUPPORTED_PROTOCOLS; } int ndpi_wrap_ndpi_max_num_custom_protocols(){ - return NDPI_MAX_NUM_CUSTOM_PROTOCOLS; + return NDPI_MAX_NUM_CUSTOM_PROTOCOLS; } int ndpi_wrap_ndpi_procol_size(){ - return NDPI_PROTOCOL_SIZE; + return NDPI_PROTOCOL_SIZE; } void ndpi_wrap_NDPI_BITMASK_SET_ALL(NDPI_PROTOCOL_BITMASK* bitmask){ - NDPI_ONE(bitmask); -}
\ No newline at end of file + NDPI_ONE(bitmask); +} + +void dummy() { + /* Dummy call just to cause linker to include the ndpi library */ + ndpi_tfind(NULL, NULL, NULL); +} |