Commit Graph

1287 Commits (8cc87025ffd06c2d685e1dee5eb2a8876b493887)

Author SHA1 Message Date
Nicholas Brown a1049d0961 fix sql module
fixes #24
2018-03-13 10:59:17 +00:00
Oliver Gasser 3d57472fcc
Merge pull request #103 from mvonmaltitz/master
Add vagrant VM with automatic vermont setup
2018-02-26 11:17:23 +01:00
Marcel von Maltitz a5d7c88381 Change network to public 2018-02-23 13:15:01 +01:00
Marcel von Maltitz c8ec4b2529 Update apt repository 2018-02-23 12:19:40 +01:00
Marcel von Maltitz 54323a824f Extend ansible setup 2018-02-23 12:16:35 +01:00
Oliver Gasser bb0f4dc54d Debianize 2018-02-23 12:16:35 +01:00
Marcel von Maltitz 357cf6e4ba Update README 2018-02-23 12:16:35 +01:00
Marcel von Maltitz d171c861c8 Add vagrant VM with automatic vermont setup 2018-02-23 12:16:35 +01:00
Oliver Gasser be70d52a3b
Merge pull request #107 from nickbroon/cleaner_logging
Cleaner logging
2018-02-14 14:50:39 +01:00
Nicholas Brown c0b4e79b11 factor out a common function 2018-02-14 11:02:20 +00:00
Nicholas Brown cebc6854fa Remove verbose debug messages from busy poll loops
These are extremely noisy as they are called from busy polling loops,
and don't really display any internal state, just that the loop is
looping.
2018-02-14 11:02:20 +00:00
Nicholas Brown 7355b6fb3e Remove unused timout code 2018-02-14 11:02:20 +00:00
Oliver Gasser fd68332ebb
Merge pull request #106 from nickbroon/debug_code_build
Debug code build
2018-02-13 11:25:44 +01:00
Nicholas Brown 55f190a926 Add debug builds to Travis matrix 2018-02-13 10:04:56 +00:00
Nicholas Brown cb5d6ace68 Parameterize cmake build type in travis matrix 2018-02-13 10:04:56 +00:00
Nicholas Brown 08b80aa00d Fix printf specifiers for debug code
`cmake -DCMAKE_BUILD_TYPE=Debug` now builds
2018-02-13 10:04:56 +00:00
Oliver Gasser d4e3f54fe4
Merge pull request #104 from nickbroon/syslog_tidy
logging tidy up
2018-02-13 10:07:37 +01:00
Nicholas Brown 5c3e0d8ab2 Consolidate DEBUG logging macros
A quick grep revealed that only LOG_INFO and LOG_DEBUG were being
used. So simply replace all these with simpler macros using sed.
This should allow a future step of deciding which, if any, of these
should be moved from behind the DEBUG flag to being logged all the
time at these log levels. (Currently it's only possible to understand
issues with the packet/flow code paths with DEBUG enabled)
2018-02-12 22:27:24 +00:00
Nicholas Brown a87e47a4b7 Just use DPRINTF when level is LOG_INFO
DPRINTF uses LOG_INFO, so there is no need to use DPRINTFL
2018-02-12 22:27:24 +00:00
Nicholas Brown ca8539500a Just use LOG_* instead of MSG_*
Just a used grep/sed to replace them.
The order of MSG_ levels was just weird.
2018-02-12 22:27:24 +00:00
Nicholas Brown 065b3f5bb5 Use LOG_UPTO for traditional sylog behaviour 2018-02-12 22:27:24 +00:00
Oliver Gasser c85a13942c
Merge pull request #77 from tumi8/basiclist
Add basicList implementation
2018-01-30 14:47:06 +01:00
Emanuel Vintila c199f3080e renamed 'listPtr' to 'listPtrPtr' 2018-01-29 13:46:03 +01:00
Oliver Gasser 07fecebea2
Merge pull request #101 from tumi8/solve_potential_buffer_overflow_bugs
Solve potential buffer overflow bugs
2018-01-21 13:39:32 +01:00
Emanuel Vintila 338f70f8ae replaced msg with fprintf (msg not defined for C) 2018-01-21 13:05:27 +01:00
Emanuel Vintila a244acb732 updates after review 2018-01-21 12:56:19 +01:00
Oliver Gasser ad428be2a1
Merge pull request #102 from tumi8/ipfixprinter-remove_destructor_exception
replaced the exception in the destructor with a msg
2018-01-20 23:20:50 +01:00
Emanuel Vintila 092bb8b4cf replaced the exception in the destructor with a msg 2018-01-20 11:12:46 +01:00
Emanuel Vintila 712fd0be43 prevent memcpy from putting garbage in 'name' when threadName is not given or when it is shorter than THREAD_NAME_LENGTH 2018-01-19 18:22:51 +01:00
Emanuel Vintila 53557362ee prevent out of bounds array accesses 2018-01-19 16:16:44 +01:00
Oliver Gasser 7dc24f3725 Fix format specifier bugs 2018-01-17 17:21:28 +01:00
Oliver Gasser 37c14dd16f
Merge pull request #92 from nickbroon/Werror
Use -Werror to fail the build on compiler warnings
2018-01-17 15:19:02 +01:00
Nicholas Brown 6f4df87bc9 Use -Werror to fail the build on compiler warnings
Use make -k so that all warnings are ouput if there are any.
This is the future :-)
2018-01-17 11:57:55 +00:00
Nicholas Brown 9607750c06 fall throught attribute added to ipfixlolib 2018-01-17 11:57:55 +00:00
Oliver Gasser 3b964fa01b
Merge pull request #100 from tumi8/prepare_code_for_Werror
Prepare code for werror
2018-01-16 16:43:49 +01:00
Oliver Gasser 8ae679bad8
Merge pull request #99 from tumi8/update_travis_compiler_versions
Update travis compiler versions
2018-01-16 16:37:05 +01:00
Emanuel Vintila 8ad219b1da memcopy directly into &seq, where possible.where not, use sizeof(hu32_data) instead of sizeof(uint32_t) 2018-01-16 16:12:48 +01:00
Emanuel Vintila a2bc9b14c9 updated travis config to use newer compiler versions 2018-01-16 16:02:15 +01:00
Emanuel Vintila ec67dc43a2 solved warnings for gcc-4 (breaking of strict-aliasing rules) 2018-01-15 17:39:14 +01:00
Emanuel Vintila 725d630672 solved 'dereferencing type-punned pointer will break strict-aliasing rules' by using memcpy instead of forcing a cast to u32 2018-01-14 21:36:03 +01:00
Emanuel Vintila 38db9b74e8 solved 'dereferencing type-punned pointer will break strict-aliasing rules' by creating a new printer helper method for byte arrays 2018-01-14 21:32:56 +01:00
Emanuel Vintila be3c2914fc solved 'empty expression' warnings 2018-01-14 21:28:45 +01:00
Emanuel Vintila 14474a8bd2 fallthrough: handle GNU compiler older than 7 2018-01-14 21:21:35 +01:00
Oliver Gasser 607ce0c889
Merge pull request #98 from tumi8/solve_scan-build_bugs
Solve scan build bugs
2018-01-08 15:11:34 +01:00
Emanuel Vintila c590ba3ba8 fixed indentation according to the new vermont coding standard 2018-01-08 13:57:11 +01:00
Emanuel Vintila 8f4f94d402 allow only 'ordered' semantics for basicList in the packetAggregator configuration 2018-01-08 08:34:46 +01:00
Emanuel Vintila 482fcb2cd4 new code must now adhere to the same coding standard 2018-01-07 10:11:46 +01:00
Emanuel Vintila 932535d470 made clear that 'elem = _elem' happens on the else branch when checking against null 2018-01-05 17:18:49 +01:00
Emanuel Vintila 17f9626937 fixed indentation 2018-01-05 16:17:20 +01:00
Emanuel Vintila 9b244311b7 'n' was no longer used after the value of 'N' was assigned to it 2018-01-05 14:28:27 +01:00