Code Monkey home page Code Monkey logo

Building modules, stage 2. MODPOST 1 modules WARNING: "__aeabi_uldivmod" [/home/xw/workspace/github/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3_glibc_eabi/linux-mvebu_cortexa9/ndpi-netfilter-a360566-2.6/ndpi-netfilter/src/xt_ndpi.ko] undefined! about ndpi HOT 3 CLOSED

vel21ripn avatar vel21ripn commented on July 21, 2024
Building modules, stage 2. MODPOST 1 modules WARNING: "__aeabi_uldivmod" [/home/xw/workspace/github/openwrt-master/build_dir/target-arm_cortex-a9+vfpv3_glibc_eabi/linux-mvebu_cortexa9/ndpi-netfilter-a360566-2.6/ndpi-netfilter/src/xt_ndpi.ko] undefined!

from ndpi.

Comments (3)

panda-mute avatar panda-mute commented on July 21, 2024
diff --git a/src/lib/third_party/src/lruc.c b/src/lib/third_party/src/lruc.c
index a63ed99..b450fde 100644
--- a/src/lib/third_party/src/lruc.c
+++ b/src/lib/third_party/src/lruc.c
@@ -156,10 +156,11 @@ lruc *lruc_new(uint64_t cache_size, uint32_t average_length) {
     perror("LRU Cache unable to create cache object");
     return NULL;
   }
-  cache->hash_table_size      = cache_size / average_length;
   cache->average_item_length  = average_length;
   cache->free_memory          = cache_size;
   cache->total_memory         = cache_size;
+  do_div(cache_size, average_length);
+  cache->hash_table_size      = cache_size;
 #ifndef __KERNEL__
   cache->seed                 = time(NULL);
 #else

from ndpi.

vel21ripn avatar vel21ripn commented on July 21, 2024

Thanks! Fixed in 23e3cbd

from ndpi.

panda-mute avatar panda-mute commented on July 21, 2024

Got it, thanks.

from ndpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.