Coder Social home page Coder Social logo

netgroup-polito / netbee Goto Github PK

View Code? Open in Web Editor NEW
20.0 21.0 8.0 3.14 MB

Advanced library for packet processing. Includes NetVM, NetPDL, and NetPFL.

License: Other

Shell 0.17% C 56.52% C++ 40.89% Awk 0.06% CMake 0.58% Perl 0.05% Yacc 1.11% Lex 0.15% Python 0.18% Assembly 0.27% Makefile 0.01%
packet-filtering packet-filter netpdl netpbm network pfsa

netbee's People

Contributors

ivanocerrato avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netbee's Issues

Compiling Error

@name29 While compiling netbee on my Ubuntu system, with all dependencies installed (followed the wiki guide throughly), I get an error while making the source:

While running the cmake command

# cd netbee/src
# cmake .
# make

I get the following error:

home/pradeep/netbee/src/nbpflcompiler/hashtable.h:229:53: error: no matching function for call to ‘make_pair(std::__cxx11::basic_string<char>&, PFLBasicBlock*&)’
   result = m_HashTable.insert(make_pair<TKey, TItem>(key, item));
nbpflcompiler/CMakeFiles/nbpflcompiler.dir/build.make:194: recipe for target 'nbpflcompiler/CMakeFiles/nbpflcompiler.dir/pflcfg.cpp.o' failed
make[2]: *** [nbpflcompiler/CMakeFiles/nbpflcompiler.dir/pflcfg.cpp.o] Error 1
CMakeFiles/Makefile2:373: recipe for target 'nbpflcompiler/CMakeFiles/nbpflcompiler.dir/all' failed
make[1]: *** [nbpflcompiler/CMakeFiles/nbpflcompiler.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

any suggestion on what I could be doing wrong?

Thanks

provide an install target

I've packaged netbee for my distribution (www.nixos.org). It works but here is some feedback that could help future packagers and/or are nice to have:

  • the generated Makefiles have no install target which is unusual. The install.sh script doesn't alliow to override the destination install folder. Also it aborts if user is root which is annoying if I install it as a user. The nixos package manager for instance doesn't run as root so I had to replicate the install instructions within the package.
  • would be nice to have the pkgconfig files generated
  • and also to support out of tree builds. Most cmake projects I know create a build folder and build the project there but it doesn't work with netbee

Ubuntu 18.04

'libnbee.so' is located in netbee/bin even that it cannot to find it. And Ubuntu 18.04 is not supported operating system.

Error initializing the NetBee Library; Cannot locate the 'libnbee.so' shared library; this Operating System is not supported.

tools compile error: no match for ‘operator!=’

While compiling tools after main libs, I've catched the following:

$ make
...
~/netbee/tools/nbextractor/anonimize-ip.cpp:74:27: error: no match for ‘operator!=’ (operand types are ‘std::basic_istream<char>’ and ‘long int’)
  while (getline(fp, line) != NULL)
...
nbextractor/CMakeFiles/nbextractor.dir/build.make:86: recipe for target 'nbextractor/CMakeFiles/nbextractor.dir/anonimize-ip.cpp.o' failed
make[2]: *** [nbextractor/CMakeFiles/nbextractor.dir/anonimize-ip.cpp.o] Error 1
CMakeFiles/Makefile2:213: recipe for target 'nbextractor/CMakeFiles/nbextractor.dir/all' failed
make[1]: *** [nbextractor/CMakeFiles/nbextractor.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I may be mistaken, but != operator cannot be used here with NULL. It may be connected with C++11 upgrade. Reference to a similar problem: https://stackoverflow.com/a/41871487

So then, my hotfix is to change file tools/nbextractor/anonimize-ip.cpp: line 74:

while (getline(fp, line) != NULL)

to

while (getline(fp, line))

and it works for me now.

I'm not aware about the whole code, so I'm not creating a pull request for that.

My sys properties:

  • Ubuntu 18.08 Linux 4.15.0-48-generic
  • g++ (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0
  • cmake version 3.10.2
  • GNU Make 4.1 Built for x86_64-pc-linux-gnu

How to install netbee on ARM?

I want to use netbee in Raspberry Pi, but I can't finish Compiling net bee. There seems too many things used in x86 and not used in ARM. Is there any good solutions? Thanks!

fail to download the NetPDL database

download the most updated NetPDL database, and save it in the current folder
---> fail to download due to the server is down or not exist. 404 not founded.

Compilation on Windows 7 using Cygwin

Make fails with error when attempting to compile on Windows 7 using Cygwin.

Reproduction steps:
Follow instruction steps under heading "How to compile NetBee" in README.
Specifically:

  • Clone netbee repository
  • Install WinPCap
  • Copy all headers and libraries from directory /cygdrive/c/WpdPack/Include/ to directory /usr/include/
  • Execute command cmake . (successful)
  • Execute make

Encountered the following error on make:

/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lpcap
collect2: error: ld returned 1 exit status
make[2]: *** [nbnetvm/CMakeFiles/nbnetvm.dir/build.make:1444: nbnetvm/cygnbnetvm.dll] Error 1
make[1]: *** [CMakeFiles/Makefile2:154: nbnetvm/CMakeFiles/nbnetvm.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Expected behavior:
successful execution of make producing binaries with no errors

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.