Giter Club home page Giter Club logo

Comments (8)

phaag avatar phaag commented on May 24, 2024

Implemented in master tree. Please verify.

from nfdump.

bdreisbach avatar bdreisbach commented on May 24, 2024

is there a trick to get master to compile on linux? ive tried centos6, centos7, and ubuntu 14.04 LTS. i get this error:

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -ggdb -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT nffile.lo -MD -MP -MF .deps/nffile.Tpo -c nffile.c -fPIC -DPIC -o .libs/nffile.o
nffile.c: In function ‘NewFile’:
nffile.c:642: error: ‘for’ loop initial declarations are only allowed in C99 mode
nffile.c:642: note: use option -std=c99 or -std=gnu99 to compile your code
nffile.c: In function ‘DisposeFile’:
nffile.c:667: error: ‘for’ loop initial declarations are only allowed in C99 mode
make[3]: *** [nffile.lo] Error 1

surprisingly it compiled fine on macOS.

from nfdump.

bdreisbach avatar bdreisbach commented on May 24, 2024

seems that older gcc cannot compile master after 3bf7296
installed devtools7 on my centos machine and it compiled.

i am still verifying that the fix for ipfix sampling is working. will get back to you this week.

from nfdump.

phaag avatar phaag commented on May 24, 2024

Compile issue fixed. clang and gcc do not agree on local variable declarations.

from nfdump.

bdreisbach avatar bdreisbach commented on May 24, 2024

cool. the ipfix sampling does seem to be working. thanks!

from nfdump.

gabrielmocan avatar gabrielmocan commented on May 24, 2024

I've tested this fix with a Juniper MX104 exporting at 1:100 ratio using IPFIX template but have no sucess. Flows are still showing as "Unsampled" when nfdump'd using raw output.

pcap attached bellow. I think sampling information is available in packets 623 and 4410.

mx104_ipfix.zip

from nfdump.

phaag avatar phaag commented on May 24, 2024

Juniper does not export a sampling algorithm. nfdump required an algorithm in order to recognise sampling correctly.
I fixed that as the algorithm is not really used internally.

from nfdump.

gabrielmocan avatar gabrielmocan commented on May 24, 2024

I've just tested this fix. Sampling factor is properly being applied now. Thanks!

from nfdump.

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.