Giter VIP home page Giter VIP logo

libnids's People

Contributors

f-s-p avatar fabianfreyer avatar malwarefrank avatar mraoul avatar thesamesam avatar wxsbsd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

libnids's Issues

Unnecessary(?) SONAME change

Commit cd888d8 changed SONAME but at a quick check, it doesn't seem like this was necessary. This breaks compatibility with applications already linked against older libnids and forces them to be rebuilt.

Did the ABI of libnids actually change since the last release or was the SONAME just accidentally changed (here)?

what's the problem?

[root@centos65 home]# g++ test.cpp -lpcap -lnet -lnids -lgthread-2.0
test.cpp: 在函数‘int main()’中:
test.cpp:195:44: 错误:从类型‘void ()(tcp_stream, void**)’到类型‘void*’的转换无效 [-fpermissive]
nids_register_tcp(tcp_protocol_callback);
^
In file included from test.cpp:1:0:
/usr/local/include/nids.h:149:6: 附注:initializing argument 1 of ‘void nids_register_tcp(void*)’
void nids_register_tcp (void (*));

cout bugs

#include
#include
#include <stdio.h>

extern "C" {
#include <nids.h>
}

void tcp_callback(struct tcp_stream * s, void ** x)
{
// never print
std::cout << "tcp callback 1" << std::endl;

// ok
printf("tcp callback 2\n");

}

int main()
{
if (!nids_init ())
{
std::cout << "nids init error: " << nids_errbuf << std::endl;
return 1;
}
std::cout << "init ok" << std::endl;
nids_register_tcp ((void *)tcp_callback);
nids_run ();
return 0;
}

why std::cout never print,but printf works in tcp_callback.

Corrupted data in payload

I was wondering why packets' payload is stored as a char pointer, Would not that corrupt data because of the special characters which could not be represented as a char? I tried to print data or write it to file, and part of the data is corrupted.

Libnids多线程

Libnids有多线程的模式,我看源码是通过一个异步的线程安全队列来实现的,libpcap 捕获到的流量存入异步队列,然后有另外的线程从异步队列中进行流量获取进行流量的还原,但是我发现源码中流量捕获与流量还原都是在单线程中完成的,难道Libnids的多线程说的只是流量捕获和流量还原不在同一个线程吗?

Test criteria

Using this issue to brainstorm packet processing library test cases

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.