aboutsummaryrefslogtreecommitdiff
path: root/net/nmsg
Commit message (Collapse)AuthorAgeFilesLines
* One more small cleanup, forgotten yesterday.Mathieu Arnold2021-04-071-1/+0
| | | | Reported by: lwhsu
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
|
* Upgrade net/nmsg to version 0.15.1:Don Lewis2020-01-302-4/+4
| | | | | | | | | | | | | | | | | | * Fix output stats collection. * Plugins now found by default at $libdir/nmsg instead of lib/nmsg. This fixes problem where plugins were not found with recent Debian packages built with --libdir configure option (used to install libraries in architecture specific directory). And ./configure --with-plugindir renamed to --with-pluginsdir. * pkgconfig also depend on libprotobuf-c headers (for third-party uses of libnmsg with pkgconfig). Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=524626
* Upgrade net/nmsg to version 0.15.0:Don Lewis2019-11-063-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added runtime-tunable environment variables NMSG_GRALIAS_FILE and NMSG_OPALIAS_FILE. * Added compile-time version info to API: NMSG_LIBRARY_VERSION and MSG_LIBRARY_VERSION_NUMBER; and runtime functions: nmsg_get_version() and nmsg_get_version_number(). * Ensure nmsg_sock_parse_sockspec() returns an error if an invalid port range is supplied. * Fixed nmsg_io filtering default policy logic. (Previously, if the final filter returned "declined", that result was returned in place of the configured default policy.) * Make nmsg_output_set_buffered() able to unbuffer nmsg_output_type_json objects. * Fixed many compiler check warnings. * Added multiple unit tests. * Fix bugs caught by static analysis (cppcheck). * For protobuf compatibility, renamed all protobuf-c generated enum names and types, although the wire format of the messages remains the same. (Thank you to Chris Morrow.) Compatibility definitions added to nmsg/compat.h to allow existing code to continue using the old names. * Miscellaneous documentation improvements. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=516861
* Upgrade net/nmsg to version 0.14.0:Don Lewis2019-10-152-5/+4
| | | | | | | | | | | * Add periodic stats output to nmsgtool. * Add .json suffix to json files output by nmsgtool. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=514487
* Bump PORTREVSION of net/axa and net/nmsg for devel/protobuf-c versionDon Lewis2019-06-261-1/+1
| | | | | | | | | | upgrade. These two ports bake the value of either PROTOBUF_C_VERSION or PROTOBUF_C_VERSION_NUMBER into their binaries. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=505179
* Add DOCS options to ports that should have one.Mathieu Arnold2018-09-101-1/+2
| | | | | | | | | | | Also various fixes related to said option. PR: 230864 Submitted by: mat exp-runs by: antoine Notes: svn path=/head/; revision=479406
* Bump PORTREVISION of these devel/protobuf-c because they compile the valuesDon Lewis2018-08-151-0/+1
| | | | | | | | | of PROTOBUF_C_VERSION or PROTOBUF_C_VERSION_NUMBER into their code. Differential Revision: Farsight Security, Inc. Notes: svn path=/head/; revision=477243
* Upgrade net/nmsg to version 0.13.2.Don Lewis2018-02-012-5/+5
| | | | | | | | | | | | | * Restore terminating NUL character in string fields loaded from JSON. * Correct display of string fields with missing NUL terminator. * Improvements to NUL-termination test cases. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=460650
* Upgrade net/nmsg to version 0.13.1:Don Lewis2017-10-262-4/+4
| | | | | | | | | | | | | * Fix crash when formatting empty string fields as JSON. * Correct display of empty string fields in presentation output. * Remove terminating NUL character in string fields loaded from JSON. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=452910
* Upgrade net/nmsg to version 0.13.0:Don Lewis2017-02-272-4/+4
| | | | | | | | | | | | | | | * Sanitize JSON UTF-8 output. Invalid UTF-8 sequences are replaced with the replacement code point U+FFFD. * Run msgmod 'load' method when loading a message from raw payload or duplicating an existing message. * dnstap msgmod: format query_zone in human-readable format. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=434988
* Upgrade net/nmsg to version 0.12.1:Don Lewis2016-12-053-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nmsg (0.12.1) * Revert "Don't leak duplicate XS endpoint string in parsing code." -- Farsight Security, Inc. <software@fsi.io> Mon, 28 Nov 2016 18:52:41 +0000 nmsg (0.12.0) * Add nmsg_message_get_payload_size() to return the size of the serialized payload object. * Add dnstap message module support. dnstap is a flexible, structured event replication format for DNS software. * nmsg_output_set_rate: Do not destroy existing rate as another output may be using it. Note the changed behavior: The caller of nmsg_output_set_rate() is responsible for reclaiming unused nmsg_rate_t objects with nmsg_rate_destroy(). * Use output lock in nmsg_output_set_rate(). * Fix sizeof operands in nmsg_chalias_lookup() memory allocations. * Fix potential uninitialized filter result in io_run_filters(). * Replace enum-exhaustive if/else with switch for msgmod. * Fix potential nmsg_pres_to_payload crash from unknown fields in msgmod. * Remove unnecessary initializations in strbuf code. * Add missing cleanup in nmsg_pcap_input_setfilter_raw error returns. * Refactor io loop close check to remove unused return value. * Fix ignored return value in file input. * Don't leak duplicate XS endpoint string in parsing code * Fix problems with nmsg_output_set_rate(). It destroys a previously provided nmsg_rate. If that rate object is shared with another output, activity on the other output will access freed memory formerly associated with that nmsg_rate. It does not synchronize setting the nmsg_rate object. This can lead to race conditions, e.g. if the rate object is set and the old one destroyed while an output is in nmsg_rate_sleep(). -- Farsight Security, Inc. <software@fsi.io> Wed, Nov 23 2016 21:15:55 +0000 Consistently use %%DATADIR%% in pkg_plist. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=427832
* Upgrade nmsg to version 0.11.2:Don Lewis2016-04-302-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * Fix a build failure when building without YAJL support (#47, #49). * dnsqr: Also perform query name filtering for UDP_UNSOLICITED_RESPONSE messages (#48). * dnsqr: Remove 'icmp' from the generated BPF (#20, #50). * dnsqr: Only set 'resolver_address_zeroed' field if addresses were zeroed from the underlying query/response packet fields (#51). Resolver address zeroing only works for the UDP message types, so we were incorrectly setting the 'resolver_address_zeroed' field for TCP and ICMP messages. * nmsg-dnsqr2pcap: Also dump ICMP and TCP packets (#52). -- Robert Edmonds <edmonds@fsi.io> Fri, 29 Apr 2016 13:37:40 -0400 Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=414331
* Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.Mathieu Arnold2016-04-011-8/+8
| | | | | | | | With hat: portmgr Sponsored by: Absolight Notes: svn path=/head/; revision=412348
* Upgrade nmsg to version 0.11.1:Don Lewis2016-02-132-3/+8
| | | | | | | | | | | | | | | | [ Henry Stern ] * Use gmtime_r() instead of gmtime() in JSON and text format generators (#46). [ Robert Edmonds ] * Distribute README.FILTERS.md in release tarballs. Install README.md and README.FILTERS.md in ${DOCSDIR} Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=408828
* Upgrade net/nmsg to 0.11.0:Don Lewis2016-02-033-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nmsg (0.11.0) [ Henry Stern ] * Add an interval randomization option that randomizes the initial offset within the selected time interval. This functionality is exposed via the libnmsg nmsg_io_set_interval_randomized() function and the nmsgtool -R / --randomize command-line option (#27, #33). * Add documention for nmsgtool -j / --readjson and -J / --write-json command-line options (#26, #28). * Add PKG_CHECK_MODULES dependency on yajl >= 2.1.0 (#29, #31). * Make nmsgtool -k / --kicker work when combined with -c or -t, when producing output in JSON format (#25, #38). * Fix compiler warning [-Wtautological-compare] in _nmsg_msgmod_json_to_payload_load() (#36, #39). * Add nmsg_message_get_num_field_values(), nmsg_message_get_num_field_values_by_idx() functions (#5, #40). [ Robert Edmonds ] * Remove the unused enum nmsg_modtype from the internal libnmsg API (#30). * Header file cleanups (#14, #34). * Rewrite nmsg_res_lookup() to use a switch, which eliminates a Clang warning (#14, #35). * Add a message filtering capability to the libnmsg I/O loop, including external filter module plugin and nmsgtool support (#41, #43, #44). [ Mike Schiffman ] * Add yajl/ prefix to #include's of yajl headers (#37) Pet portlint Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=407933
* Upgrade to nmsg revision 0.10.0.Don Lewis2015-10-282-5/+7
| | | | | | | | | | | | | | | | | | | nmsg (0.10.0) [ Henry Stern ] * Add JSON input and output support, including new libnmsg functions nmsg_input_open_json(), nmsg_output_open_json(), nmsg_message_from_json(), and nmsg_message_to_json(); new -j and -J command line options for nmsgtool; and new per-field 'format' and 'parse' methods in the msgmod plugin API. [ Chris Mikkelson ] * nmsg_chalias_free(): Check for null aliases list. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=400369
* - No need for EXAMPLES in OPTIONS_DEFAULTDmitry Marakasov2015-09-221-3/+2
| | | | | | | | | - Fix dependency on docbook-xsl-ns: don't depend on optional documentation file, fixes build if docbook-xsl-ns was built WITHOUT=DOCS Approved by: portmgr blanket Notes: svn path=/head/; revision=397581
* Use option helpers and nuke the FreeBSD 8 binutils workaround. ThisDon Lewis2015-08-221-14/+3
| | | | | | | | | allows the inclusion of bsd.port.options.mk to be eliminated. Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=395006
* Add LICENSE_FILE (and bump PORTREVISION).Don Lewis2015-04-061-3/+3
| | | | | | | | | | | Convert to use MASTER_SIGHTS_FARSIGHT. Differential Revision: https://reviews.freebsd.org/D2236 Approved by: mat (mentor) Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=383421
* Switch ports depending on docbook* through a directory name to a package name,Antoine Brodin2015-01-231-1/+1
| | | | | | | as a directory name can't be attributed to a package Notes: svn path=/head/; revision=377770
* MASTER_SITE dl.farsightsecurity.com only allows https downloads.Don Lewis2015-01-102-228/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Mirror the distfile on LOCAL as a http backup for clients that can't use https. (Suggested by mat@) Add MANPAGES option (default YES) because generating the man page adds a significant number of build dependencies. Add a comment explaining that the DOXYGEN=NO option gets ignored if doxygen is installed. Use option helpers (suggested by mat@). Use PORTDOCS=* to avoid the need to change pkg-plist if doxygen changes. Use INSTALL_TARGET=install-strip instead of ${STRIP_CMD} (suggested by marino@). Simplify examples installation. Differential Revision: https://reviews.freebsd.org/D1484 Approved by: mat (mentor) Sponsored by: Farsight Security, Inc. Notes: svn path=/head/; revision=376726
* Update devel/doxygen to 1.8.9Antoine Brodin2014-12-312-13/+7
| | | | | | | | | PR: ports/196342 Submitted by: Naram Qashat (maintainer) Exp-run and fixes to depending ports: self Notes: svn path=/head/; revision=375872
* Update to version 0.9.1Pawel Pekala2014-12-152-5/+3
| | | | | | | | | | | | | | | | | | | ChangeLog: nmsg (0.9.1) * Fix a crash that was caused by incorrect initialization of ProtobufCBufferSimple objects. * Increase the required verbosity level for several noisy debugging log messages in the seqsrc tracking code from 5 (nmsgtool -ddddd) to 6 (nmsgtool -dddddd). PR: 195696 Submitted by: maintainer Notes: svn path=/head/; revision=374765
* Cleanup plistAntoine Brodin2014-11-221-8/+0
| | | | Notes: svn path=/head/; revision=373063
* Update the default version of GCC in the Ports Collection from GCC 4.7.4Gerald Pfeifer2014-09-101-0/+1
| | | | | | | | | | | | | to GCC 4.8.3. Part II, Bump PORTREVISIONs. PR: 192025 Tested by: antoine (-exp runs) Approved by: portmgr (implicit) Notes: svn path=/head/; revision=367888
* net/nmsg: fix build for FreeBSD 8.xWilliam Grzybowski2014-08-181-0/+7
| | | | | | | | PR: 192771 Submitted by: maintainer Notes: svn path=/head/; revision=365313
* net/nmsg: update to 0.9.0William Grzybowski2014-08-165-38/+10
| | | | | | | | PR: 192695 Submitted by: maintainer Notes: svn path=/head/; revision=365139
* Update devel/doxygen to 1.8.7Antoine Brodin2014-08-092-3/+1
| | | | | | | | | | | Update dependent ports to build with it Most of work by: pi@ Exp-run: self PR: ports/190943 Notes: svn path=/head/; revision=364468
* Add new port net/nmsgJohn Marino2014-08-076-0/+378
PR: 190601 Submitted by: Don Lewis (truckman@) ================================================================ The NMSG format is an efficient encoding of typed, structured data into payloads which are packed into containers which can be transmitted over the network or stored to disk. libnmsg is the reference implementation of this format and provides an extensible interface for creating and parsing messages in NMSG format. The NMSG format relies on Google Protocol Buffers to encode the payload header. Individual NMSG payloads are distinguished by assigned vendor ID and message type values and libnmsg provides a modular interface for registering handlers for specific message types. libnmsg makes it easy to build new message types using the protobuf-c compiler. Notes: svn path=/head/; revision=364263