Commit Graph

11 Commits

Author SHA1 Message Date
Don Lewis 5dbe91a909 Update dns/dnstable to from version 0.11.0 to 0.11.2:
dnstable (0.11.2)

    * Fix memory leaks while skipping rows of data during offset processing.

    * Fix minor leak in dnstable_lookup printing.

    * Add more dnstable_lookup tests.

  dnstable (0.11.1)

    * Change dnstable_query_set_skip to ..._offset. Note that the
      ABI library revision was not bumped.

    * Change dnstable_lookup parameter for offset from -s to -O

    * Added unit tests for some exposed dnstable functionality, including
      for filter and query timeouts.

Sponsored by:	Farsight Security, Inc.
2019-07-05 19:03:14 +00:00
Don Lewis d5188080a5 Update dns/dnstable port to version 0.11.0
dnstable, the encoding library with utilities for passive DNS
  data, version 0.11.0, was released. This release adds functionality
  enabling unaggregated query results, the skipping of query results,
  and date and rdata presentation options for JSON formatted entries.
  In detail:

   * Fix bug in raw rdata queries with rrtype specified.
   * Add functionality for unaggregated query results.
   * Add ability to skip query results.
   * Add options for date and rdata presentation in JSON formatted entries.
   * Treat RRTYPE "TYPE255" as an alias for "ANY", since 255 is the code
     for "ANY".

Insert a blank line into Makefile to pacify portlint.

Sponsored by:	Farsight Security, Inc.
2019-06-07 23:25:52 +00:00
Don Lewis 0de5e1480e Upgrade dnstable to version 0.10.2:
* Fix ordering for wildcard, processing contiguous memory first

Sponsored by:	Farsight Security, Inc.
2018-09-18 02:59:17 +00:00
Don Lewis bd0fc6b05d Upgrade dnstable to version 0.10.1:
dnstable (0.10.1)

    * Check for endian.h headers.

    * Add sys/socket.h include.

    * Expunge protobuf-c references.

    * Correct libyajl include path.

  dnstable (0.10.0)

    * Remove dnstable_convert into a separate repo to simplify
      dependencies. https://github.com/farsightsec/dnstable-convert/

    * Add generated man pages to source.

    * Document dnstable_entry_set_iszone().

    * Improve dnstable_reader(3) documentation.

    * Add JSON output (-j option) to dnstable_lookup.

    * Add test cases based on dnstable_lookup.

    * Only encode RDATA so the hostname is at the beginning for NS, CNAME,
      DNAME, PTR, MX, and SRV record types.

    * Fix byteorder macros for macOS.

Sponsored by:	Farsight Security, Inc.
2018-06-25 17:11:08 +00:00
Jimmy Olgeni e929aea23c Fix whitespace issues (mixed tab/spaces, alignment) in a few ports.
This round is @FreeBSD.org residents except teams.
2017-11-02 21:41:47 +00:00
Don Lewis af7a1ea6d1 Upgrade devel/mtbl to version 1.0.0:
mtbl (1.0.0)

   * Backwards-incompatible file format change to enable block sizes >4G.
   * Add support for zstd compression. This adds a new library dependency
     on libzstd.
   * Add mtbl_iter_seek function.
   * Add mtbl_fileset_partition function.
   * Breaks ABI for version 0.x.x.

  mtbl (0.8.1)

   * Add portability for clock time.
   * Simplify and improve portability related to byte order primitives.
   * Fix assertion failure. If there is a broken mtbl file in the fileset
     then a NULL reader will be returned. This change checks for that
     error condition in fs_reinit_merger() and does not pass the empty
     reader onwards to mtbl_merger_add_source().

Compatiblity with the latest libz4 has been added so files/patch-configure
is no longer needed.

Bump PORTREVISION on dependent ports due to ABI / shared library version
change.
2017-02-23 01:54:12 +00:00
Don Lewis ed390b0a26 Upgrade dns/dnstable to version 0.9.1:
* Fix strange values in data value triplets (#16). A 'count' field that has
    the value 0 is silently rewritten to 1, and a 'time_last' field that has
    the value 0 is silently set to be the same as the 'time_first' field.

Sponsored by:	Farsight Security, Inc.
2016-04-20 17:14:17 +00:00
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00
Don Lewis 3ea8f37a12 Upgrade to version 0.9.0.
[ Henry Stern ]
  * New "query timeout" feature which allows for a configurable timeout on the
    execution of certain types of queries. Introduces new function
    dnstable_query_set_timeout() and new result code dnstable_res_timeout
    (#8).

  * New "time fencing" feature which filters based on 'time_first' and
    'time_last' values. Introduces new enum dnstable_filter_parameter_type and
    new function dnstable_query_set_filter_parameter() (#9).

  * Performance enhancement for some IP range and prefix searches (#11).

  * Fix unhandled IPv4/IPv6 address overflow for IP range/prefix queries
    (#14).

  [ Robert Edmonds ]
  * dnstable_convert: Assert vendor 'SIE' and message type 'dnsdedupe' so that
    the following cast of the return value of nmsg_message_get_payload() is
    safe (#10).

  * Use CLOCK_MONOTONIC_COARSE rather than CLOCK_MONOTONIC_RAW for query
    timeouts (#12).

  * query_iter_next_ip(): Fix zero fill condition (#15).

Sponsored by:	Farsight Security, Inc.
2015-11-14 22:30:24 +00:00
Don Lewis 1e9cde1f8b Upgrade to 0.8.0:
* Replace Jansson with YAJL for JSON rendering, which results in a
    substantial performance improvement.

  * dnstable_dump: Add "--rrset_names" and "--rdata_names" options which dump
    the RRSET_NAME_FWD and RDATA_NAME_REV indices.

  * New function dnstable_reader_reload_setfile(), which calls
    mtbl_fileset_reload_now() on a dnstable_reader object's underlying
    mtbl_fileset object, if present. This requires libmtbl >= 0.8.0.

Sponsored by:	Farsight Security, Inc.
2015-09-24 04:40:44 +00:00
Don Lewis 9db4cb7b4e Add new port dns/dnstable.
dnstable implements an encoding format for passive DNS data. It
consists of a C library, libdnstable, and several command line
utilities for creating, querying, and merging dnstable data files.

It stores key-value records in Sorted String Table (SSTable) files
and provides high-level interfaces for querying or iterating over
the stored records. dnstable encodes individual records using a
format tailored for efficiently storing passive DNS data and can
quickly perform both "forward" and "inverse" searches.

Differential Revision:	https://reviews.freebsd.org/D2214
Approved by:	mat (mentor)
Sponsored by:	Farsight Security, Inc.
2015-04-03 22:22:45 +00:00