Coder Social home page Coder Social logo

libfc's People

Contributors

andreadipietro avatar britram avatar felipehuici avatar ndheureuse avatar sten69 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

groud baloc alexk99

libfc's Issues

libfc::PlacementExporter should allow changing of observation domain

Since fcold::SwitchImp will carry forward some information from the V9 observation domain analogue, we'll need a call in PlacementExporter that ensures a particular observation domain (and if the present message is not empty and the observation domain is different, flushes the present message to create a new one with the new observation domain)

Netflow V9 support

Add support for (read-only) access Netflow V9 data in both compressed (.bz2) and uncompressed files. This will require tweaks to Transcoder.cpp to read V9-specific structures, as well as to Mbuf.cpp for deframing and decoding.

exception/assert review

Review the codebase to make sure the exception classes in exceptions/ get used properly; logic errors that are really programming bugs should get assert()ed instead.

Add event listener for logging

All logging of 5101 SHOULD LOG events should be replaced with a callback model, where client code can log or otherwise react to events (new session, end session, out of sequence, etc.); look at how this is done in ripfix.

Add SCTP support

This involves new collectors, exporters, a stream-selection interface, and addition of stream selection to sequence number tracking in Session.cpp.

Add template withdrawal, expiration, and retransmission support

Template withdrawal as in section 8.1 and retransmission/expiry as in section 8.4 for RFC5101bis are not supported; add these both to export as well as collection interfaces. It is acceptable to require UDP exporters to make periodic calls to a retransmission check process, as well as for UDP collectors to an expiry check process.

free(): invalid pointer error in libfc

Hi,
I am using libfc implementation in my project. I am facing an issue "free(): invalid pointer" error while running the code. I am doing
int main()
{
InfoModel& model = InfoModel::instance();
PlacementTemplate* my_flow_template = new PlacementTemplate();
u_int32_t inOctets = 0, outOctets = 0;
model.default5103();
model.add("inOctets(x/y1)[4]");
model.add("outOctets(x/y2)[4]");
FileExportDestination des(sockFd);
PlacementExporter exp(des, 0x1623);

my_flow_template->register_placement(model.lookupIE("inOctets"),
&inOctets, 4);
my_flow_template->register_placement(model.lookupIE("outOctets"),
&outOctets, 4);
exp.place_values(my_flow_template);
inOctets = 4;
outOctets = 5;
exp.place_values(my_flow_template);//multiple data records in a single template
exp.flush();
delete my_flow_template; // crashes here
return 0;
}
While debugging with gdb, the backtrace is pointing to the line "PlacementTemplate::~PlacementTemplate() {" and not in "delete[] buf;"

Can someone help to resolve this?

Add fccollect

Add a generic IPFIX reader/printer (a la ripcollect); this will also allow reader testing on platforms not supporting the Boost unit testing framework.

Add TLS support

Add TLS / DTLS support (for interop testing); this will likely require new Collector and Exporter subclasses.

CursorError on certain combination of IEs

Put these into a message:

interfaceName 'eth'
ingressInterface 0x12345678
octetDeltaCount 0x1020304050607080

and libfc will die:

[tik40x:build]$ LD_LIBRARY_PATH=/lib:/lib64 ./fctest --run_test=Messages/Regressions
Running 1 test case...
unknown location(0): fatal error in "Message265": std::exception: CursorError: end of buffer caching offsets: input data not IPFIX?
/home/neuhaust/libfc/test/TestMessages.cpp(8708): last checkpoint

*** 1 failure detected in test suite "FC Test"

This test is run as part of the Messages/Regressions test suite.

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.