ironsavior / phlegethon Goto Github PK
View Code? Open in Web Editor NEWDynamically manage firewall rules based on peer activity
License: GNU General Public License v3.0
Dynamically manage firewall rules based on peer activity
License: GNU General Public License v3.0
On Windows, boost::this_thread::sleep_for()
results in the thread sleeping for about double the desired time. This bug should be fixed in Boost version 1.54.
Just in case we don't like it.
Write routines to construct ip_header_t and udp_header_t objects from input streams.
These objects are currently constructed by copy-constructor by casting a pointer to an array as the object to be copied. Doing it this way requires that the structures be packed (#pragma pack 1), which is less than ideal. This is a very C-ish/hackish method that is perhaps not completely appropriate for a C++ program.
I'm having trouble making this build on Windows seemingly due to inclusion of <pcap.h>
in C++11 source files. It may be a reasonable workaround to reduce all contact with pcap.h down to just 1 source file and perhaps write that file to be compatible with C++03.
This is also an opportunity to rework the callback system so that I don't have to pass a pcap_pkthdr struct, but instead a more C++ish type so we can take some boilerplate time calculation code out of the packet handler.
standard libs are probably not present for systems without the dev environment.
Allow users to omit the source host address and infer the addresses from the interface specification.
That would be pretty rad.
Interface names on Windows are ridiculous and defy memorization. There should be a command line option to get a list of them or maybe the ability to choose one.
Stop being lazy. This needs to be done for better build automation and to keep from polluting source files that include my headers with symbols from C headers.
A few key points:
peer_data_t
should not derive from std::map
.There's no good reason the Net::load<>
functions should be implemented as templates. Think about reworking the namespaces so this makes more sense. Do these functions more rightly belong to the libpcap
namespace rather than the Net
namespace? Should these functions be implemented as static methods or constructors for the structs, directly?
Need to ponder this a while.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.